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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CallNew.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 bar() { this.value = 0; }
14 function f() { return new bar(); }
15 f()
16 "
17 frame size: 1
18 parameter count: 1
19 bytecode array length: 11
20 bytecodes: [
21 B(StackCheck),
22 B(LdaGlobal), U8(0), U8(2),
23 B(Star), R(0),
24 B(New), R(0), R(0), U8(0),
25 B(Return),
26 ]
27 constant pool: [
28 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
29 ]
30 handlers: [
31 ]
32
33 ---
34 snippet: "
35 function bar(x) { this.value = 18; this.x = x;}
36 function f() { return new bar(3); }
37 f()
38 "
39 frame size: 2
40 parameter count: 1
41 bytecode array length: 17
42 bytecodes: [
43 B(StackCheck),
44 B(LdaGlobal), U8(0), U8(2),
45 B(Star), R(0),
46 B(LdaSmi8), U8(3),
47 B(Star), R(1),
48 B(Ldar), R(0),
49 B(New), R(0), R(1), U8(1),
50 B(Return),
51 ]
52 constant pool: [
53 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
54 ]
55 handlers: [
56 ]
57
58 ---
59 snippet: "
60 function bar(w, x, y, z) {
61 this.value = 18;
62 this.x = x;
63 this.y = y;
64 this.z = z;
65 }
66 function f() { return new bar(3, 4, 5); }
67 f()
68 "
69 frame size: 4
70 parameter count: 1
71 bytecode array length: 25
72 bytecodes: [
73 B(StackCheck),
74 B(LdaGlobal), U8(0), U8(2),
75 B(Star), R(0),
76 B(LdaSmi8), U8(3),
77 B(Star), R(1),
78 B(LdaSmi8), U8(4),
79 B(Star), R(2),
80 B(LdaSmi8), U8(5),
81 B(Star), R(3),
82 B(Ldar), R(0),
83 B(New), R(0), R(1), U8(3),
84 B(Return),
85 ]
86 constant pool: [
87 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
88 ]
89 handlers: [
90 ]
91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698