| Index: test/cctest/interpreter/test-bytecode-generator.cc
|
| diff --git a/test/cctest/interpreter/test-bytecode-generator.cc b/test/cctest/interpreter/test-bytecode-generator.cc
|
| index ccdcf2f154746b28c945e9b926ca12a8817f2a76..3513cb5716be83adb6e563bb30e90c555866bbb5 100644
|
| --- a/test/cctest/interpreter/test-bytecode-generator.cc
|
| +++ b/test/cctest/interpreter/test-bytecode-generator.cc
|
| @@ -1406,7 +1406,7 @@ TEST(PropertyCall) {
|
| B(Star), R(1), //
|
| B(LoadICSloppy), R(1), U8(0), U8(vector->GetIndex(slot2)), //
|
| B(Star), R(0), //
|
| - B(Call), R(0), R(1), U8(0), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(0), R(1), U8(1), U8(vector->GetIndex(slot1)), //
|
| B(Return), //
|
| },
|
| 1,
|
| @@ -1424,7 +1424,7 @@ TEST(PropertyCall) {
|
| B(Star), R(2), //
|
| B(Ldar), A(3, 4), //
|
| B(Star), R(3), //
|
| - B(Call), R(0), R(1), U8(2), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(0), R(1), U8(3), U8(vector->GetIndex(slot1)), //
|
| B(Return) //
|
| },
|
| 1,
|
| @@ -1445,7 +1445,7 @@ TEST(PropertyCall) {
|
| B(Star), R(2), //
|
| B(Ldar), A(2, 3), //
|
| B(Star), R(3), //
|
| - B(Call), R(0), R(1), U8(2), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(0), R(1), U8(3), U8(vector->GetIndex(slot1)), //
|
| B(Return), //
|
| },
|
| 1,
|
| @@ -1464,13 +1464,12 @@ TEST(PropertyCall) {
|
| B(Ldar), A(1, 2), //
|
| B(Star), R(0), //
|
| B(LoadICSloppy), R(0), U8(0), U8((wide_idx += 2))), //
|
| - B(Ldar),
|
| - A(1, 2), //
|
| - B(Star), R(1), //
|
| - B(LoadICSloppyWide), R(1), U16(0), U16(wide_idx + 4), //
|
| - B(Star), R(0), //
|
| - B(CallWide), R16(0), R16(1), U16(0), U16(wide_idx + 2), //
|
| - B(Return), //
|
| + B(Ldar), A(1, 2), //
|
| + B(Star), R(1), //
|
| + B(LoadICSloppyWide), R(1), U16(0), U16(wide_idx + 4), //
|
| + B(Star), R(0), //
|
| + B(CallWide), R16(0), R16(1), U16(1), U16(wide_idx + 2), //
|
| + B(Return), //
|
| },
|
| 1,
|
| {"func"}},
|
| @@ -1739,7 +1738,7 @@ TEST(CallGlobal) {
|
| B(Star), R(1), //
|
| B(LdaGlobalSloppy), U8(0), U8(vector->GetIndex(slot2)), //
|
| B(Star), R(0), //
|
| - B(Call), R(0), R(1), U8(0), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(0), R(1), U8(1), U8(vector->GetIndex(slot1)), //
|
| B(Return) //
|
| },
|
| 1,
|
| @@ -1759,7 +1758,7 @@ TEST(CallGlobal) {
|
| B(Star), R(3), //
|
| B(LdaSmi8), U8(3), //
|
| B(Star), R(4), //
|
| - B(Call), R(0), R(1), U8(3), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(0), R(1), U8(4), U8(vector->GetIndex(slot1)), //
|
| B(Return) //
|
| },
|
| 1,
|
| @@ -1828,7 +1827,7 @@ TEST(CallRuntime) {
|
| B(CreateArrayLiteral), U8(0), U8(0), U8(3), //
|
| B(Star), R(1), //
|
| B(CallJSRuntime), U16(Context::SPREAD_ITERABLE_INDEX), R(0), //
|
| - U8(1), //
|
| + U8(2), //
|
| B(Return), //
|
| },
|
| 1,
|
| @@ -2182,7 +2181,7 @@ TEST(DeclareGlobals) {
|
| B(LdaGlobalSloppy), U8(1), //
|
| U8(load_vector->GetIndex(load_slot_1)), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(0), //
|
| + B(Call), R(1), R(2), U8(1), //
|
| U8(load_vector->GetIndex(call_slot_1)), //
|
| B(Star), R(0), //
|
| B(Return) //
|
| @@ -3543,7 +3542,7 @@ TEST(FunctionLiterals) {
|
| B(Star), R(1), //
|
| B(CreateClosure), U8(0), U8(0), //
|
| B(Star), R(0), //
|
| - B(Call), R(0), R(1), U8(0), U8(vector->GetIndex(slot)), //
|
| + B(Call), R(0), R(1), U8(1), U8(vector->GetIndex(slot)), //
|
| B(Return) //
|
| },
|
| 1,
|
| @@ -3559,7 +3558,7 @@ TEST(FunctionLiterals) {
|
| B(Star), R(0), //
|
| B(LdaSmi8), U8(1), //
|
| B(Star), R(2), //
|
| - B(Call), R(0), R(1), U8(1), U8(vector->GetIndex(slot)), //
|
| + B(Call), R(0), R(1), U8(2), U8(vector->GetIndex(slot)), //
|
| B(Return) //
|
| },
|
| 1,
|
| @@ -3619,7 +3618,7 @@ TEST(RegExpLiterals) {
|
| B(Star), R(0), //
|
| B(LdaConstant), U8(2), //
|
| B(Star), R(2), //
|
| - B(Call), R(0), R(1), U8(1), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(0), R(1), U8(2), U8(vector->GetIndex(slot1)), //
|
| B(Return), //
|
| },
|
| 3,
|
| @@ -4721,7 +4720,7 @@ TEST(ContextVariables) {
|
| B(Star), R(2), //
|
| B(CreateClosure), U8(0), U8(0), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(0), U8(vector->GetIndex(slot)), //
|
| + B(Call), R(1), R(2), U8(1), U8(vector->GetIndex(slot)), //
|
| B(LdaContextSlot), R(context), U8(first_context_slot), //
|
| B(Return), //
|
| },
|
| @@ -4781,7 +4780,7 @@ TEST(ContextVariables) {
|
| B(Star), R(2), //
|
| B(LdaGlobalStrict), U8(0), U8(1), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(0), U8(0), //
|
| + B(Call), R(1), R(2), U8(1), U8(0), //
|
| B(LdaSmi8), U8(100), //
|
| B(StaContextSlotWide), R(context), U16(256), //
|
| B(LdaContextSlotWide), R(context), U16(256), //
|
| @@ -5807,13 +5806,13 @@ TEST(ForOf) {
|
| B(LdaConstant), U8(1), //
|
| B(KeyedLoadICSloppy), R(5), U8(vector->GetIndex(slot2)), //
|
| B(Star), R(4), //
|
| - B(Call), R(4), R(5), U8(0), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(4), R(5), U8(1), U8(vector->GetIndex(slot1)), //
|
| B(Star), R(1), //
|
| B(Ldar), R(1), //
|
| B(Star), R(6), //
|
| B(LoadICSloppy), R(6), U8(2), U8(vector->GetIndex(slot4)), //
|
| B(Star), R(5), //
|
| - B(Call), R(5), R(6), U8(0), U8(vector->GetIndex(slot3)), //
|
| + B(Call), R(5), R(6), U8(1), U8(vector->GetIndex(slot3)), //
|
| B(Star), R(2), //
|
| B(Star), R(4), //
|
| B(CallRuntime), U16(Runtime::kInlineIsJSReceiver), R(4), U8(1), //
|
| @@ -5853,13 +5852,13 @@ TEST(ForOf) {
|
| B(LdaConstant), U8(1), //
|
| B(KeyedLoadICSloppy), R(6), U8(vector->GetIndex(slot2)), //
|
| B(Star), R(5), //
|
| - B(Call), R(5), R(6), U8(0), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(5), R(6), U8(1), U8(vector->GetIndex(slot1)), //
|
| B(Star), R(1), //
|
| B(Ldar), R(1), //
|
| B(Star), R(7), //
|
| B(LoadICSloppy), R(7), U8(2), U8(vector->GetIndex(slot4)), //
|
| B(Star), R(6), //
|
| - B(Call), R(6), R(7), U8(0), U8(vector->GetIndex(slot3)), //
|
| + B(Call), R(6), R(7), U8(1), U8(vector->GetIndex(slot3)), //
|
| B(Star), R(2), //
|
| B(Star), R(5), //
|
| B(CallRuntime), U16(Runtime::kInlineIsJSReceiver), R(5), U8(1), //
|
| @@ -5901,13 +5900,13 @@ TEST(ForOf) {
|
| B(LdaConstant), U8(1), //
|
| B(KeyedLoadICSloppy), R(5), U8(vector->GetIndex(slot2)), //
|
| B(Star), R(4), //
|
| - B(Call), R(4), R(5), U8(0), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(4), R(5), U8(1), U8(vector->GetIndex(slot1)), //
|
| B(Star), R(1), //
|
| B(Ldar), R(1), //
|
| B(Star), R(6), //
|
| B(LoadICSloppy), R(6), U8(2), U8(vector->GetIndex(slot4)), //
|
| B(Star), R(5), //
|
| - B(Call), R(5), R(6), U8(0), U8(vector->GetIndex(slot3)), //
|
| + B(Call), R(5), R(6), U8(1), U8(vector->GetIndex(slot3)), //
|
| B(Star), R(2), //
|
| B(Star), R(4), //
|
| B(CallRuntime), U16(Runtime::kInlineIsJSReceiver), R(4), U8(1), //
|
| @@ -5960,13 +5959,13 @@ TEST(ForOf) {
|
| B(LdaConstant), U8(2), //
|
| B(KeyedLoadICSloppy), R(4), U8(vector->GetIndex(slot2)), //
|
| B(Star), R(3), //
|
| - B(Call), R(3), R(4), U8(0), U8(vector->GetIndex(slot1)), //
|
| + B(Call), R(3), R(4), U8(1), U8(vector->GetIndex(slot1)), //
|
| B(Star), R(0), //
|
| B(Ldar), R(0), //
|
| B(Star), R(5), //
|
| B(LoadICSloppy), R(5), U8(3), U8(vector->GetIndex(slot4)), //
|
| B(Star), R(4), //
|
| - B(Call), R(4), R(5), U8(0), U8(vector->GetIndex(slot3)), //
|
| + B(Call), R(4), R(5), U8(1), U8(vector->GetIndex(slot3)), //
|
| B(Star), R(1), //
|
| B(Star), R(3), //
|
| B(CallRuntime), U16(Runtime::kInlineIsJSReceiver), R(3), U8(1), //
|
| @@ -6864,7 +6863,7 @@ TEST(Eval) {
|
| B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), //
|
| U8(5), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(1), U8(0), //
|
| + B(Call), R(1), R(2), U8(2), U8(0), //
|
| B(Return), //
|
| },
|
| 2,
|
| @@ -6920,7 +6919,7 @@ TEST(LookupSlot) {
|
| B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), //
|
| U8(5), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(1), U8(0), //
|
| + B(Call), R(1), R(2), U8(2), U8(0), //
|
| B(LdaLookupSlot), U8(2), //
|
| B(Return), //
|
| },
|
| @@ -6957,7 +6956,7 @@ TEST(LookupSlot) {
|
| B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), //
|
| U8(5), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(1), U8(0), //
|
| + B(Call), R(1), R(2), U8(2), U8(0), //
|
| B(LdaLookupSlotInsideTypeof), U8(2), //
|
| B(TypeOf), //
|
| B(Return), //
|
| @@ -6997,7 +6996,7 @@ TEST(LookupSlot) {
|
| B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), //
|
| U8(5), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(1), U8(0), //
|
| + B(Call), R(1), R(2), U8(2), U8(0), //
|
| B(Return), //
|
| },
|
| 3,
|
| @@ -7063,13 +7062,13 @@ TEST(CallLookupSlot) {
|
| B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), //
|
| U8(5), //
|
| B(Star), R(1), //
|
| - B(Call), R(1), R(2), U8(1), U8(0), //
|
| + B(Call), R(1), R(2), U8(2), U8(0), //
|
| B(Mov), R(context), R(3), //
|
| B(LdaConstant), U8(1), //
|
| B(Star), R(4), //
|
| B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlot), //
|
| R(3), U8(2), R(1), //
|
| - B(Call), R(1), R(2), U8(0), U8(vector->GetIndex(slot2)), //
|
| + B(Call), R(1), R(2), U8(1), U8(vector->GetIndex(slot2)), //
|
| B(Return), //
|
| },
|
| 4,
|
|
|