Bug 1284441 - Remove unnecessary cast from ExpressionDecompiler::decompilePC. r=arai
authorJinank Jain <ug201210017@iitj.ac.in>
Thu, 21 Jul 2016 18:12:49 -0400
changeset 346438 850f1a2a24cf94f6f959a8632e0d795b6f64bef3
parent 346437 8d2a4af272e3a6247241fa5b1634f6c705cd8a82
child 346439 0d398365c9153bd879498c8ac2151d31b85a61a4
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1284441
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1284441 - Remove unnecessary cast from ExpressionDecompiler::decompilePC. r=arai
js/src/jsopcode.cpp
--- a/js/src/jsopcode.cpp
+++ b/js/src/jsopcode.cpp
@@ -1208,17 +1208,17 @@ ExpressionDecompiler::decompilePC(jsbyte
       case JSOP_NEWTARGET:
         return write("new.target");
       case JSOP_CALL:
       case JSOP_CALLITER:
       case JSOP_FUNCALL:
         return decompilePCForStackOperand(pc, -int32_t(GET_ARGC(pc) + 2)) &&
                write("(...)");
       case JSOP_SPREADCALL:
-        return decompilePCForStackOperand(pc, -int32_t(3)) &&
+        return decompilePCForStackOperand(pc, -3) &&
                write("(...)");
       case JSOP_NEWARRAY:
         return write("[]");
       case JSOP_REGEXP:
       case JSOP_OBJECT:
       case JSOP_NEWARRAY_COPYONWRITE: {
         JSObject* obj = script->getObject(GET_UINT32_INDEX(pc));
         RootedValue objv(cx, ObjectValue(*obj));