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

Side by Side Diff: test/cctest/interpreter/FunctionLiterals.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: std::vector instead of initializer_list, golden path as constant. 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: yes
9
10 ---
11 snippet: "
12 return function(){ }
13 "
14 frame size: 0
15 parameter count: 1
16 bytecodes: [
17 B(StackCheck),
18 B(CreateClosure), U8(0), U8(0),
19 B(Return),
20 ]
21 constant pool: [
22 InstanceType::SHARED_FUNCTION_INFO_TYPE,
23 ]
24 handlers: [
25 ]
26
27 ---
28 snippet: "
29 return (function(){ })()
30 "
31 frame size: 2 # in multiples of sizeof(void*)
32 parameter count: 1
33 bytecodes: [
34 B(StackCheck),
35 B(LdaUndefined),
36 B(Star), R(1),
37 B(CreateClosure), U8(0), U8(0),
38 B(Star), R(0),
39 B(Call), R(0), R(1), U8(1), U8(1),
40 B(Return),
41 ]
42 constant pool: [
43 InstanceType::SHARED_FUNCTION_INFO_TYPE,
44 ]
45 handlers: [
46 ]
47
48 ---
49 snippet: "
50 return (function(x){ return x; })(1)
51 "
52 frame size: 3 # in multiples of sizeof(void*)
53 parameter count: 1
54 bytecodes: [
55 B(StackCheck),
56 B(LdaUndefined),
57 B(Star), R(1),
58 B(CreateClosure), U8(0), U8(0),
59 B(Star), R(0),
60 B(LdaSmi8), U8(1),
61 B(Star), R(2),
62 B(Call), R(0), R(1), U8(2), U8(1),
63 B(Return),
64 ]
65 constant pool: [
66 InstanceType::SHARED_FUNCTION_INFO_TYPE,
67 ]
68 handlers: [
69 ]
70
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698