Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden

Issue 2336643002: [Interpreter] Move context chain search loop to handler (Closed)
Patch Set: Fix documentation nits Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden b/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
index 06c8f9b92b70c96baeaf692fb132b6d09bd7f824..fed924c4f9be84a6f4d36b9739c4f200332a5067 100644
--- a/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
+++ b/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
@@ -12,17 +12,17 @@ snippet: "
"
frame size: 2
parameter count: 1
-bytecode array length: 21
+bytecode array length: 23
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4),
+ B(StaContextSlot), R(context), U8(4), U8(0),
B(CreateClosure), U8(0), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaSmi), U8(10),
- /* 42 E> */ B(StaContextSlot), R(context), U8(4),
+ /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
B(LdaUndefined),
/* 72 S> */ B(Return),
]
@@ -38,18 +38,18 @@ snippet: "
"
frame size: 3
parameter count: 1
-bytecode array length: 34
+bytecode array length: 37
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4),
+ B(StaContextSlot), R(context), U8(4), U8(0),
B(CreateClosure), U8(0), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaSmi), U8(10),
- /* 42 E> */ B(StaContextSlot), R(context), U8(4),
- /* 72 S> */ B(LdaContextSlot), R(context), U8(4),
+ /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
+ /* 72 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
B(JumpIfNotHole), U8(11),
B(LdaConstant), U8(1),
B(Star), R(2),
@@ -69,25 +69,25 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 42
+bytecode array length: 46
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4),
+ B(StaContextSlot), R(context), U8(4), U8(0),
B(CreateClosure), U8(0), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
/* 45 S> */ B(LdaSmi), U8(20),
B(Star), R(2),
- /* 45 E> */ B(LdaContextSlot), R(context), U8(4),
+ /* 45 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
B(JumpIfNotHole), U8(11),
B(LdaConstant), U8(1),
B(Star), R(3),
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
B(Ldar), R(2),
- B(StaContextSlot), R(context), U8(4),
- /* 45 E> */ B(StaContextSlot), R(context), U8(4),
+ B(StaContextSlot), R(context), U8(4), U8(0),
+ /* 45 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
B(LdaUndefined),
/* 78 S> */ B(Return),
]
@@ -104,26 +104,26 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 44
+bytecode array length: 48
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
B(LdaTheHole),
- B(StaContextSlot), R(context), U8(4),
+ B(StaContextSlot), R(context), U8(4), U8(0),
B(CreateClosure), U8(0), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaSmi), U8(10),
- /* 42 E> */ B(StaContextSlot), R(context), U8(4),
+ /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
/* 46 S> */ B(LdaSmi), U8(20),
B(Star), R(2),
- /* 48 E> */ B(LdaContextSlot), R(context), U8(4),
+ /* 48 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
B(JumpIfNotHole), U8(11),
B(LdaConstant), U8(1),
B(Star), R(3),
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
B(Ldar), R(2),
- B(StaContextSlot), R(context), U8(4),
+ B(StaContextSlot), R(context), U8(4), U8(0),
B(LdaUndefined),
/* 80 S> */ B(Return),
]

Powered by Google App Engine
This is Rietveld 408576698