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

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

Powered by Google App Engine
This is Rietveld 408576698