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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/LookupSlot.golden

Issue 2187523002: [interpreter] Add CreateFunctionContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fncontextstubslotparam
Patch Set: fix bytecode graph builder Created 4 years, 4 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 pool type: string 6 pool type: string
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 eval('var x = 10;'); return x; 12 eval('var x = 10;'); return x;
13 " 13 "
14 frame size: 10 14 frame size: 10
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 71 16 bytecode array length: 68
17 bytecodes: [ 17 bytecodes: [
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 18 B(CreateFunctionContext), U8(3),
19 B(PushContext), R(0), 19 B(PushContext), R(0),
20 B(Ldar), R(this), 20 B(Ldar), R(this),
21 B(StaContextSlot), R(context), U8(4), 21 B(StaContextSlot), R(context), U8(4),
22 B(CreateMappedArguments), 22 B(CreateMappedArguments),
23 B(StaContextSlot), R(context), U8(5), 23 B(StaContextSlot), R(context), U8(5),
24 B(Ldar), R(new_target), 24 B(Ldar), R(new_target),
25 B(StaContextSlot), R(context), U8(6), 25 B(StaContextSlot), R(context), U8(6),
26 /* 30 E> */ B(StackCheck), 26 /* 30 E> */ B(StackCheck),
27 /* 34 S> */ B(LdaConstant), U8(0), 27 /* 34 S> */ B(LdaConstant), U8(0),
28 B(Star), R(3), 28 B(Star), R(3),
(...skipping 22 matching lines...) Expand all
51 ] 51 ]
52 handlers: [ 52 handlers: [
53 ] 53 ]
54 54
55 --- 55 ---
56 snippet: " 56 snippet: "
57 eval('var x = 10;'); return typeof x; 57 eval('var x = 10;'); return typeof x;
58 " 58 "
59 frame size: 10 59 frame size: 10
60 parameter count: 1 60 parameter count: 1
61 bytecode array length: 72 61 bytecode array length: 69
62 bytecodes: [ 62 bytecodes: [
63 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 63 B(CreateFunctionContext), U8(3),
64 B(PushContext), R(0), 64 B(PushContext), R(0),
65 B(Ldar), R(this), 65 B(Ldar), R(this),
66 B(StaContextSlot), R(context), U8(4), 66 B(StaContextSlot), R(context), U8(4),
67 B(CreateMappedArguments), 67 B(CreateMappedArguments),
68 B(StaContextSlot), R(context), U8(5), 68 B(StaContextSlot), R(context), U8(5),
69 B(Ldar), R(new_target), 69 B(Ldar), R(new_target),
70 B(StaContextSlot), R(context), U8(6), 70 B(StaContextSlot), R(context), U8(6),
71 /* 30 E> */ B(StackCheck), 71 /* 30 E> */ B(StackCheck),
72 /* 34 S> */ B(LdaConstant), U8(0), 72 /* 34 S> */ B(LdaConstant), U8(0),
73 B(Star), R(3), 73 B(Star), R(3),
(...skipping 23 matching lines...) Expand all
97 ] 97 ]
98 handlers: [ 98 handlers: [
99 ] 99 ]
100 100
101 --- 101 ---
102 snippet: " 102 snippet: "
103 x = 20; return eval(''); 103 x = 20; return eval('');
104 " 104 "
105 frame size: 10 105 frame size: 10
106 parameter count: 1 106 parameter count: 1
107 bytecode array length: 73 107 bytecode array length: 70
108 bytecodes: [ 108 bytecodes: [
109 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 109 B(CreateFunctionContext), U8(3),
110 B(PushContext), R(0), 110 B(PushContext), R(0),
111 B(Ldar), R(this), 111 B(Ldar), R(this),
112 B(StaContextSlot), R(context), U8(4), 112 B(StaContextSlot), R(context), U8(4),
113 B(CreateMappedArguments), 113 B(CreateMappedArguments),
114 B(StaContextSlot), R(context), U8(5), 114 B(StaContextSlot), R(context), U8(5),
115 B(Ldar), R(new_target), 115 B(Ldar), R(new_target),
116 B(StaContextSlot), R(context), U8(6), 116 B(StaContextSlot), R(context), U8(6),
117 /* 30 E> */ B(StackCheck), 117 /* 30 E> */ B(StackCheck),
118 /* 34 S> */ B(LdaSmi), U8(20), 118 /* 34 S> */ B(LdaSmi), U8(20),
119 /* 36 E> */ B(StaLookupSlotSloppy), U8(0), 119 /* 36 E> */ B(StaLookupSlotSloppy), U8(0),
(...skipping 17 matching lines...) Expand all
137 /* 59 S> */ B(Return), 137 /* 59 S> */ B(Return),
138 ] 138 ]
139 constant pool: [ 139 constant pool: [
140 "x", 140 "x",
141 "eval", 141 "eval",
142 "", 142 "",
143 ] 143 ]
144 handlers: [ 144 handlers: [
145 ] 145 ]
146 146
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698