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

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: Move golden files to subdir, update golden format. 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; }f()
63 "
64 frame size: 0
65 parameter count: 1
66 bytecode array length: 10
67 bytecodes: [
68 B(StackCheck),
69 B(LdaGlobal), U8(0), U8(1),
70 B(ToNumber),
71 B(Dec),
72 B(StaGlobalStrict), U8(0), U8(3),
73 B(Return),
74 ]
75 constant pool: [
76 "unallocated",
77 ]
78 handlers: [
79 ]
80
81 ---
82 snippet: "
83 unallocated = 1;
84 function f() { return unallocated++; }
85 f()
86 "
87 frame size: 1
88 parameter count: 1
89 bytecode array length: 14
90 bytecodes: [
91 B(StackCheck),
92 B(LdaGlobal), U8(0), U8(1),
93 B(ToNumber),
94 B(Star), R(0),
95 B(Inc),
96 B(StaGlobalSloppy), U8(0), U8(3),
97 B(Ldar), R(0),
98 B(Return),
99 ]
100 constant pool: [
101 "unallocated",
102 ]
103 handlers: [
104 ]
105
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698