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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 bytecodes: [
19 B(StackCheck),
20 B(CallRuntime), U16(72), R(0), U8(0),
oth 2016/02/22 15:54:31 It will generate less churn if runtime function id
rmcilroy 2016/02/22 21:49:49 +1!
Stefano Sanfilippo 2016/02/23 15:57:18 Definitely. As agreed, I will prepare a follow-up
21 B(LdaUndefined),
22 B(Return),
23 ]
24 constant pool: [
25 ]
26 handlers: [
27 ]
28
29 ---
30 snippet: "
31 function f(a) { return %IsArray(a) }
32 f(undefined)
33 "
34 frame size: 1 # in multiples of sizeof(void*)
35 parameter count: 2
36 bytecodes: [
37 B(StackCheck),
38 B(Ldar), R(arg0),
39 B(Star), R(0),
40 B(CallRuntime), U16(39), R(0), U8(1),
41 B(Return),
42 ]
43 constant pool: [
44 ]
45 handlers: [
46 ]
47
48 ---
49 snippet: "
50 function f() { return %Add(1, 2) }
51 f()
52 "
53 frame size: 2 # in multiples of sizeof(void*)
54 parameter count: 1
55 bytecodes: [
56 B(StackCheck),
57 B(LdaSmi8), U8(1),
58 B(Star), R(0),
59 B(LdaSmi8), U8(2),
60 B(Star), R(1),
61 B(CallRuntime), U16(424), R(0), U8(2),
62 B(Return),
63 ]
64 constant pool: [
65 ]
66 handlers: [
67 ]
68
69 ---
70 snippet: "
71 function f() { return %spread_iterable([1]) }
72 f()
73 "
74 frame size: 2 # in multiples of sizeof(void*)
75 parameter count: 1
76 bytecodes: [
77 B(StackCheck),
78 B(LdaUndefined),
79 B(Star), R(0),
80 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
81 B(Star), R(1),
82 B(CallJSRuntime), U16(127), R(0), U8(2),
83 B(Return),
84 ]
85 constant pool: [
86 InstanceType::FIXED_ARRAY_TYPE,
87 ]
88 handlers: [
89 ]
90
OLDNEW
« no previous file with comments | « test/cctest/interpreter/CallNew.golden ('k') | test/cctest/interpreter/ClassDeclarations.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698