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

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

Issue 2113613002: [Interpereter] Inline FastNewClosure into CreateClosure bytecode handler (Closed) Base URL: ssh://rmcilroy.lon.corp.google.com///usr/local/google/code/v8_full/v8@int_context
Patch Set: Rebaseline bytecode expectations Created 4 years, 5 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 var a; return function() { a = 1; }; 12 var a; return function() { a = 1; };
13 " 13 "
14 frame size: 1 14 frame size: 1
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 12 16 bytecode array length: 12
17 bytecodes: [ 17 bytecodes: [
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
19 B(PushContext), R(0), 19 B(PushContext), R(0),
20 /* 30 E> */ B(StackCheck), 20 /* 30 E> */ B(StackCheck),
21 /* 41 S> */ B(CreateClosure), U8(0), U8(0), 21 /* 41 S> */ B(CreateClosure), U8(0), U8(2),
22 /* 71 S> */ B(Return), 22 /* 71 S> */ B(Return),
23 ] 23 ]
24 constant pool: [ 24 constant pool: [
25 InstanceType::SHARED_FUNCTION_INFO_TYPE, 25 InstanceType::SHARED_FUNCTION_INFO_TYPE,
26 ] 26 ]
27 handlers: [ 27 handlers: [
28 ] 28 ]
29 29
30 --- 30 ---
31 snippet: " 31 snippet: "
32 var a = 1; return function() { a = 2; }; 32 var a = 1; return function() { a = 2; };
33 " 33 "
34 frame size: 1 34 frame size: 1
35 parameter count: 1 35 parameter count: 1
36 bytecode array length: 17 36 bytecode array length: 17
37 bytecodes: [ 37 bytecodes: [
38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
39 B(PushContext), R(0), 39 B(PushContext), R(0),
40 /* 30 E> */ B(StackCheck), 40 /* 30 E> */ B(StackCheck),
41 /* 42 S> */ B(LdaSmi), U8(1), 41 /* 42 S> */ B(LdaSmi), U8(1),
42 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 42 /* 42 E> */ B(StaContextSlot), R(context), U8(4),
43 /* 45 S> */ B(CreateClosure), U8(0), U8(0), 43 /* 45 S> */ B(CreateClosure), U8(0), U8(2),
44 /* 75 S> */ B(Return), 44 /* 75 S> */ B(Return),
45 ] 45 ]
46 constant pool: [ 46 constant pool: [
47 InstanceType::SHARED_FUNCTION_INFO_TYPE, 47 InstanceType::SHARED_FUNCTION_INFO_TYPE,
48 ] 48 ]
49 handlers: [ 49 handlers: [
50 ] 50 ]
51 51
52 --- 52 ---
53 snippet: " 53 snippet: "
54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; 54 var a = 1; var b = 2; return function() { a = 2; b = 3 };
55 " 55 "
56 frame size: 1 56 frame size: 1
57 parameter count: 1 57 parameter count: 1
58 bytecode array length: 22 58 bytecode array length: 22
59 bytecodes: [ 59 bytecodes: [
60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
61 B(PushContext), R(0), 61 B(PushContext), R(0),
62 /* 30 E> */ B(StackCheck), 62 /* 30 E> */ B(StackCheck),
63 /* 42 S> */ B(LdaSmi), U8(1), 63 /* 42 S> */ B(LdaSmi), U8(1),
64 /* 42 E> */ B(StaContextSlot), R(context), U8(4), 64 /* 42 E> */ B(StaContextSlot), R(context), U8(4),
65 /* 53 S> */ B(LdaSmi), U8(2), 65 /* 53 S> */ B(LdaSmi), U8(2),
66 /* 53 E> */ B(StaContextSlot), R(context), U8(5), 66 /* 53 E> */ B(StaContextSlot), R(context), U8(5),
67 /* 56 S> */ B(CreateClosure), U8(0), U8(0), 67 /* 56 S> */ B(CreateClosure), U8(0), U8(2),
68 /* 92 S> */ B(Return), 68 /* 92 S> */ B(Return),
69 ] 69 ]
70 constant pool: [ 70 constant pool: [
71 InstanceType::SHARED_FUNCTION_INFO_TYPE, 71 InstanceType::SHARED_FUNCTION_INFO_TYPE,
72 ] 72 ]
73 handlers: [ 73 handlers: [
74 ] 74 ]
75 75
76 --- 76 ---
77 snippet: " 77 snippet: "
78 var a; (function() { a = 2; })(); return a; 78 var a; (function() { a = 2; })(); return a;
79 " 79 "
80 frame size: 3 80 frame size: 3
81 parameter count: 1 81 parameter count: 1
82 bytecode array length: 24 82 bytecode array length: 24
83 bytecodes: [ 83 bytecodes: [
84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1), 84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
85 B(PushContext), R(0), 85 B(PushContext), R(0),
86 /* 30 E> */ B(StackCheck), 86 /* 30 E> */ B(StackCheck),
87 /* 41 S> */ B(LdrUndefined), R(2), 87 /* 41 S> */ B(LdrUndefined), R(2),
88 B(CreateClosure), U8(0), U8(0), 88 B(CreateClosure), U8(0), U8(2),
89 B(Star), R(1), 89 B(Star), R(1),
90 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1), 90 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1),
91 /* 68 S> */ B(LdaContextSlot), R(context), U8(4), 91 /* 68 S> */ B(LdaContextSlot), R(context), U8(4),
92 /* 78 S> */ B(Return), 92 /* 78 S> */ B(Return),
93 ] 93 ]
94 constant pool: [ 94 constant pool: [
95 InstanceType::SHARED_FUNCTION_INFO_TYPE, 95 InstanceType::SHARED_FUNCTION_INFO_TYPE,
96 ] 96 ]
97 handlers: [ 97 handlers: [
98 ] 98 ]
(...skipping 17 matching lines...) Expand all
116 /* 56 E> */ B(StaContextSlot), R(context), U8(4), 116 /* 56 E> */ B(StaContextSlot), R(context), U8(4),
117 B(LdaConstant), U8(0), 117 B(LdaConstant), U8(0),
118 B(Star), R(2), 118 B(Star), R(2),
119 B(Mov), R(closure), R(3), 119 B(Mov), R(closure), R(3),
120 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), 120 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2),
121 B(PushContext), R(1), 121 B(PushContext), R(1),
122 B(LdaTheHole), 122 B(LdaTheHole),
123 B(StaContextSlot), R(context), U8(4), 123 B(StaContextSlot), R(context), U8(4),
124 /* 69 S> */ B(LdaSmi), U8(2), 124 /* 69 S> */ B(LdaSmi), U8(2),
125 /* 69 E> */ B(StaContextSlot), R(context), U8(4), 125 /* 69 E> */ B(StaContextSlot), R(context), U8(4),
126 /* 72 S> */ B(CreateClosure), U8(1), U8(0), 126 /* 72 S> */ B(CreateClosure), U8(1), U8(2),
127 B(PopContext), R(0), 127 B(PopContext), R(0),
128 /* 104 S> */ B(Return), 128 /* 104 S> */ B(Return),
129 ] 129 ]
130 constant pool: [ 130 constant pool: [
131 InstanceType::FIXED_ARRAY_TYPE, 131 InstanceType::FIXED_ARRAY_TYPE,
132 InstanceType::SHARED_FUNCTION_INFO_TYPE, 132 InstanceType::SHARED_FUNCTION_INFO_TYPE,
133 ] 133 ]
134 handlers: [ 134 handlers: [
135 ] 135 ]
136 136
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 /* 3440 S> */ B(LdaSmi), U8(100), 907 /* 3440 S> */ B(LdaSmi), U8(100),
908 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256), 908 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256),
909 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256), 909 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256),
910 /* 3454 S> */ B(Return), 910 /* 3454 S> */ B(Return),
911 ] 911 ]
912 constant pool: [ 912 constant pool: [
913 ] 913 ]
914 handlers: [ 914 handlers: [
915 ] 915 ]
916 916
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698