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

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

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

Powered by Google App Engine
This is Rietveld 408576698