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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.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 const x = 10; function f1() {return x;} 11 const 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 /* 44 S> */ B(LdaSmi), U8(10), 24 /* 44 S> */ B(LdaSmi), U8(10),
25 /* 44 E> */ B(StaContextSlot), R(context), U8(4), 25 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
26 B(LdaUndefined), 26 B(LdaUndefined),
27 /* 74 S> */ B(Return), 27 /* 74 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 const x = 10; function f1() {return x;} return x; 37 const 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 /* 44 S> */ B(LdaSmi), U8(10), 50 /* 44 S> */ B(LdaSmi), U8(10),
51 /* 44 E> */ B(StaContextSlot), R(context), U8(4), 51 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
52 /* 74 S> */ B(LdaContextSlot), R(context), U8(4), 52 /* 74 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 /* 84 S> */ B(Return), 57 /* 84 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 const x = (x = 20); function f1() {return x;} 68 const 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: 45
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 /* 47 S> */ B(LdaSmi), U8(20), 81 /* 47 S> */ B(LdaSmi), U8(20),
82 B(Star), R(2), 82 B(Star), R(2),
83 /* 47 E> */ B(LdaContextSlot), R(context), U8(4), 83 /* 47 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(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 88 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
89 /* 47 E> */ B(StaContextSlot), R(context), U8(4), 89 /* 47 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
90 B(LdaUndefined), 90 B(LdaUndefined),
91 /* 80 S> */ B(Return), 91 /* 80 S> */ B(Return),
92 ] 92 ]
93 constant pool: [ 93 constant pool: [
94 SHARED_FUNCTION_INFO_TYPE, 94 SHARED_FUNCTION_INFO_TYPE,
95 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 95 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
96 ] 96 ]
97 handlers: [ 97 handlers: [
98 ] 98 ]
99 99
100 --- 100 ---
101 snippet: " 101 snippet: "
102 const x = 10; x = 20; function f1() {return x;} 102 const x = 10; x = 20; function f1() {return x;}
103 " 103 "
104 frame size: 4 104 frame size: 4
105 parameter count: 1 105 parameter count: 1
106 bytecode array length: 44 106 bytecode array length: 47
107 bytecodes: [ 107 bytecodes: [
108 B(CreateFunctionContext), U8(1), 108 B(CreateFunctionContext), U8(1),
109 B(PushContext), R(1), 109 B(PushContext), R(1),
110 B(LdaTheHole), 110 B(LdaTheHole),
111 B(StaContextSlot), R(context), U8(4), 111 B(StaContextSlot), R(context), U8(4), U8(0),
112 B(CreateClosure), U8(0), U8(2), 112 B(CreateClosure), U8(0), U8(2),
113 B(Star), R(0), 113 B(Star), R(0),
114 /* 30 E> */ B(StackCheck), 114 /* 30 E> */ B(StackCheck),
115 /* 44 S> */ B(LdaSmi), U8(10), 115 /* 44 S> */ B(LdaSmi), U8(10),
116 /* 44 E> */ B(StaContextSlot), R(context), U8(4), 116 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
117 /* 48 S> */ B(LdaSmi), U8(20), 117 /* 48 S> */ B(LdaSmi), U8(20),
118 B(Star), R(2), 118 B(Star), R(2),
119 /* 50 E> */ B(LdaContextSlot), R(context), U8(4), 119 /* 50 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
120 B(JumpIfNotHole), U8(11), 120 B(JumpIfNotHole), U8(11),
121 B(LdaConstant), U8(1), 121 B(LdaConstant), U8(1),
122 B(Star), R(3), 122 B(Star), R(3),
123 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 123 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
124 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 124 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
125 B(LdaUndefined), 125 B(LdaUndefined),
126 /* 82 S> */ B(Return), 126 /* 82 S> */ B(Return),
127 ] 127 ]
128 constant pool: [ 128 constant pool: [
129 SHARED_FUNCTION_INFO_TYPE, 129 SHARED_FUNCTION_INFO_TYPE,
130 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 130 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
131 ] 131 ]
132 handlers: [ 132 handlers: [
133 ] 133 ]
134 134
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698