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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/DeadCodeRemoval.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: number
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 return; var a = 1; a();
13 "
14 frame size: 1
15 parameter count: 1
16 bytecode array length: 3
17 bytecodes: [
18 B(StackCheck),
19 B(LdaUndefined),
20 B(Return),
21 ]
22 constant pool: [
23 ]
24 handlers: [
25 ]
26
27 ---
28 snippet: "
29 if (false) { return; }; var a = 1;
30 "
31 frame size: 1
32 parameter count: 1
33 bytecode array length: 7
34 bytecodes: [
35 B(StackCheck),
36 B(LdaSmi8), U8(1),
37 B(Star), R(0),
38 B(LdaUndefined),
39 B(Return),
40 ]
41 constant pool: [
42 ]
43 handlers: [
44 ]
45
46 ---
47 snippet: "
48 if (true) { return 1; } else { return 2; };
49 "
50 frame size: 0
51 parameter count: 1
52 bytecode array length: 4
53 bytecodes: [
54 B(StackCheck),
55 B(LdaSmi8), U8(1),
56 B(Return),
57 ]
58 constant pool: [
59 ]
60 handlers: [
61 ]
62
63 ---
64 snippet: "
65 var a = 1; if (a) { return 1; }; return 2;
66 "
67 frame size: 1
68 parameter count: 1
69 bytecode array length: 13
70 bytecodes: [
71 B(StackCheck),
72 B(LdaSmi8), U8(1),
73 B(Star), R(0),
74 B(JumpIfToBooleanFalse), U8(5),
75 B(LdaSmi8), U8(1),
76 B(Return),
77 B(LdaSmi8), U8(2),
78 B(Return),
79 ]
80 constant pool: [
81 ]
82 handlers: [
83 ]
84
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698