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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reflow REPEAT_249 macro. Created 4 years, 10 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
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations.
3 #
4
5 ---
6 pool type: string
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 var global = 1;
14 function f() { return ++global; }
15 f();
16 "
17 frame size: 0
18 parameter count: 1
19 bytecode array length: 10
20 bytecodes: [
21 B(StackCheck),
22 B(LdaGlobal), U8(0), U8(1),
23 B(ToNumber),
24 B(Inc),
25 B(StaGlobalSloppy), U8(0), U8(3),
26 B(Return),
27 ]
28 constant pool: [
29 "global",
30 ]
31 handlers: [
32 ]
33
34 ---
35 snippet: "
36 var global = 1;
37 function f() { return global--; }
38 f();
39 "
40 frame size: 1
41 parameter count: 1
42 bytecode array length: 14
43 bytecodes: [
44 B(StackCheck),
45 B(LdaGlobal), U8(0), U8(1),
46 B(ToNumber),
47 B(Star), R(0),
48 B(Dec),
49 B(StaGlobalSloppy), U8(0), U8(3),
50 B(Ldar), R(0),
51 B(Return),
52 ]
53 constant pool: [
54 "global",
55 ]
56 handlers: [
57 ]
58
59 ---
60 snippet: "
61 unallocated = 1;
62 function f() { 'use strict'; return --unallocated; }
63 f();
64 "
65 frame size: 0
66 parameter count: 1
67 bytecode array length: 10
68 bytecodes: [
69 B(StackCheck),
70 B(LdaGlobal), U8(0), U8(1),
71 B(ToNumber),
72 B(Dec),
73 B(StaGlobalStrict), U8(0), U8(3),
74 B(Return),
75 ]
76 constant pool: [
77 "unallocated",
78 ]
79 handlers: [
80 ]
81
82 ---
83 snippet: "
84 unallocated = 1;
85 function f() { return unallocated++; }
86 f();
87 "
88 frame size: 1
89 parameter count: 1
90 bytecode array length: 14
91 bytecodes: [
92 B(StackCheck),
93 B(LdaGlobal), U8(0), U8(1),
94 B(ToNumber),
95 B(Star), R(0),
96 B(Inc),
97 B(StaGlobalSloppy), U8(0), U8(3),
98 B(Ldar), R(0),
99 B(Return),
100 ]
101 constant pool: [
102 "unallocated",
103 ]
104 handlers: [
105 ]
106
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698