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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/DoExpression.golden

Issue 2038323002: [interpreter] Filter expression positions at source. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0060-source-position-testing
Patch Set: Rebase Created 4 years, 6 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
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 pool type: string 6 pool type: string
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 do expressions: yes 9 do expressions: yes
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 var a = do { }; return a; 13 var a = do { }; return a;
14 " 14 "
15 frame size: 2 15 frame size: 2
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 8 17 bytecode array length: 7
18 bytecodes: [ 18 bytecodes: [
19 /* 30 E> */ B(StackCheck), 19 /* 30 E> */ B(StackCheck),
20 /* 42 S> */ B(Nop), 20 /* 42 S> */ B(Mov), R(0), R(1),
21 B(Mov), R(0), R(1),
22 /* 50 S> */ B(Ldar), R(1), 21 /* 50 S> */ B(Ldar), R(1),
23 /* 60 S> */ B(Return), 22 /* 60 S> */ B(Return),
24 ] 23 ]
25 constant pool: [ 24 constant pool: [
26 ] 25 ]
27 handlers: [ 26 handlers: [
28 ] 27 ]
29 28
30 --- 29 ---
31 snippet: " 30 snippet: "
32 var a = do { var x = 100; }; return a; 31 var a = do { var x = 100; }; return a;
33 " 32 "
34 frame size: 3 33 frame size: 3
35 parameter count: 1 34 parameter count: 1
36 bytecode array length: 14 35 bytecode array length: 13
37 bytecodes: [ 36 bytecodes: [
38 /* 30 E> */ B(StackCheck), 37 /* 30 E> */ B(StackCheck),
39 /* 55 S> */ B(LdaSmi), U8(100), 38 /* 55 S> */ B(LdaSmi), U8(100),
40 B(Star), R(1), 39 B(Star), R(1),
41 /* 42 S> */ B(LdrUndefined), R(0), 40 /* 42 S> */ B(LdrUndefined), R(0),
42 B(Ldar), R(0), 41 B(Ldar), R(0),
43 /* 42 E> */ B(Nop),
44 B(Star), R(2), 42 B(Star), R(2),
45 /* 63 S> */ B(Nop), 43 /* 63 S> */ B(Nop),
46 /* 73 S> */ B(Return), 44 /* 73 S> */ B(Return),
47 ] 45 ]
48 constant pool: [ 46 constant pool: [
49 ] 47 ]
50 handlers: [ 48 handlers: [
51 ] 49 ]
52 50
53 --- 51 ---
54 snippet: " 52 snippet: "
55 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } 53 while(true) { var a = 10; a = do { ++a; break; }; a = 20; }
56 " 54 "
57 frame size: 2 55 frame size: 2
58 parameter count: 1 56 parameter count: 1
59 bytecode array length: 25 57 bytecode array length: 24
60 bytecodes: [ 58 bytecodes: [
61 /* 30 E> */ B(StackCheck), 59 /* 30 E> */ B(StackCheck),
62 /* 34 E> */ B(StackCheck), 60 /* 34 E> */ B(StackCheck),
63 /* 56 S> */ B(LdaSmi), U8(10), 61 /* 56 S> */ B(LdaSmi), U8(10),
64 B(Star), R(1), 62 B(Star), R(1),
65 /* 69 S> */ B(Inc), 63 /* 69 S> */ B(Inc),
66 /* 71 E> */ B(Star), R(1), 64 B(Star), R(1),
67 B(Star), R(0), 65 B(Star), R(0),
68 /* 74 S> */ B(Jump), U8(12), 66 /* 74 S> */ B(Jump), U8(11),
69 /* 64 E> */ B(Nop),
70 B(Mov), R(0), R(1), 67 B(Mov), R(0), R(1),
71 /* 84 S> */ B(LdaSmi), U8(20), 68 /* 84 S> */ B(LdaSmi), U8(20),
72 /* 86 E> */ B(Star), R(1), 69 B(Star), R(1),
73 B(Jump), U8(-20), 70 B(Jump), U8(-19),
74 B(LdaUndefined), 71 B(LdaUndefined),
75 /* 94 S> */ B(Return), 72 /* 94 S> */ B(Return),
76 ] 73 ]
77 constant pool: [ 74 constant pool: [
78 ] 75 ]
79 handlers: [ 76 handlers: [
80 ] 77 ]
81 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698