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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CallRuntime.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: mixed
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 function f() { %TheHole() }
14 f()
15 "
16 frame size: 0
17 parameter count: 1
18 bytecode array length: 8
19 bytecodes: [
20 B(StackCheck),
21 B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0),
22 B(LdaUndefined),
23 B(Return),
24 ]
25 constant pool: [
26 ]
27 handlers: [
28 ]
29
30 ---
31 snippet: "
32 function f(a) { return %IsArray(a) }
33 f(undefined)
34 "
35 frame size: 1
36 parameter count: 2
37 bytecode array length: 11
38 bytecodes: [
39 B(StackCheck),
40 B(Ldar), R(arg0),
41 B(Star), R(0),
42 B(CallRuntime), U16(Runtime::kIsArray), R(0), U8(1),
43 B(Return),
44 ]
45 constant pool: [
46 ]
47 handlers: [
48 ]
49
50 ---
51 snippet: "
52 function f() { return %Add(1, 2) }
53 f()
54 "
55 frame size: 2
56 parameter count: 1
57 bytecode array length: 15
58 bytecodes: [
59 B(StackCheck),
60 B(LdaSmi8), U8(1),
61 B(Star), R(0),
62 B(LdaSmi8), U8(2),
63 B(Star), R(1),
64 B(CallRuntime), U16(Runtime::kAdd), R(0), U8(2),
65 B(Return),
66 ]
67 constant pool: [
68 ]
69 handlers: [
70 ]
71
72 ---
73 snippet: "
74 function f() { return %spread_iterable([1]) }
75 f()
76 "
77 frame size: 2
78 parameter count: 1
79 bytecode array length: 16
80 bytecodes: [
81 B(StackCheck),
82 B(LdaUndefined),
83 B(Star), R(0),
84 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
85 B(Star), R(1),
86 B(CallJSRuntime), U16(127), R(0), U8(2),
87 B(Return),
88 ]
89 constant pool: [
90 InstanceType::FIXED_ARRAY_TYPE,
91 ]
92 handlers: [
93 ]
94
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698