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

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

Issue 2504153002: [TypeFeedbackVector] Root literal arrays in function literals slots (Closed)
Patch Set: REBASE. Created 4 years 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 var a; return function() { a = 1; }; 10 var a; return function() { a = 1; };
11 " 11 "
12 frame size: 1 12 frame size: 1
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 9 14 bytecode array length: 10
15 bytecodes: [ 15 bytecodes: [
16 B(CreateFunctionContext), U8(1), 16 B(CreateFunctionContext), U8(1),
17 B(PushContext), R(0), 17 B(PushContext), R(0),
18 /* 30 E> */ B(StackCheck), 18 /* 30 E> */ B(StackCheck),
19 /* 41 S> */ B(CreateClosure), U8(0), U8(2), 19 /* 41 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
20 /* 71 S> */ B(Return), 20 /* 71 S> */ B(Return),
21 ] 21 ]
22 constant pool: [ 22 constant pool: [
23 SHARED_FUNCTION_INFO_TYPE, 23 SHARED_FUNCTION_INFO_TYPE,
24 ] 24 ]
25 handlers: [ 25 handlers: [
26 ] 26 ]
27 27
28 --- 28 ---
29 snippet: " 29 snippet: "
30 var a = 1; return function() { a = 2; }; 30 var a = 1; return function() { a = 2; };
31 " 31 "
32 frame size: 1 32 frame size: 1
33 parameter count: 1 33 parameter count: 1
34 bytecode array length: 13 34 bytecode array length: 14
35 bytecodes: [ 35 bytecodes: [
36 B(CreateFunctionContext), U8(1), 36 B(CreateFunctionContext), U8(1),
37 B(PushContext), R(0), 37 B(PushContext), R(0),
38 /* 30 E> */ B(StackCheck), 38 /* 30 E> */ B(StackCheck),
39 /* 42 S> */ B(LdaSmi), U8(1), 39 /* 42 S> */ B(LdaSmi), U8(1),
40 /* 42 E> */ B(StaCurrentContextSlot), U8(4), 40 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
41 /* 45 S> */ B(CreateClosure), U8(0), U8(2), 41 /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
42 /* 75 S> */ B(Return), 42 /* 75 S> */ B(Return),
43 ] 43 ]
44 constant pool: [ 44 constant pool: [
45 SHARED_FUNCTION_INFO_TYPE, 45 SHARED_FUNCTION_INFO_TYPE,
46 ] 46 ]
47 handlers: [ 47 handlers: [
48 ] 48 ]
49 49
50 --- 50 ---
51 snippet: " 51 snippet: "
52 var a = 1; var b = 2; return function() { a = 2; b = 3 }; 52 var a = 1; var b = 2; return function() { a = 2; b = 3 };
53 " 53 "
54 frame size: 1 54 frame size: 1
55 parameter count: 1 55 parameter count: 1
56 bytecode array length: 17 56 bytecode array length: 18
57 bytecodes: [ 57 bytecodes: [
58 B(CreateFunctionContext), U8(2), 58 B(CreateFunctionContext), U8(2),
59 B(PushContext), R(0), 59 B(PushContext), R(0),
60 /* 30 E> */ B(StackCheck), 60 /* 30 E> */ B(StackCheck),
61 /* 42 S> */ B(LdaSmi), U8(1), 61 /* 42 S> */ B(LdaSmi), U8(1),
62 /* 42 E> */ B(StaCurrentContextSlot), U8(4), 62 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
63 /* 53 S> */ B(LdaSmi), U8(2), 63 /* 53 S> */ B(LdaSmi), U8(2),
64 /* 53 E> */ B(StaCurrentContextSlot), U8(5), 64 /* 53 E> */ B(StaCurrentContextSlot), U8(5),
65 /* 56 S> */ B(CreateClosure), U8(0), U8(2), 65 /* 56 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
66 /* 92 S> */ B(Return), 66 /* 92 S> */ B(Return),
67 ] 67 ]
68 constant pool: [ 68 constant pool: [
69 SHARED_FUNCTION_INFO_TYPE, 69 SHARED_FUNCTION_INFO_TYPE,
70 ] 70 ]
71 handlers: [ 71 handlers: [
72 ] 72 ]
73 73
74 --- 74 ---
75 snippet: " 75 snippet: "
76 var a; (function() { a = 2; })(); return a; 76 var a; (function() { a = 2; })(); return a;
77 " 77 "
78 frame size: 3 78 frame size: 3
79 parameter count: 1 79 parameter count: 1
80 bytecode array length: 21 80 bytecode array length: 22
81 bytecodes: [ 81 bytecodes: [
82 B(CreateFunctionContext), U8(1), 82 B(CreateFunctionContext), U8(1),
83 B(PushContext), R(0), 83 B(PushContext), R(0),
84 /* 30 E> */ B(StackCheck), 84 /* 30 E> */ B(StackCheck),
85 /* 41 S> */ B(LdaUndefined), 85 /* 41 S> */ B(LdaUndefined),
86 B(Star), R(2), 86 B(Star), R(2),
87 B(CreateClosure), U8(0), U8(2), 87 B(CreateClosure), U8(0), U8(4), U8(2),
88 B(Star), R(1), 88 B(Star), R(1),
89 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(2), 89 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(2),
90 /* 68 S> */ B(LdaCurrentContextSlot), U8(4), 90 /* 68 S> */ B(LdaCurrentContextSlot), U8(4),
91 /* 78 S> */ B(Return), 91 /* 78 S> */ B(Return),
92 ] 92 ]
93 constant pool: [ 93 constant pool: [
94 SHARED_FUNCTION_INFO_TYPE, 94 SHARED_FUNCTION_INFO_TYPE,
95 ] 95 ]
96 handlers: [ 96 handlers: [
97 ] 97 ]
98 98
99 --- 99 ---
100 snippet: " 100 snippet: "
101 'use strict'; 101 'use strict';
102 let a = 1; 102 let a = 1;
103 { let b = 2; return function() { a + b; }; } 103 { let b = 2; return function() { a + b; }; }
104 " 104 "
105 frame size: 2 105 frame size: 2
106 parameter count: 1 106 parameter count: 1
107 bytecode array length: 31 107 bytecode array length: 32
108 bytecodes: [ 108 bytecodes: [
109 B(CreateFunctionContext), U8(1), 109 B(CreateFunctionContext), U8(1),
110 B(PushContext), R(0), 110 B(PushContext), R(0),
111 B(LdaTheHole), 111 B(LdaTheHole),
112 B(StaCurrentContextSlot), U8(4), 112 B(StaCurrentContextSlot), U8(4),
113 /* 30 E> */ B(StackCheck), 113 /* 30 E> */ B(StackCheck),
114 /* 56 S> */ B(LdaSmi), U8(1), 114 /* 56 S> */ B(LdaSmi), U8(1),
115 /* 56 E> */ B(StaCurrentContextSlot), U8(4), 115 /* 56 E> */ B(StaCurrentContextSlot), U8(4),
116 B(Ldar), R(closure), 116 B(Ldar), R(closure),
117 B(CreateBlockContext), U8(0), 117 B(CreateBlockContext), U8(0),
118 B(PushContext), R(1), 118 B(PushContext), R(1),
119 B(LdaTheHole), 119 B(LdaTheHole),
120 B(StaCurrentContextSlot), U8(4), 120 B(StaCurrentContextSlot), U8(4),
121 /* 69 S> */ B(LdaSmi), U8(2), 121 /* 69 S> */ B(LdaSmi), U8(2),
122 /* 69 E> */ B(StaCurrentContextSlot), U8(4), 122 /* 69 E> */ B(StaCurrentContextSlot), U8(4),
123 /* 72 S> */ B(CreateClosure), U8(1), U8(2), 123 /* 72 S> */ B(CreateClosure), U8(1), U8(2), U8(2),
124 B(PopContext), R(0), 124 B(PopContext), R(0),
125 /* 104 S> */ B(Return), 125 /* 104 S> */ B(Return),
126 ] 126 ]
127 constant pool: [ 127 constant pool: [
128 FIXED_ARRAY_TYPE, 128 FIXED_ARRAY_TYPE,
129 SHARED_FUNCTION_INFO_TYPE, 129 SHARED_FUNCTION_INFO_TYPE,
130 ] 130 ]
131 handlers: [ 131 handlers: [
132 ] 132 ]
133 133
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 /* 3454 E> */ B(Wide), B(StaCurrentContextSlot), U16(256), 910 /* 3454 E> */ B(Wide), B(StaCurrentContextSlot), U16(256),
911 /* 3459 S> */ B(Wide), B(LdaCurrentContextSlot), U16(256), 911 /* 3459 S> */ B(Wide), B(LdaCurrentContextSlot), U16(256),
912 /* 3468 S> */ B(Return), 912 /* 3468 S> */ B(Return),
913 ] 913 ]
914 constant pool: [ 914 constant pool: [
915 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], 915 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"],
916 ] 916 ]
917 handlers: [ 917 handlers: [
918 ] 918 ]
919 919
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698