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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 execute: yes 6 execute: yes
7 wrap: yes 7 wrap: yes
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 let x = 10; function f1() {return x;} 11 let x = 10; function f1() {return x;}
12 " 12 "
13 frame size: 2 13 frame size: 2
14 parameter count: 1 14 parameter count: 1
15 bytecode array length: 21 15 bytecode array length: 23
16 bytecodes: [ 16 bytecodes: [
17 B(CreateFunctionContext), U8(1), 17 B(CreateFunctionContext), U8(1),
18 B(PushContext), R(1), 18 B(PushContext), R(1),
19 B(LdaTheHole), 19 B(LdaTheHole),
20 B(StaContextSlot), R(context), U8(4), 20 B(StaContextSlot), R(context), U8(4), U8(0),
21 B(CreateClosure), U8(0), U8(2), 21 B(CreateClosure), U8(0), U8(2),
22 B(Star), R(0), 22 B(Star), R(0),
23 /* 30 E> */ B(StackCheck), 23 /* 30 E> */ B(StackCheck),
24 /* 42 S> */ B(LdaSmi), U8(10), 24 /* 42 S> */ B(LdaSmi), U8(10),
25 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 25 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
26 B(LdaUndefined), 26 B(LdaUndefined),
27 /* 72 S> */ B(Return), 27 /* 72 S> */ B(Return),
28 ] 28 ]
29 constant pool: [ 29 constant pool: [
30 SHARED_FUNCTION_INFO_TYPE, 30 SHARED_FUNCTION_INFO_TYPE,
31 ] 31 ]
32 handlers: [ 32 handlers: [
33 ] 33 ]
34 34
35 --- 35 ---
36 snippet: " 36 snippet: "
37 let x = 10; function f1() {return x;} return x; 37 let x = 10; function f1() {return x;} return x;
38 " 38 "
39 frame size: 3 39 frame size: 3
40 parameter count: 1 40 parameter count: 1
41 bytecode array length: 34 41 bytecode array length: 37
42 bytecodes: [ 42 bytecodes: [
43 B(CreateFunctionContext), U8(1), 43 B(CreateFunctionContext), U8(1),
44 B(PushContext), R(1), 44 B(PushContext), R(1),
45 B(LdaTheHole), 45 B(LdaTheHole),
46 B(StaContextSlot), R(context), U8(4), 46 B(StaContextSlot), R(context), U8(4), U8(0),
47 B(CreateClosure), U8(0), U8(2), 47 B(CreateClosure), U8(0), U8(2),
48 B(Star), R(0), 48 B(Star), R(0),
49 /* 30 E> */ B(StackCheck), 49 /* 30 E> */ B(StackCheck),
50 /* 42 S> */ B(LdaSmi), U8(10), 50 /* 42 S> */ B(LdaSmi), U8(10),
51 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 51 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
52 /* 72 S> */ B(LdaContextSlot), R(context), U8(4), 52 /* 72 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
53 B(JumpIfNotHole), U8(11), 53 B(JumpIfNotHole), U8(11),
54 B(LdaConstant), U8(1), 54 B(LdaConstant), U8(1),
55 B(Star), R(2), 55 B(Star), R(2),
56 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 56 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
57 /* 82 S> */ B(Return), 57 /* 82 S> */ B(Return),
58 ] 58 ]
59 constant pool: [ 59 constant pool: [
60 SHARED_FUNCTION_INFO_TYPE, 60 SHARED_FUNCTION_INFO_TYPE,
61 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 61 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
62 ] 62 ]
63 handlers: [ 63 handlers: [
64 ] 64 ]
65 65
66 --- 66 ---
67 snippet: " 67 snippet: "
68 let x = (x = 20); function f1() {return x;} 68 let x = (x = 20); function f1() {return x;}
69 " 69 "
70 frame size: 4 70 frame size: 4
71 parameter count: 1 71 parameter count: 1
72 bytecode array length: 42 72 bytecode array length: 46
73 bytecodes: [ 73 bytecodes: [
74 B(CreateFunctionContext), U8(1), 74 B(CreateFunctionContext), U8(1),
75 B(PushContext), R(1), 75 B(PushContext), R(1),
76 B(LdaTheHole), 76 B(LdaTheHole),
77 B(StaContextSlot), R(context), U8(4), 77 B(StaContextSlot), R(context), U8(4), U8(0),
78 B(CreateClosure), U8(0), U8(2), 78 B(CreateClosure), U8(0), U8(2),
79 B(Star), R(0), 79 B(Star), R(0),
80 /* 30 E> */ B(StackCheck), 80 /* 30 E> */ B(StackCheck),
81 /* 45 S> */ B(LdaSmi), U8(20), 81 /* 45 S> */ B(LdaSmi), U8(20),
82 B(Star), R(2), 82 B(Star), R(2),
83 /* 45 E> */ B(LdaContextSlot), R(context), U8(4), 83 /* 45 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
84 B(JumpIfNotHole), U8(11), 84 B(JumpIfNotHole), U8(11),
85 B(LdaConstant), U8(1), 85 B(LdaConstant), U8(1),
86 B(Star), R(3), 86 B(Star), R(3),
87 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 87 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
88 B(Ldar), R(2), 88 B(Ldar), R(2),
89 B(StaContextSlot), R(context), U8(4), 89 B(StaContextSlot), R(context), U8(4), U8(0),
90 /* 45 E> */ B(StaContextSlot), R(context), U8(4), 90 /* 45 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
91 B(LdaUndefined), 91 B(LdaUndefined),
92 /* 78 S> */ B(Return), 92 /* 78 S> */ B(Return),
93 ] 93 ]
94 constant pool: [ 94 constant pool: [
95 SHARED_FUNCTION_INFO_TYPE, 95 SHARED_FUNCTION_INFO_TYPE,
96 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 96 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
97 ] 97 ]
98 handlers: [ 98 handlers: [
99 ] 99 ]
100 100
101 --- 101 ---
102 snippet: " 102 snippet: "
103 let x = 10; x = 20; function f1() {return x;} 103 let x = 10; x = 20; function f1() {return x;}
104 " 104 "
105 frame size: 4 105 frame size: 4
106 parameter count: 1 106 parameter count: 1
107 bytecode array length: 44 107 bytecode array length: 48
108 bytecodes: [ 108 bytecodes: [
109 B(CreateFunctionContext), U8(1), 109 B(CreateFunctionContext), U8(1),
110 B(PushContext), R(1), 110 B(PushContext), R(1),
111 B(LdaTheHole), 111 B(LdaTheHole),
112 B(StaContextSlot), R(context), U8(4), 112 B(StaContextSlot), R(context), U8(4), U8(0),
113 B(CreateClosure), U8(0), U8(2), 113 B(CreateClosure), U8(0), U8(2),
114 B(Star), R(0), 114 B(Star), R(0),
115 /* 30 E> */ B(StackCheck), 115 /* 30 E> */ B(StackCheck),
116 /* 42 S> */ B(LdaSmi), U8(10), 116 /* 42 S> */ B(LdaSmi), U8(10),
117 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 117 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
118 /* 46 S> */ B(LdaSmi), U8(20), 118 /* 46 S> */ B(LdaSmi), U8(20),
119 B(Star), R(2), 119 B(Star), R(2),
120 /* 48 E> */ B(LdaContextSlot), R(context), U8(4), 120 /* 48 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
121 B(JumpIfNotHole), U8(11), 121 B(JumpIfNotHole), U8(11),
122 B(LdaConstant), U8(1), 122 B(LdaConstant), U8(1),
123 B(Star), R(3), 123 B(Star), R(3),
124 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 124 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
125 B(Ldar), R(2), 125 B(Ldar), R(2),
126 B(StaContextSlot), R(context), U8(4), 126 B(StaContextSlot), R(context), U8(4), U8(0),
127 B(LdaUndefined), 127 B(LdaUndefined),
128 /* 80 S> */ B(Return), 128 /* 80 S> */ B(Return),
129 ] 129 ]
130 constant pool: [ 130 constant pool: [
131 SHARED_FUNCTION_INFO_TYPE, 131 SHARED_FUNCTION_INFO_TYPE,
132 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 132 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
133 ] 133 ]
134 handlers: [ 134 handlers: [
135 ] 135 ]
136 136
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698