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

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

Issue 2680923003: Revert of Thread maybe-assigned through the bytecodes. (Closed)
Patch Set: 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: 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: 13 23 bytecode array length: 13
24 bytecodes: [ 24 bytecodes: [
25 /* 97 E> */ B(StackCheck), 25 /* 97 E> */ B(StackCheck),
26 /* 102 S> */ B(LdaImmutableContextSlot), R(context), U8(4), U8(1), 26 /* 102 S> */ B(LdaContextSlot), R(context), U8(4), U8(1),
27 B(Star), R(0), 27 B(Star), R(0),
28 B(LdaImmutableCurrentContextSlot), U8(4), 28 B(LdaCurrentContextSlot), U8(4),
29 /* 118 E> */ B(Mul), R(0), U8(2), 29 /* 118 E> */ B(Mul), R(0), U8(2),
30 /* 130 S> */ B(Return), 30 /* 130 S> */ B(Return),
31 ] 31 ]
32 constant pool: [ 32 constant pool: [
33 ] 33 ]
34 handlers: [ 34 handlers: [
35 ] 35 ]
36 36
37 --- 37 ---
38 snippet: " 38 snippet: "
39 function Outer() { 39 function Outer() {
40 var outerVar = 1; 40 var outerVar = 1;
41 function Inner(innerArg) { 41 function Inner(innerArg) {
42 this.innerFunc = function() { outerVar = innerArg; } 42 this.innerFunc = function() { outerVar = innerArg; }
43 } 43 }
44 this.getInnerFunc = function() { return new Inner(1).innerFunc; } 44 this.getInnerFunc = function() { return new Inner(1).innerFunc; }
45 } 45 }
46 var f = new Outer().getInnerFunc(); 46 var f = new Outer().getInnerFunc();
47 f(); 47 f();
48 " 48 "
49 frame size: 0 49 frame size: 0
50 parameter count: 1 50 parameter count: 1
51 bytecode array length: 9 51 bytecode array length: 9
52 bytecodes: [ 52 bytecodes: [
53 /* 97 E> */ B(StackCheck), 53 /* 97 E> */ B(StackCheck),
54 /* 102 S> */ B(LdaImmutableCurrentContextSlot), U8(4), 54 /* 102 S> */ B(LdaCurrentContextSlot), U8(4),
55 /* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1), 55 /* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1),
56 B(LdaUndefined), 56 B(LdaUndefined),
57 /* 123 S> */ B(Return), 57 /* 123 S> */ B(Return),
58 ] 58 ]
59 constant pool: [ 59 constant pool: [
60 ] 60 ]
61 handlers: [ 61 handlers: [
62 ] 62 ]
63 63
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Modules.golden ('k') | test/mjsunit/immutable-context-slot-inlining.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698