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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: std::vector instead of initializer_list, golden path as constant. 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 bytecodes: [
20 B(StackCheck),
21 B(LdaGlobal), U8(0), U8(1),
22 B(ToNumber),
23 B(Inc),
24 B(StaGlobalSloppy), U8(0), U8(3),
25 B(Return),
26 ]
27 constant pool: [
28 "global",
29 ]
30 handlers: [
31 ]
32
33 ---
34 snippet: "
35 var global = 1;
36 function f() { return global--; }
37 f()
38 "
39 frame size: 1 # in multiples of sizeof(void*)
40 parameter count: 1
41 bytecodes: [
42 B(StackCheck),
43 B(LdaGlobal), U8(0), U8(1),
44 B(ToNumber),
45 B(Star), R(0),
46 B(Dec),
47 B(StaGlobalSloppy), U8(0), U8(3),
48 B(Ldar), R(0),
49 B(Return),
50 ]
51 constant pool: [
52 "global",
53 ]
54 handlers: [
55 ]
56
57 ---
58 snippet: "
59 unallocated = 1;
60 function f() { 'use strict'; return --unallocated; }f()
61 "
62 frame size: 0
63 parameter count: 1
64 bytecodes: [
65 B(StackCheck),
66 B(LdaGlobal), U8(0), U8(1),
67 B(ToNumber),
68 B(Dec),
69 B(StaGlobalStrict), U8(0), U8(3),
70 B(Return),
71 ]
72 constant pool: [
73 "unallocated",
74 ]
75 handlers: [
76 ]
77
78 ---
79 snippet: "
80 unallocated = 1;
81 function f() { return unallocated++; }
82 f()
83 "
84 frame size: 1 # in multiples of sizeof(void*)
85 parameter count: 1
86 bytecodes: [
87 B(StackCheck),
88 B(LdaGlobal), U8(0), U8(1),
89 B(ToNumber),
90 B(Star), R(0),
91 B(Inc),
92 B(StaGlobalSloppy), U8(0), U8(3),
93 B(Ldar), R(0),
94 B(Return),
95 ]
96 constant pool: [
97 "unallocated",
98 ]
99 handlers: [
100 ]
101
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698