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

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

Issue 2310103002: [Interpreter] Remove constant pool type in tests (Closed)
Patch Set: Remove warning for pool type 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
7 execute: yes 6 execute: yes
8 wrap: no 7 wrap: no
9 test function name: f 8 test function name: f
10 9
11 --- 10 ---
12 snippet: " 11 snippet: "
13 var global = 1; 12 var global = 1;
14 function f() { return ++global; } 13 function f() { return ++global; }
15 f(); 14 f();
16 " 15 "
17 frame size: 0 16 frame size: 0
18 parameter count: 1 17 parameter count: 1
19 bytecode array length: 9 18 bytecode array length: 9
20 bytecodes: [ 19 bytecodes: [
21 /* 26 E> */ B(StackCheck), 20 /* 26 E> */ B(StackCheck),
22 /* 31 S> */ B(LdaGlobal), U8(1), 21 /* 31 S> */ B(LdaGlobal), U8(1),
23 B(Inc), U8(5), 22 B(Inc), U8(5),
24 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(3), 23 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(3),
25 /* 48 S> */ B(Return), 24 /* 48 S> */ B(Return),
26 ] 25 ]
27 constant pool: [ 26 constant pool: [
28 "global", 27 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
29 ] 28 ]
30 handlers: [ 29 handlers: [
31 ] 30 ]
32 31
33 --- 32 ---
34 snippet: " 33 snippet: "
35 var global = 1; 34 var global = 1;
36 function f() { return global--; } 35 function f() { return global--; }
37 f(); 36 f();
38 " 37 "
39 frame size: 1 38 frame size: 1
40 parameter count: 1 39 parameter count: 1
41 bytecode array length: 13 40 bytecode array length: 13
42 bytecodes: [ 41 bytecodes: [
43 /* 26 E> */ B(StackCheck), 42 /* 26 E> */ B(StackCheck),
44 /* 31 S> */ B(LdaGlobal), U8(1), 43 /* 31 S> */ B(LdaGlobal), U8(1),
45 B(ToNumber), R(0), 44 B(ToNumber), R(0),
46 B(Dec), U8(5), 45 B(Dec), U8(5),
47 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(3), 46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(3),
48 B(Ldar), R(0), 47 B(Ldar), R(0),
49 /* 48 S> */ B(Return), 48 /* 48 S> */ B(Return),
50 ] 49 ]
51 constant pool: [ 50 constant pool: [
52 "global", 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
53 ] 52 ]
54 handlers: [ 53 handlers: [
55 ] 54 ]
56 55
57 --- 56 ---
58 snippet: " 57 snippet: "
59 unallocated = 1; 58 unallocated = 1;
60 function f() { 'use strict'; return --unallocated; } 59 function f() { 'use strict'; return --unallocated; }
61 f(); 60 f();
62 " 61 "
63 frame size: 0 62 frame size: 0
64 parameter count: 1 63 parameter count: 1
65 bytecode array length: 9 64 bytecode array length: 9
66 bytecodes: [ 65 bytecodes: [
67 /* 27 E> */ B(StackCheck), 66 /* 27 E> */ B(StackCheck),
68 /* 46 S> */ B(LdaGlobal), U8(1), 67 /* 46 S> */ B(LdaGlobal), U8(1),
69 B(Dec), U8(5), 68 B(Dec), U8(5),
70 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(3), 69 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(3),
71 /* 68 S> */ B(Return), 70 /* 68 S> */ B(Return),
72 ] 71 ]
73 constant pool: [ 72 constant pool: [
74 "unallocated", 73 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
75 ] 74 ]
76 handlers: [ 75 handlers: [
77 ] 76 ]
78 77
79 --- 78 ---
80 snippet: " 79 snippet: "
81 unallocated = 1; 80 unallocated = 1;
82 function f() { return unallocated++; } 81 function f() { return unallocated++; }
83 f(); 82 f();
84 " 83 "
85 frame size: 1 84 frame size: 1
86 parameter count: 1 85 parameter count: 1
87 bytecode array length: 13 86 bytecode array length: 13
88 bytecodes: [ 87 bytecodes: [
89 /* 27 E> */ B(StackCheck), 88 /* 27 E> */ B(StackCheck),
90 /* 32 S> */ B(LdaGlobal), U8(1), 89 /* 32 S> */ B(LdaGlobal), U8(1),
91 B(ToNumber), R(0), 90 B(ToNumber), R(0),
92 B(Inc), U8(5), 91 B(Inc), U8(5),
93 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(3), 92 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(3),
94 B(Ldar), R(0), 93 B(Ldar), R(0),
95 /* 54 S> */ B(Return), 94 /* 54 S> */ B(Return),
96 ] 95 ]
97 constant pool: [ 96 constant pool: [
98 "unallocated", 97 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
99 ] 98 ]
100 handlers: [ 99 handlers: [
101 ] 100 ]
102 101
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698