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

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

Issue 1963663002: [interpreter] Add checks for source position to test-bytecode-generator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bad implicit cast. Created 4 years, 7 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 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: no 8 wrap: no
9 test function name: f 9 test function name: f
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 function Outer() { 13 function Outer() {
14 var outerVar = 1; 14 var outerVar = 1;
15 function Inner(innerArg) { 15 function Inner(innerArg) {
16 this.innerFunc = function() { return outerVar * innerArg; } 16 this.innerFunc = function() { return outerVar * innerArg; }
17 } 17 }
18 this.getInnerFunc = function() { return new Inner(1).innerFunc; } 18 this.getInnerFunc = function() { return new Inner(1).innerFunc; }
19 } 19 }
20 var f = new Outer().getInnerFunc(); 20 var f = new Outer().getInnerFunc();
21 f(); 21 f();
22 " 22 "
23 frame size: 2 23 frame size: 2
24 parameter count: 1 24 parameter count: 1
25 bytecode array length: 21 25 bytecode array length: 21
26 bytecodes: [ 26 bytecodes: [
27 B(StackCheck), 27 /* 97 E> */ B(StackCheck),
28 B(Ldar), R(context), 28 /* 102 S> */ B(Ldar), R(context),
29 B(Star), R(0), 29 B(Star), R(0),
30 B(LdaContextSlot), R(0), U8(1), 30 B(LdaContextSlot), R(0), U8(1),
31 B(Star), R(0), 31 B(Star), R(0),
32 B(LdaContextSlot), R(0), U8(4), 32 B(LdaContextSlot), R(0), U8(4),
33 B(Star), R(1), 33 B(Star), R(1),
34 B(LdaContextSlot), R(context), U8(4), 34 /* 120 E> */ B(LdaContextSlot), R(context), U8(4),
35 B(Mul), R(1), 35 B(Mul), R(1),
36 B(Return), 36 /* 130 S> */ B(Return),
37 ] 37 ]
38 constant pool: [ 38 constant pool: [
39 ] 39 ]
40 handlers: [ 40 handlers: [
41 ] 41 ]
42 42
43 --- 43 ---
44 snippet: " 44 snippet: "
45 function Outer() { 45 function Outer() {
46 var outerVar = 1; 46 var outerVar = 1;
47 function Inner(innerArg) { 47 function Inner(innerArg) {
48 this.innerFunc = function() { outerVar = innerArg; } 48 this.innerFunc = function() { outerVar = innerArg; }
49 } 49 }
50 this.getInnerFunc = function() { return new Inner(1).innerFunc; } 50 this.getInnerFunc = function() { return new Inner(1).innerFunc; }
51 } 51 }
52 var f = new Outer().getInnerFunc(); 52 var f = new Outer().getInnerFunc();
53 f(); 53 f();
54 " 54 "
55 frame size: 2 55 frame size: 2
56 parameter count: 1 56 parameter count: 1
57 bytecode array length: 22 57 bytecode array length: 22
58 bytecodes: [ 58 bytecodes: [
59 B(StackCheck), 59 /* 97 E> */ B(StackCheck),
60 B(LdaContextSlot), R(context), U8(4), 60 /* 102 S> */ B(LdaContextSlot), R(context), U8(4),
61 B(Star), R(0), 61 /* 111 E> */ B(Star), R(0),
62 B(Ldar), R(context), 62 B(Ldar), R(context),
63 B(Star), R(1), 63 B(Star), R(1),
64 B(LdaContextSlot), R(1), U8(1), 64 B(LdaContextSlot), R(1), U8(1),
65 B(Star), R(1), 65 B(Star), R(1),
66 B(Ldar), R(0), 66 B(Ldar), R(0),
67 B(StaContextSlot), R(1), U8(4), 67 B(StaContextSlot), R(1), U8(4),
68 B(LdaUndefined), 68 B(LdaUndefined),
69 B(Return), 69 /* 123 S> */ B(Return),
70 ] 70 ]
71 constant pool: [ 71 constant pool: [
72 ] 72 ]
73 handlers: [ 73 handlers: [
74 ] 74 ]
75 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698