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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/OuterContextVariables.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: no 6 wrap: no
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
(...skipping 28 matching lines...) Expand all
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: 1
50 parameter count: 1 50 parameter count: 1
51 bytecode array length: 9 51 bytecode array length: 13
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(LdaConstant), U8(0),
55 B(Star), R(0),
56 B(LdaImmutableCurrentContextSlot), U8(4),
55 /* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1), 57 /* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1),
56 B(LdaUndefined), 58 B(LdaUndefined),
57 /* 123 S> */ B(Return), 59 /* 123 S> */ B(Return),
58 ] 60 ]
59 constant pool: [ 61 constant pool: [
62 ONE_BYTE_INTERNALIZED_STRING_TYPE ["outerVar"],
60 ] 63 ]
61 handlers: [ 64 handlers: [
62 ] 65 ]
63 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698