| Index: test/cctest/interpreter/bytecode_expectations/LookupSlot.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/LookupSlot.golden b/test/cctest/interpreter/bytecode_expectations/LookupSlot.golden
|
| index 8e36d68d63ddeb6c1fe12f007c41ab295acc82d0..07dbbdfe19b04fdd7d2b409c0d03271c135f1873 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/LookupSlot.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/LookupSlot.golden
|
| @@ -12,7 +12,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 67
|
| +bytecode array length: 66
|
| bytecodes: [
|
| B(CreateFunctionContext), U8(3),
|
| B(PushContext), R(0),
|
| @@ -23,9 +23,10 @@ bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(StaCurrentContextSlot), U8(5),
|
| /* 10 E> */ B(StackCheck),
|
| - /* 14 S> */ B(LdaConstant), U8(0),
|
| - B(Star), R(4),
|
| - B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4), U8(1), R(1),
|
| + /* 14 S> */ B(LdaUndefined),
|
| + B(Star), R(2),
|
| + /* 14 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
|
| + B(Star), R(1),
|
| B(LdaConstant), U8(1),
|
| B(Star), R(3),
|
| B(LdaZero),
|
| @@ -57,7 +58,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 68
|
| +bytecode array length: 67
|
| bytecodes: [
|
| B(CreateFunctionContext), U8(3),
|
| B(PushContext), R(0),
|
| @@ -68,9 +69,10 @@ bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(StaCurrentContextSlot), U8(5),
|
| /* 10 E> */ B(StackCheck),
|
| - /* 14 S> */ B(LdaConstant), U8(0),
|
| - B(Star), R(4),
|
| - B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4), U8(1), R(1),
|
| + /* 14 S> */ B(LdaUndefined),
|
| + B(Star), R(2),
|
| + /* 14 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
|
| + B(Star), R(1),
|
| B(LdaConstant), U8(1),
|
| B(Star), R(3),
|
| B(LdaZero),
|
| @@ -103,7 +105,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 67
|
| +bytecode array length: 66
|
| bytecodes: [
|
| B(CreateFunctionContext), U8(3),
|
| B(PushContext), R(0),
|
| @@ -116,9 +118,10 @@ bytecodes: [
|
| /* 10 E> */ B(StackCheck),
|
| /* 14 S> */ B(LdaSmi), U8(20),
|
| /* 16 E> */ B(StaLookupSlotSloppy), U8(0),
|
| - /* 22 S> */ B(LdaConstant), U8(1),
|
| - B(Star), R(4),
|
| - B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4), U8(1), R(1),
|
| + /* 22 S> */ B(LdaUndefined),
|
| + B(Star), R(2),
|
| + /* 29 E> */ B(LdaLookupGlobalSlot), U8(1), U8(4), U8(1),
|
| + B(Star), R(1),
|
| B(LdaConstant), U8(2),
|
| B(Star), R(3),
|
| B(LdaZero),
|
| @@ -154,7 +157,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 67
|
| +bytecode array length: 66
|
| bytecodes: [
|
| B(CreateFunctionContext), U8(3),
|
| B(PushContext), R(0),
|
| @@ -165,9 +168,10 @@ bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(StaCurrentContextSlot), U8(5),
|
| /* 38 E> */ B(StackCheck),
|
| - /* 44 S> */ B(LdaConstant), U8(0),
|
| - B(Star), R(4),
|
| - B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4), U8(1), R(1),
|
| + /* 44 S> */ B(LdaUndefined),
|
| + B(Star), R(2),
|
| + /* 44 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
|
| + B(Star), R(1),
|
| B(LdaConstant), U8(1),
|
| B(Star), R(3),
|
| B(LdaZero),
|
| @@ -204,7 +208,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 67
|
| +bytecode array length: 66
|
| bytecodes: [
|
| B(CreateFunctionContext), U8(3),
|
| B(PushContext), R(0),
|
| @@ -215,9 +219,10 @@ bytecodes: [
|
| B(Ldar), R(new_target),
|
| B(StaCurrentContextSlot), U8(5),
|
| /* 34 E> */ B(StackCheck),
|
| - /* 40 S> */ B(LdaConstant), U8(0),
|
| - B(Star), R(4),
|
| - B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4), U8(1), R(1),
|
| + /* 40 S> */ B(LdaUndefined),
|
| + B(Star), R(2),
|
| + /* 40 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
|
| + B(Star), R(1),
|
| B(LdaConstant), U8(1),
|
| B(Star), R(3),
|
| B(LdaZero),
|
|
|