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

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

Issue 2489513005: [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. (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 Outer() { 11 function Outer() {
12 var outerVar = 1; 12 var outerVar = 1;
13 function Inner(innerArg) { 13 function Inner(innerArg) {
14 this.innerFunc = function() { return outerVar * innerArg; } 14 this.innerFunc = function() { return outerVar * innerArg; }
15 } 15 }
16 this.getInnerFunc = function() { return new Inner(1).innerFunc; } 16 this.getInnerFunc = function() { return new Inner(1).innerFunc; }
17 } 17 }
18 var f = new Outer().getInnerFunc(); 18 var f = new Outer().getInnerFunc();
19 f(); 19 f();
20 " 20 "
21 frame size: 1 21 frame size: 1
22 parameter count: 1 22 parameter count: 1
23 bytecode array length: 12 23 bytecode array length: 13
24 bytecodes: [ 24 bytecodes: [
25 /* 97 E> */ B(StackCheck), 25 /* 97 E> */ B(StackCheck),
26 /* 102 S> */ B(LdrContextSlot), R(context), U8(4), U8(1), R(0), 26 /* 102 S> */ B(LdaContextSlot), R(context), U8(4), U8(1),
27 /* 120 E> */ B(LdaCurrentContextSlot), U8(4), 27 B(Star), R(0),
28 B(Mul), R(0), U8(2), 28 B(LdaCurrentContextSlot), U8(4),
29 /* 120 E> */ B(Mul), R(0), U8(2),
29 /* 130 S> */ B(Return), 30 /* 130 S> */ B(Return),
30 ] 31 ]
31 constant pool: [ 32 constant pool: [
32 ] 33 ]
33 handlers: [ 34 handlers: [
34 ] 35 ]
35 36
36 --- 37 ---
37 snippet: " 38 snippet: "
38 function Outer() { 39 function Outer() {
(...skipping 14 matching lines...) Expand all
53 /* 102 S> */ B(LdaCurrentContextSlot), U8(4), 54 /* 102 S> */ B(LdaCurrentContextSlot), U8(4),
54 /* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1), 55 /* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1),
55 B(LdaUndefined), 56 B(LdaUndefined),
56 /* 123 S> */ B(Return), 57 /* 123 S> */ B(Return),
57 ] 58 ]
58 constant pool: [ 59 constant pool: [
59 ] 60 ]
60 handlers: [ 61 handlers: [
61 ] 62 ]
62 63
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698