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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 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
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: yes 6 wrap: yes
7 do expressions: yes 7 do expressions: yes
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 var a = do { }; return a; 11 var a = do { }; return a;
12 " 12 "
13 frame size: 2 13 frame size: 3
14 parameter count: 1 14 parameter count: 1
15 bytecode array length: 7 15 bytecode array length: 11
16 bytecodes: [ 16 bytecodes: [
17 /* 30 E> */ B(StackCheck), 17 /* 30 E> */ B(StackCheck),
18 /* 42 S> */ B(Mov), R(0), R(1), 18 /* 42 S> */ B(LdaConstant), U8(0),
19 B(Star), R(2),
20 B(Mov), R(0), R(1),
19 /* 50 S> */ B(Ldar), R(1), 21 /* 50 S> */ B(Ldar), R(1),
20 /* 60 S> */ B(Return), 22 /* 60 S> */ B(Return),
21 ] 23 ]
22 constant pool: [ 24 constant pool: [
25 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
23 ] 26 ]
24 handlers: [ 27 handlers: [
25 ] 28 ]
26 29
27 --- 30 ---
28 snippet: " 31 snippet: "
29 var a = do { var x = 100; }; return a; 32 var a = do { var x = 100; }; return a;
30 " 33 "
31 frame size: 3 34 frame size: 5
32 parameter count: 1 35 parameter count: 1
33 bytecode array length: 12 36 bytecode array length: 24
34 bytecodes: [ 37 bytecodes: [
35 /* 30 E> */ B(StackCheck), 38 /* 30 E> */ B(StackCheck),
36 /* 55 S> */ B(LdaSmi), I8(100), 39 /* 42 S> */ B(LdaConstant), U8(0),
40 B(Star), R(3),
41 /* 55 S> */ B(LdaConstant), U8(1),
42 B(Star), R(4),
43 B(LdaSmi), I8(100),
37 B(Star), R(0), 44 B(Star), R(0),
38 /* 42 S> */ B(LdaUndefined), 45 /* 42 S> */ B(LdaConstant), U8(2),
46 B(Star), R(4),
47 B(LdaUndefined),
39 B(Star), R(1), 48 B(Star), R(1),
40 B(Star), R(2), 49 B(Star), R(2),
41 /* 63 S> */ B(Nop), 50 /* 63 S> */ B(Nop),
42 /* 73 S> */ B(Return), 51 /* 73 S> */ B(Return),
43 ] 52 ]
44 constant pool: [ 53 constant pool: [
54 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
55 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
56 ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"],
45 ] 57 ]
46 handlers: [ 58 handlers: [
47 ] 59 ]
48 60
49 --- 61 ---
50 snippet: " 62 snippet: "
51 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } 63 while(true) { var a = 10; a = do { ++a; break; }; a = 20; }
52 " 64 "
53 frame size: 2 65 frame size: 4
54 parameter count: 1 66 parameter count: 1
55 bytecode array length: 16 67 bytecode array length: 30
56 bytecodes: [ 68 bytecodes: [
57 /* 30 E> */ B(StackCheck), 69 /* 30 E> */ B(StackCheck),
58 /* 34 E> */ B(StackCheck), 70 /* 34 E> */ B(StackCheck),
59 /* 56 S> */ B(LdaSmi), I8(10), 71 /* 56 S> */ B(LdaConstant), U8(0),
72 B(Star), R(2),
73 B(LdaSmi), I8(10),
60 B(Star), R(0), 74 B(Star), R(0),
61 /* 69 S> */ B(Inc), U8(2), 75 /* 60 S> */ B(LdaConstant), U8(0),
76 B(Star), R(2),
77 /* 69 S> */ B(LdaConstant), U8(1),
78 B(Star), R(3),
79 B(Ldar), R(0),
80 B(Inc), U8(4),
62 B(Star), R(0), 81 B(Star), R(0),
63 B(Star), R(1), 82 B(Star), R(1),
64 /* 74 S> */ B(Jump), U8(2), 83 /* 74 S> */ B(Jump), U8(2),
65 B(LdaUndefined), 84 B(LdaUndefined),
66 /* 94 S> */ B(Return), 85 /* 94 S> */ B(Return),
67 ] 86 ]
68 constant pool: [ 87 constant pool: [
88 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
89 ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"],
69 ] 90 ]
70 handlers: [ 91 handlers: [
71 ] 92 ]
72 93
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698