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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/LookupSlot.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 eval('var x = 10;'); return x; 11 eval('var x = 10;'); return x;
12 " 12 "
13 frame size: 10 13 frame size: 10
14 parameter count: 1 14 parameter count: 1
15 bytecode array length: 68 15 bytecode array length: 71
16 bytecodes: [ 16 bytecodes: [
17 B(CreateFunctionContext), U8(3), 17 B(CreateFunctionContext), U8(3),
18 B(PushContext), R(0), 18 B(PushContext), R(0),
19 B(Ldar), R(this), 19 B(Ldar), R(this),
20 B(StaContextSlot), R(context), U8(4), 20 B(StaContextSlot), R(context), U8(4), U8(0),
21 B(CreateMappedArguments), 21 B(CreateMappedArguments),
22 B(StaContextSlot), R(context), U8(6), 22 B(StaContextSlot), R(context), U8(6), U8(0),
23 B(Ldar), R(new_target), 23 B(Ldar), R(new_target),
24 B(StaContextSlot), R(context), U8(5), 24 B(StaContextSlot), R(context), U8(5), U8(0),
25 /* 30 E> */ B(StackCheck), 25 /* 30 E> */ B(StackCheck),
26 /* 34 S> */ B(LdaConstant), U8(0), 26 /* 34 S> */ B(LdaConstant), U8(0),
27 B(Star), R(3), 27 B(Star), R(3),
28 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1), 28 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1),
29 B(LdaConstant), U8(1), 29 B(LdaConstant), U8(1),
30 B(Star), R(3), 30 B(Star), R(3),
31 B(LdaZero), 31 B(LdaZero),
32 B(Star), R(7), 32 B(Star), R(7),
33 B(LdaSmi), U8(30), 33 B(LdaSmi), U8(30),
34 B(Star), R(8), 34 B(Star), R(8),
(...skipping 15 matching lines...) Expand all
50 ] 50 ]
51 handlers: [ 51 handlers: [
52 ] 52 ]
53 53
54 --- 54 ---
55 snippet: " 55 snippet: "
56 eval('var x = 10;'); return typeof x; 56 eval('var x = 10;'); return typeof x;
57 " 57 "
58 frame size: 10 58 frame size: 10
59 parameter count: 1 59 parameter count: 1
60 bytecode array length: 69 60 bytecode array length: 72
61 bytecodes: [ 61 bytecodes: [
62 B(CreateFunctionContext), U8(3), 62 B(CreateFunctionContext), U8(3),
63 B(PushContext), R(0), 63 B(PushContext), R(0),
64 B(Ldar), R(this), 64 B(Ldar), R(this),
65 B(StaContextSlot), R(context), U8(4), 65 B(StaContextSlot), R(context), U8(4), U8(0),
66 B(CreateMappedArguments), 66 B(CreateMappedArguments),
67 B(StaContextSlot), R(context), U8(6), 67 B(StaContextSlot), R(context), U8(6), U8(0),
68 B(Ldar), R(new_target), 68 B(Ldar), R(new_target),
69 B(StaContextSlot), R(context), U8(5), 69 B(StaContextSlot), R(context), U8(5), U8(0),
70 /* 30 E> */ B(StackCheck), 70 /* 30 E> */ B(StackCheck),
71 /* 34 S> */ B(LdaConstant), U8(0), 71 /* 34 S> */ B(LdaConstant), U8(0),
72 B(Star), R(3), 72 B(Star), R(3),
73 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1), 73 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1),
74 B(LdaConstant), U8(1), 74 B(LdaConstant), U8(1),
75 B(Star), R(3), 75 B(Star), R(3),
76 B(LdaZero), 76 B(LdaZero),
77 B(Star), R(7), 77 B(Star), R(7),
78 B(LdaSmi), U8(30), 78 B(LdaSmi), U8(30),
79 B(Star), R(8), 79 B(Star), R(8),
(...skipping 16 matching lines...) Expand all
96 ] 96 ]
97 handlers: [ 97 handlers: [
98 ] 98 ]
99 99
100 --- 100 ---
101 snippet: " 101 snippet: "
102 x = 20; return eval(''); 102 x = 20; return eval('');
103 " 103 "
104 frame size: 10 104 frame size: 10
105 parameter count: 1 105 parameter count: 1
106 bytecode array length: 70 106 bytecode array length: 73
107 bytecodes: [ 107 bytecodes: [
108 B(CreateFunctionContext), U8(3), 108 B(CreateFunctionContext), U8(3),
109 B(PushContext), R(0), 109 B(PushContext), R(0),
110 B(Ldar), R(this), 110 B(Ldar), R(this),
111 B(StaContextSlot), R(context), U8(4), 111 B(StaContextSlot), R(context), U8(4), U8(0),
112 B(CreateMappedArguments), 112 B(CreateMappedArguments),
113 B(StaContextSlot), R(context), U8(6), 113 B(StaContextSlot), R(context), U8(6), U8(0),
114 B(Ldar), R(new_target), 114 B(Ldar), R(new_target),
115 B(StaContextSlot), R(context), U8(5), 115 B(StaContextSlot), R(context), U8(5), U8(0),
116 /* 30 E> */ B(StackCheck), 116 /* 30 E> */ B(StackCheck),
117 /* 34 S> */ B(LdaSmi), U8(20), 117 /* 34 S> */ B(LdaSmi), U8(20),
118 /* 36 E> */ B(StaLookupSlotSloppy), U8(0), 118 /* 36 E> */ B(StaLookupSlotSloppy), U8(0),
119 /* 42 S> */ B(LdaConstant), U8(1), 119 /* 42 S> */ B(LdaConstant), U8(1),
120 B(Star), R(3), 120 B(Star), R(3),
121 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1), 121 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1),
122 B(LdaConstant), U8(2), 122 B(LdaConstant), U8(2),
123 B(Star), R(3), 123 B(Star), R(3),
124 B(LdaZero), 124 B(LdaZero),
125 B(Star), R(7), 125 B(Star), R(7),
(...skipping 10 matching lines...) Expand all
136 /* 59 S> */ B(Return), 136 /* 59 S> */ B(Return),
137 ] 137 ]
138 constant pool: [ 138 constant pool: [
139 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 139 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
140 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], 140 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"],
141 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 141 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
142 ] 142 ]
143 handlers: [ 143 handlers: [
144 ] 144 ]
145 145
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698