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

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

Issue 1963663002: [interpreter] Add checks for source position to test-bytecode-generator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bad implicit cast. Created 4 years, 7 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: no 7 execute: no
8 wrap: no 8 wrap: no
9 top level: yes 9 top level: yes
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 var a = 1; 13 var a = 1;
14 " 14 "
15 frame size: 4 15 frame size: 4
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 31 17 bytecode array length: 31
18 bytecodes: [ 18 bytecodes: [
19 B(LdaConstant), U8(0), 19 B(LdaConstant), U8(0),
20 B(Star), R(1), 20 B(Star), R(1),
21 B(LdaZero), 21 B(LdaZero),
22 B(Star), R(2), 22 B(Star), R(2),
23 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), 23 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
24 B(StackCheck), 24 /* 0 E> */ B(StackCheck),
25 B(LdaConstant), U8(1), 25 /* 8 S> */ B(LdaConstant), U8(1),
26 B(Star), R(1), 26 B(Star), R(1),
27 B(LdaZero), 27 B(LdaZero),
28 B(Star), R(2), 28 B(Star), R(2),
29 B(LdaSmi), U8(1), 29 B(LdaSmi), U8(1),
30 B(Star), R(3), 30 B(Star), R(3),
31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), 31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
32 B(LdaUndefined), 32 B(LdaUndefined),
33 B(Return), 33 /* 10 S> */ B(Return),
34 ] 34 ]
35 constant pool: [ 35 constant pool: [
36 InstanceType::FIXED_ARRAY_TYPE, 36 InstanceType::FIXED_ARRAY_TYPE,
37 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 37 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
38 ] 38 ]
39 handlers: [ 39 handlers: [
40 ] 40 ]
41 41
42 --- 42 ---
43 snippet: " 43 snippet: "
44 function f() {} 44 function f() {}
45 " 45 "
46 frame size: 2 46 frame size: 2
47 parameter count: 1 47 parameter count: 1
48 bytecode array length: 15 48 bytecode array length: 15
49 bytecodes: [ 49 bytecodes: [
50 B(LdaConstant), U8(0), 50 B(LdaConstant), U8(0),
51 B(Star), R(0), 51 B(Star), R(0),
52 B(LdaZero), 52 B(LdaZero),
53 B(Star), R(1), 53 B(Star), R(1),
54 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2), 54 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
55 B(StackCheck), 55 /* 0 E> */ B(StackCheck),
56 B(LdaUndefined), 56 B(LdaUndefined),
57 B(Return), 57 /* 15 S> */ B(Return),
58 ] 58 ]
59 constant pool: [ 59 constant pool: [
60 InstanceType::FIXED_ARRAY_TYPE, 60 InstanceType::FIXED_ARRAY_TYPE,
61 ] 61 ]
62 handlers: [ 62 handlers: [
63 ] 63 ]
64 64
65 --- 65 ---
66 snippet: " 66 snippet: "
67 var a = 1; 67 var a = 1;
68 a=2; 68 a=2;
69 " 69 "
70 frame size: 4 70 frame size: 4
71 parameter count: 1 71 parameter count: 1
72 bytecode array length: 37 72 bytecode array length: 37
73 bytecodes: [ 73 bytecodes: [
74 B(LdaConstant), U8(0), 74 B(LdaConstant), U8(0),
75 B(Star), R(1), 75 B(Star), R(1),
76 B(LdaZero), 76 B(LdaZero),
77 B(Star), R(2), 77 B(Star), R(2),
78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), 78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
79 B(StackCheck), 79 /* 0 E> */ B(StackCheck),
80 B(LdaConstant), U8(1), 80 /* 8 S> */ B(LdaConstant), U8(1),
81 B(Star), R(1), 81 B(Star), R(1),
82 B(LdaZero), 82 B(LdaZero),
83 B(Star), R(2), 83 B(Star), R(2),
84 B(LdaSmi), U8(1), 84 B(LdaSmi), U8(1),
85 B(Star), R(3), 85 B(Star), R(3),
86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), 86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
87 B(LdaSmi), U8(2), 87 /* 11 S> */ B(LdaSmi), U8(2),
88 B(StaGlobalSloppy), U8(1), U8(3), 88 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3),
89 B(Star), R(0), 89 B(Star), R(0),
90 B(Return), 90 /* 15 S> */ B(Return),
91 ] 91 ]
92 constant pool: [ 92 constant pool: [
93 InstanceType::FIXED_ARRAY_TYPE, 93 InstanceType::FIXED_ARRAY_TYPE,
94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
95 ] 95 ]
96 handlers: [ 96 handlers: [
97 ] 97 ]
98 98
99 --- 99 ---
100 snippet: " 100 snippet: "
101 function f() {} 101 function f() {}
102 f(); 102 f();
103 " 103 "
104 frame size: 3 104 frame size: 3
105 parameter count: 1 105 parameter count: 1
106 bytecode array length: 29 106 bytecode array length: 29
107 bytecodes: [ 107 bytecodes: [
108 B(LdaConstant), U8(0), 108 B(LdaConstant), U8(0),
109 B(Star), R(1), 109 B(Star), R(1),
110 B(LdaZero), 110 B(LdaZero),
111 B(Star), R(2), 111 B(Star), R(2),
112 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), 112 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
113 B(StackCheck), 113 /* 0 E> */ B(StackCheck),
114 B(LdaUndefined), 114 /* 16 S> */ B(LdaUndefined),
115 B(Star), R(2), 115 B(Star), R(2),
116 B(LdaGlobal), U8(1), U8(1), 116 B(LdaGlobal), U8(1), U8(1),
117 B(Star), R(1), 117 B(Star), R(1),
118 B(Call), R(1), R(2), U8(1), U8(3), 118 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3),
119 B(Star), R(0), 119 B(Star), R(0),
120 B(Return), 120 /* 20 S> */ B(Return),
121 ] 121 ]
122 constant pool: [ 122 constant pool: [
123 InstanceType::FIXED_ARRAY_TYPE, 123 InstanceType::FIXED_ARRAY_TYPE,
124 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 124 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
125 ] 125 ]
126 handlers: [ 126 handlers: [
127 ] 127 ]
128 128
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698