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

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

Issue 2485383002: [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. (Closed)
Patch Set: Created 4 years, 1 month 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: no 6 wrap: no
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 function f(a) { return a.func(); } 11 function f(a) { return a.func(); }
12 f(new (function Obj() { this.func = function() { return; }})()) 12 f(new (function Obj() { this.func = function() { return; }})())
13 " 13 "
14 frame size: 1 14 frame size: 1
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 13 16 bytecode array length: 14
17 bytecodes: [ 17 bytecodes: [
18 /* 10 E> */ B(StackCheck), 18 /* 10 E> */ B(StackCheck),
19 /* 16 S> */ B(Nop), 19 /* 16 S> */ B(Nop),
20 /* 24 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), 20 /* 24 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4),
21 B(Star), R(0),
21 /* 25 E> */ B(CallProperty), R(0), R(arg0), U8(1), U8(2), 22 /* 25 E> */ B(CallProperty), R(0), R(arg0), U8(1), U8(2),
22 /* 33 S> */ B(Return), 23 /* 33 S> */ B(Return),
23 ] 24 ]
24 constant pool: [ 25 constant pool: [
25 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
26 ] 27 ]
27 handlers: [ 28 handlers: [
28 ] 29 ]
29 30
30 --- 31 ---
31 snippet: " 32 snippet: "
32 function f(a, b, c) { return a.func(b, c); } 33 function f(a, b, c) { return a.func(b, c); }
33 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) 34 f(new (function Obj() { this.func = function() { return; }})(), 1, 2)
34 " 35 "
35 frame size: 4 36 frame size: 4
36 parameter count: 4 37 parameter count: 4
37 bytecode array length: 24 38 bytecode array length: 23
38 bytecodes: [ 39 bytecodes: [
39 /* 10 E> */ B(StackCheck), 40 /* 10 E> */ B(StackCheck),
40 /* 22 S> */ B(Nop), 41 /* 22 S> */ B(Nop),
41 /* 30 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), 42 /* 30 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4),
42 B(Ldar), R(0), 43 B(Star), R(0),
43 B(Mov), R(arg0), R(1), 44 B(Mov), R(arg0), R(1),
44 B(Mov), R(arg1), R(2), 45 B(Mov), R(arg1), R(2),
45 B(Mov), R(arg2), R(3), 46 B(Mov), R(arg2), R(3),
46 /* 31 E> */ B(CallProperty), R(0), R(1), U8(3), U8(2), 47 /* 31 E> */ B(CallProperty), R(0), R(1), U8(3), U8(2),
47 /* 43 S> */ B(Return), 48 /* 43 S> */ B(Return),
48 ] 49 ]
49 constant pool: [ 50 constant pool: [
50 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
51 ] 52 ]
52 handlers: [ 53 handlers: [
53 ] 54 ]
54 55
55 --- 56 ---
56 snippet: " 57 snippet: "
57 function f(a, b) { return a.func(b + b, b); } 58 function f(a, b) { return a.func(b + b, b); }
58 f(new (function Obj() { this.func = function() { return; }})(), 1) 59 f(new (function Obj() { this.func = function() { return; }})(), 1)
59 " 60 "
60 frame size: 4 61 frame size: 4
61 parameter count: 3 62 parameter count: 3
62 bytecode array length: 26 63 bytecode array length: 27
63 bytecodes: [ 64 bytecodes: [
64 /* 10 E> */ B(StackCheck), 65 /* 10 E> */ B(StackCheck),
65 /* 19 S> */ B(Nop), 66 /* 19 S> */ B(Nop),
66 /* 27 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(4), R(0), 67 /* 27 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4),
68 B(Star), R(0),
67 B(Ldar), R(arg1), 69 B(Ldar), R(arg1),
68 /* 37 E> */ B(Add), R(arg1), U8(6), 70 /* 37 E> */ B(Add), R(arg1), U8(6),
69 B(Star), R(2), 71 B(Star), R(2),
70 B(Mov), R(arg0), R(1), 72 B(Mov), R(arg0), R(1),
71 B(Mov), R(arg1), R(3), 73 B(Mov), R(arg1), R(3),
72 /* 28 E> */ B(CallProperty), R(0), R(1), U8(3), U8(2), 74 /* 28 E> */ B(CallProperty), R(0), R(1), U8(3), U8(2),
73 /* 44 S> */ B(Return), 75 /* 44 S> */ B(Return),
74 ] 76 ]
75 constant pool: [ 77 constant pool: [
76 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], 78 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 /* 1125 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), 469 /* 1125 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248),
468 /* 1133 S> */ B(Nop), 470 /* 1133 S> */ B(Nop),
469 /* 1134 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), 471 /* 1134 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250),
470 /* 1142 S> */ B(Nop), 472 /* 1142 S> */ B(Nop),
471 /* 1143 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), 473 /* 1143 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252),
472 /* 1151 S> */ B(Nop), 474 /* 1151 S> */ B(Nop),
473 /* 1152 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), 475 /* 1152 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254),
474 /* 1160 S> */ B(Nop), 476 /* 1160 S> */ B(Nop),
475 /* 1161 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), 477 /* 1161 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256),
476 /* 1169 S> */ B(Nop), 478 /* 1169 S> */ B(Nop),
477 /* 1177 E> */ B(Wide), B(LdrNamedProperty), R16(arg0), U16(0), U16(260), R16(0 ), 479 /* 1177 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(260),
480 B(Star), R(0),
478 /* 1178 E> */ B(Wide), B(CallProperty), R16(0), R16(arg0), U16(1), U16(258), 481 /* 1178 E> */ B(Wide), B(CallProperty), R16(0), R16(arg0), U16(1), U16(258),
479 /* 1186 S> */ B(Return), 482 /* 1186 S> */ B(Return),
480 ] 483 ]
481 constant pool: [ 484 constant pool: [
482 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], 485 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
483 ] 486 ]
484 handlers: [ 487 handlers: [
485 ] 488 ]
486 489
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698