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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ContextParameters.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 f(arg1) { return function() { arg1 = 2; }; } 13 function f(arg1) { return function() { arg1 = 2; }; }
14 f(); 14 f();
15 " 15 "
16 frame size: 1 16 frame size: 1
17 parameter count: 2 17 parameter count: 2
18 bytecode array length: 17 18 bytecode array length: 17
19 bytecodes: [ 19 bytecodes: [
20 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 20 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
21 B(PushContext), R(0), 21 B(PushContext), R(0),
22 B(Ldar), R(arg0), 22 B(Ldar), R(arg0),
23 B(StaContextSlot), R(context), U8(4), 23 B(StaContextSlot), R(context), U8(4),
24 B(StackCheck), 24 /* 10 E> */ B(StackCheck),
25 B(CreateClosure), U8(0), U8(0), 25 /* 19 S> */ B(CreateClosure), U8(0), U8(0),
26 B(Return), 26 /* 52 S> */ B(Return),
27 ] 27 ]
28 constant pool: [ 28 constant pool: [
29 InstanceType::SHARED_FUNCTION_INFO_TYPE, 29 InstanceType::SHARED_FUNCTION_INFO_TYPE,
30 ] 30 ]
31 handlers: [ 31 handlers: [
32 ] 32 ]
33 33
34 --- 34 ---
35 snippet: " 35 snippet: "
36 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } 36 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; }
37 f(); 37 f();
38 " 38 "
39 frame size: 2 39 frame size: 2
40 parameter count: 2 40 parameter count: 2
41 bytecode array length: 22 41 bytecode array length: 22
42 bytecodes: [ 42 bytecodes: [
43 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 43 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
44 B(PushContext), R(1), 44 B(PushContext), R(1),
45 B(Ldar), R(arg0), 45 B(Ldar), R(arg0),
46 B(StaContextSlot), R(context), U8(4), 46 B(StaContextSlot), R(context), U8(4),
47 B(StackCheck), 47 /* 10 E> */ B(StackCheck),
48 B(CreateClosure), U8(0), U8(0), 48 /* 27 S> */ B(CreateClosure), U8(0), U8(0),
49 B(Star), R(0), 49 /* 27 E> */ B(Star), R(0),
50 B(LdaContextSlot), R(context), U8(4), 50 /* 53 S> */ B(LdaContextSlot), R(context), U8(4),
51 B(Return), 51 /* 66 S> */ B(Return),
52 ] 52 ]
53 constant pool: [ 53 constant pool: [
54 InstanceType::SHARED_FUNCTION_INFO_TYPE, 54 InstanceType::SHARED_FUNCTION_INFO_TYPE,
55 ] 55 ]
56 handlers: [ 56 handlers: [
57 ] 57 ]
58 58
59 --- 59 ---
60 snippet: " 60 snippet: "
61 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } 61 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; }
62 f(); 62 f();
63 " 63 "
64 frame size: 1 64 frame size: 1
65 parameter count: 5 65 parameter count: 5
66 bytecode array length: 22 66 bytecode array length: 22
67 bytecodes: [ 67 bytecodes: [
68 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 68 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
69 B(PushContext), R(0), 69 B(PushContext), R(0),
70 B(Ldar), R(arg0), 70 B(Ldar), R(arg0),
71 B(StaContextSlot), R(context), U8(5), 71 B(StaContextSlot), R(context), U8(5),
72 B(Ldar), R(arg2), 72 B(Ldar), R(arg2),
73 B(StaContextSlot), R(context), U8(4), 73 B(StaContextSlot), R(context), U8(4),
74 B(StackCheck), 74 /* 10 E> */ B(StackCheck),
75 B(CreateClosure), U8(0), U8(0), 75 /* 29 S> */ B(CreateClosure), U8(0), U8(0),
76 B(Return), 76 /* 61 S> */ B(Return),
77 ] 77 ]
78 constant pool: [ 78 constant pool: [
79 InstanceType::SHARED_FUNCTION_INFO_TYPE, 79 InstanceType::SHARED_FUNCTION_INFO_TYPE,
80 ] 80 ]
81 handlers: [ 81 handlers: [
82 ] 82 ]
83 83
84 --- 84 ---
85 snippet: " 85 snippet: "
86 function f() { var self = this; return function() { self = 2; }; } 86 function f() { var self = this; return function() { self = 2; }; }
87 f(); 87 f();
88 " 88 "
89 frame size: 1 89 frame size: 1
90 parameter count: 1 90 parameter count: 1
91 bytecode array length: 17 91 bytecode array length: 17
92 bytecodes: [ 92 bytecodes: [
93 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 93 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U 8(1),
94 B(PushContext), R(0), 94 B(PushContext), R(0),
95 B(StackCheck), 95 /* 10 E> */ B(StackCheck),
96 B(Ldar), R(this), 96 /* 26 S> */ B(Ldar), R(this),
97 B(StaContextSlot), R(context), U8(4), 97 /* 26 E> */ B(StaContextSlot), R(context), U8(4),
98 B(CreateClosure), U8(0), U8(0), 98 /* 32 S> */ B(CreateClosure), U8(0), U8(0),
99 B(Return), 99 /* 65 S> */ B(Return),
100 ] 100 ]
101 constant pool: [ 101 constant pool: [
102 InstanceType::SHARED_FUNCTION_INFO_TYPE, 102 InstanceType::SHARED_FUNCTION_INFO_TYPE,
103 ] 103 ]
104 handlers: [ 104 handlers: [
105 ] 105 ]
106 106
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698