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

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

Issue 2290753003: Allow lexically declared "arguments" in function scope in sloppy mode. (Closed)
Patch Set: clang format 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 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: 68 16 bytecode array length: 68
17 bytecodes: [ 17 bytecodes: [
18 B(CreateFunctionContext), U8(3), 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(6),
24 B(Ldar), R(new_target),
23 B(StaContextSlot), R(context), U8(5), 25 B(StaContextSlot), R(context), U8(5),
24 B(Ldar), R(new_target),
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),
29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1), 29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1),
30 B(LdaConstant), U8(1), 30 B(LdaConstant), U8(1),
31 B(Star), R(3), 31 B(Star), R(3),
32 B(LdaZero), 32 B(LdaZero),
33 B(Star), R(7), 33 B(Star), R(7),
34 B(LdaSmi), U8(30), 34 B(LdaSmi), U8(30),
35 B(Star), R(8), 35 B(Star), R(8),
(...skipping 22 matching lines...) Expand all
58 " 58 "
59 frame size: 10 59 frame size: 10
60 parameter count: 1 60 parameter count: 1
61 bytecode array length: 69 61 bytecode array length: 69
62 bytecodes: [ 62 bytecodes: [
63 B(CreateFunctionContext), U8(3), 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(6),
69 B(Ldar), R(new_target),
68 B(StaContextSlot), R(context), U8(5), 70 B(StaContextSlot), R(context), U8(5),
69 B(Ldar), R(new_target),
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),
74 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1), 74 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1),
75 B(LdaConstant), U8(1), 75 B(LdaConstant), U8(1),
76 B(Star), R(3), 76 B(Star), R(3),
77 B(LdaZero), 77 B(LdaZero),
78 B(Star), R(7), 78 B(Star), R(7),
79 B(LdaSmi), U8(30), 79 B(LdaSmi), U8(30),
80 B(Star), R(8), 80 B(Star), R(8),
(...skipping 23 matching lines...) Expand all
104 " 104 "
105 frame size: 10 105 frame size: 10
106 parameter count: 1 106 parameter count: 1
107 bytecode array length: 70 107 bytecode array length: 70
108 bytecodes: [ 108 bytecodes: [
109 B(CreateFunctionContext), U8(3), 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(6),
115 B(Ldar), R(new_target),
114 B(StaContextSlot), R(context), U8(5), 116 B(StaContextSlot), R(context), U8(5),
115 B(Ldar), R(new_target),
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),
120 /* 42 S> */ B(LdaConstant), U8(1), 120 /* 42 S> */ B(LdaConstant), U8(1),
121 B(Star), R(3), 121 B(Star), R(3),
122 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1), 122 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3 ), U8(1), R(1),
123 B(LdaConstant), U8(2), 123 B(LdaConstant), U8(2),
124 B(Star), R(3), 124 B(Star), R(3),
125 B(LdaZero), 125 B(LdaZero),
126 B(Star), R(7), 126 B(Star), R(7),
(...skipping 10 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
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Eval.golden ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698