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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/LookupSlotInEval.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, 9 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: string
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 var f;
14 var x = 1;
15 function f1() {
16 eval(\"function t() {return x; }; f = t; f();\");
rmcilroy 2016/02/24 08:55:35 Remove extra whitespace (here and below)
Stefano Sanfilippo 2016/02/24 14:55:02 Done.
17 }
18 f1();
19 "
20 frame size: 0
21 parameter count: 1
22 bytecode array length: 4
23 bytecodes: [
24 B(StackCheck),
25 B(LdaLookupSlot), U8(0),
26 B(Return),
27 ]
28 constant pool: [
29 "x",
30 ]
31 handlers: [
32 ]
33
34 ---
35 snippet: "
36 var f;
37 var x = 1;
38 function f1() {
39 eval(\"function t() {x = 10; }; f = t; f();\");
40 }
41 f1();
42 "
43 frame size: 0
44 parameter count: 1
45 bytecode array length: 7
46 bytecodes: [
47 B(StackCheck),
48 B(LdaSmi8), U8(10),
49 B(StaLookupSlotSloppy), U8(0),
50 B(LdaUndefined),
51 B(Return),
52 ]
53 constant pool: [
54 "x",
55 ]
56 handlers: [
57 ]
58
59 ---
60 snippet: "
61 var f;
62 var x = 1;
63 function f1() {
64 eval(\"function t() {'use strict'; x = 10; }; f = t; f();\");
65 }
66 f1();
67 "
68 frame size: 0
69 parameter count: 1
70 bytecode array length: 7
71 bytecodes: [
72 B(StackCheck),
73 B(LdaSmi8), U8(10),
74 B(StaLookupSlotStrict), U8(0),
75 B(LdaUndefined),
76 B(Return),
77 ]
78 constant pool: [
79 "x",
80 ]
81 handlers: [
82 ]
83
84 ---
85 snippet: "
86 var f;
87 var x = 1;
88 function f1() {
89 eval(\"function t() {return typeof x; }; f = t; f();\");
90 }
91 f1();
92 "
93 frame size: 0
94 parameter count: 1
95 bytecode array length: 5
96 bytecodes: [
97 B(StackCheck),
98 B(LdaLookupSlotInsideTypeof), U8(0),
99 B(TypeOf),
100 B(Return),
101 ]
102 constant pool: [
103 "x",
104 ]
105 handlers: [
106 ]
107
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698