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

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

Issue 1768123002: [Interpreter] Fixes a bug when popping context to correct level on break/continue. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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: 19
19 bytecodes: [ 19 bytecodes: [
20 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 20 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(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 B(StackCheck),
25 B(CreateClosure), U8(0), U8(0), 25 B(CreateClosure), U8(0), U8(0),
26 B(PopContext), R(0),
26 B(Return), 27 B(Return),
27 ] 28 ]
28 constant pool: [ 29 constant pool: [
29 InstanceType::SHARED_FUNCTION_INFO_TYPE, 30 InstanceType::SHARED_FUNCTION_INFO_TYPE,
30 ] 31 ]
31 handlers: [ 32 handlers: [
32 ] 33 ]
33 34
34 --- 35 ---
35 snippet: " 36 snippet: "
36 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } 37 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; }
37 f(); 38 f();
38 " 39 "
39 frame size: 2 40 frame size: 2
40 parameter count: 2 41 parameter count: 2
41 bytecode array length: 22 42 bytecode array length: 24
42 bytecodes: [ 43 bytecodes: [
43 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 44 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
44 B(PushContext), R(1), 45 B(PushContext), R(1),
45 B(Ldar), R(arg0), 46 B(Ldar), R(arg0),
46 B(StaContextSlot), R(context), U8(4), 47 B(StaContextSlot), R(context), U8(4),
47 B(StackCheck), 48 B(StackCheck),
48 B(CreateClosure), U8(0), U8(0), 49 B(CreateClosure), U8(0), U8(0),
49 B(Star), R(0), 50 B(Star), R(0),
50 B(LdaContextSlot), R(context), U8(4), 51 B(LdaContextSlot), R(context), U8(4),
52 B(PopContext), R(1),
51 B(Return), 53 B(Return),
52 ] 54 ]
53 constant pool: [ 55 constant pool: [
54 InstanceType::SHARED_FUNCTION_INFO_TYPE, 56 InstanceType::SHARED_FUNCTION_INFO_TYPE,
55 ] 57 ]
56 handlers: [ 58 handlers: [
57 ] 59 ]
58 60
59 --- 61 ---
60 snippet: " 62 snippet: "
61 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } 63 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; }
62 f(); 64 f();
63 " 65 "
64 frame size: 1 66 frame size: 1
65 parameter count: 5 67 parameter count: 5
66 bytecode array length: 22 68 bytecode array length: 24
67 bytecodes: [ 69 bytecodes: [
68 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 70 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
69 B(PushContext), R(0), 71 B(PushContext), R(0),
70 B(Ldar), R(arg0), 72 B(Ldar), R(arg0),
71 B(StaContextSlot), R(context), U8(5), 73 B(StaContextSlot), R(context), U8(5),
72 B(Ldar), R(arg2), 74 B(Ldar), R(arg2),
73 B(StaContextSlot), R(context), U8(4), 75 B(StaContextSlot), R(context), U8(4),
74 B(StackCheck), 76 B(StackCheck),
75 B(CreateClosure), U8(0), U8(0), 77 B(CreateClosure), U8(0), U8(0),
78 B(PopContext), R(0),
76 B(Return), 79 B(Return),
77 ] 80 ]
78 constant pool: [ 81 constant pool: [
79 InstanceType::SHARED_FUNCTION_INFO_TYPE, 82 InstanceType::SHARED_FUNCTION_INFO_TYPE,
80 ] 83 ]
81 handlers: [ 84 handlers: [
82 ] 85 ]
83 86
84 --- 87 ---
85 snippet: " 88 snippet: "
86 function f() { var self = this; return function() { self = 2; }; } 89 function f() { var self = this; return function() { self = 2; }; }
87 f(); 90 f();
88 " 91 "
89 frame size: 1 92 frame size: 1
90 parameter count: 1 93 parameter count: 1
91 bytecode array length: 17 94 bytecode array length: 19
92 bytecodes: [ 95 bytecodes: [
93 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), 96 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
94 B(PushContext), R(0), 97 B(PushContext), R(0),
95 B(StackCheck), 98 B(StackCheck),
96 B(Ldar), R(this), 99 B(Ldar), R(this),
97 B(StaContextSlot), R(context), U8(4), 100 B(StaContextSlot), R(context), U8(4),
98 B(CreateClosure), U8(0), U8(0), 101 B(CreateClosure), U8(0), U8(0),
102 B(PopContext), R(0),
99 B(Return), 103 B(Return),
100 ] 104 ]
101 constant pool: [ 105 constant pool: [
102 InstanceType::SHARED_FUNCTION_INFO_TYPE, 106 InstanceType::SHARED_FUNCTION_INFO_TYPE,
103 ] 107 ]
104 handlers: [ 108 handlers: [
105 ] 109 ]
106 110
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698