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

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

Powered by Google App Engine
This is Rietveld 408576698