OLD | NEW |
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: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 var a; return function() { a = 1; }; | 12 var a; return function() { a = 1; }; |
13 " | 13 " |
14 frame size: 1 | 14 frame size: 1 |
15 parameter count: 1 | 15 parameter count: 1 |
16 bytecode array length: 12 | 16 bytecode array length: 9 |
17 bytecodes: [ | 17 bytecodes: [ |
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 18 B(CreateFunctionContext), U8(5), |
19 B(PushContext), R(0), | 19 B(PushContext), R(0), |
20 /* 30 E> */ B(StackCheck), | 20 /* 30 E> */ B(StackCheck), |
21 /* 41 S> */ B(CreateClosure), U8(0), U8(2), | 21 /* 41 S> */ B(CreateClosure), U8(0), U8(2), |
22 /* 71 S> */ B(Return), | 22 /* 71 S> */ B(Return), |
23 ] | 23 ] |
24 constant pool: [ | 24 constant pool: [ |
25 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 25 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
26 ] | 26 ] |
27 handlers: [ | 27 handlers: [ |
28 ] | 28 ] |
29 | 29 |
30 --- | 30 --- |
31 snippet: " | 31 snippet: " |
32 var a = 1; return function() { a = 2; }; | 32 var a = 1; return function() { a = 2; }; |
33 " | 33 " |
34 frame size: 1 | 34 frame size: 1 |
35 parameter count: 1 | 35 parameter count: 1 |
36 bytecode array length: 17 | 36 bytecode array length: 14 |
37 bytecodes: [ | 37 bytecodes: [ |
38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 38 B(CreateFunctionContext), U8(5), |
39 B(PushContext), R(0), | 39 B(PushContext), R(0), |
40 /* 30 E> */ B(StackCheck), | 40 /* 30 E> */ B(StackCheck), |
41 /* 42 S> */ B(LdaSmi), U8(1), | 41 /* 42 S> */ B(LdaSmi), U8(1), |
42 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 42 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
43 /* 45 S> */ B(CreateClosure), U8(0), U8(2), | 43 /* 45 S> */ B(CreateClosure), U8(0), U8(2), |
44 /* 75 S> */ B(Return), | 44 /* 75 S> */ B(Return), |
45 ] | 45 ] |
46 constant pool: [ | 46 constant pool: [ |
47 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 47 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
48 ] | 48 ] |
49 handlers: [ | 49 handlers: [ |
50 ] | 50 ] |
51 | 51 |
52 --- | 52 --- |
53 snippet: " | 53 snippet: " |
54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; | 54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; |
55 " | 55 " |
56 frame size: 1 | 56 frame size: 1 |
57 parameter count: 1 | 57 parameter count: 1 |
58 bytecode array length: 22 | 58 bytecode array length: 19 |
59 bytecodes: [ | 59 bytecodes: [ |
60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 60 B(CreateFunctionContext), U8(6), |
61 B(PushContext), R(0), | 61 B(PushContext), R(0), |
62 /* 30 E> */ B(StackCheck), | 62 /* 30 E> */ B(StackCheck), |
63 /* 42 S> */ B(LdaSmi), U8(1), | 63 /* 42 S> */ B(LdaSmi), U8(1), |
64 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 64 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
65 /* 53 S> */ B(LdaSmi), U8(2), | 65 /* 53 S> */ B(LdaSmi), U8(2), |
66 /* 53 E> */ B(StaContextSlot), R(context), U8(5), | 66 /* 53 E> */ B(StaContextSlot), R(context), U8(5), |
67 /* 56 S> */ B(CreateClosure), U8(0), U8(2), | 67 /* 56 S> */ B(CreateClosure), U8(0), U8(2), |
68 /* 92 S> */ B(Return), | 68 /* 92 S> */ B(Return), |
69 ] | 69 ] |
70 constant pool: [ | 70 constant pool: [ |
71 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 71 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
72 ] | 72 ] |
73 handlers: [ | 73 handlers: [ |
74 ] | 74 ] |
75 | 75 |
76 --- | 76 --- |
77 snippet: " | 77 snippet: " |
78 var a; (function() { a = 2; })(); return a; | 78 var a; (function() { a = 2; })(); return a; |
79 " | 79 " |
80 frame size: 3 | 80 frame size: 3 |
81 parameter count: 1 | 81 parameter count: 1 |
82 bytecode array length: 24 | 82 bytecode array length: 21 |
83 bytecodes: [ | 83 bytecodes: [ |
84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 84 B(CreateFunctionContext), U8(5), |
85 B(PushContext), R(0), | 85 B(PushContext), R(0), |
86 /* 30 E> */ B(StackCheck), | 86 /* 30 E> */ B(StackCheck), |
87 /* 41 S> */ B(LdrUndefined), R(2), | 87 /* 41 S> */ B(LdrUndefined), R(2), |
88 B(CreateClosure), U8(0), U8(2), | 88 B(CreateClosure), U8(0), U8(2), |
89 B(Star), R(1), | 89 B(Star), R(1), |
90 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1), | 90 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1), |
91 /* 68 S> */ B(LdaContextSlot), R(context), U8(4), | 91 /* 68 S> */ B(LdaContextSlot), R(context), U8(4), |
92 /* 78 S> */ B(Return), | 92 /* 78 S> */ B(Return), |
93 ] | 93 ] |
94 constant pool: [ | 94 constant pool: [ |
95 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 95 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
96 ] | 96 ] |
97 handlers: [ | 97 handlers: [ |
98 ] | 98 ] |
99 | 99 |
100 --- | 100 --- |
101 snippet: " | 101 snippet: " |
102 'use strict'; | 102 'use strict'; |
103 let a = 1; | 103 let a = 1; |
104 { let b = 2; return function() { a + b; }; } | 104 { let b = 2; return function() { a + b; }; } |
105 " | 105 " |
106 frame size: 4 | 106 frame size: 4 |
107 parameter count: 1 | 107 parameter count: 1 |
108 bytecode array length: 46 | 108 bytecode array length: 43 |
109 bytecodes: [ | 109 bytecodes: [ |
110 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 110 B(CreateFunctionContext), U8(5), |
111 B(PushContext), R(0), | 111 B(PushContext), R(0), |
112 B(LdaTheHole), | 112 B(LdaTheHole), |
113 B(StaContextSlot), R(context), U8(4), | 113 B(StaContextSlot), R(context), U8(4), |
114 /* 30 E> */ B(StackCheck), | 114 /* 30 E> */ B(StackCheck), |
115 /* 56 S> */ B(LdaSmi), U8(1), | 115 /* 56 S> */ B(LdaSmi), U8(1), |
116 /* 56 E> */ B(StaContextSlot), R(context), U8(4), | 116 /* 56 E> */ B(StaContextSlot), R(context), U8(4), |
117 B(LdaConstant), U8(0), | 117 B(LdaConstant), U8(0), |
118 B(Star), R(2), | 118 B(Star), R(2), |
119 B(Mov), R(closure), R(3), | 119 B(Mov), R(closure), R(3), |
120 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), | 120 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 var a245 = 0; | 385 var a245 = 0; |
386 var a246 = 0; | 386 var a246 = 0; |
387 var a247 = 0; | 387 var a247 = 0; |
388 var a248 = 0; | 388 var a248 = 0; |
389 eval(); | 389 eval(); |
390 var b = 100; | 390 var b = 100; |
391 return b | 391 return b |
392 " | 392 " |
393 frame size: 3 | 393 frame size: 3 |
394 parameter count: 1 | 394 parameter count: 1 |
395 bytecode array length: 1043 | 395 bytecode array length: 1042 |
396 bytecodes: [ | 396 bytecodes: [ |
397 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 397 B(Wide), B(CreateFunctionContext), U16(257), |
398 B(PushContext), R(0), | 398 B(PushContext), R(0), |
399 B(Ldar), R(this), | 399 B(Ldar), R(this), |
400 B(StaContextSlot), R(context), U8(4), | 400 B(StaContextSlot), R(context), U8(4), |
401 B(CreateUnmappedArguments), | 401 B(CreateUnmappedArguments), |
402 B(StaContextSlot), R(context), U8(5), | 402 B(StaContextSlot), R(context), U8(5), |
403 B(Ldar), R(new_target), | 403 B(Ldar), R(new_target), |
404 B(StaContextSlot), R(context), U8(6), | 404 B(StaContextSlot), R(context), U8(6), |
405 /* 30 E> */ B(StackCheck), | 405 /* 30 E> */ B(StackCheck), |
406 /* 57 S> */ B(LdaZero), | 406 /* 57 S> */ B(LdaZero), |
407 /* 57 E> */ B(StaContextSlot), R(context), U8(7), | 407 /* 57 E> */ B(StaContextSlot), R(context), U8(7), |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 /* 3440 S> */ B(LdaSmi), U8(100), | 907 /* 3440 S> */ B(LdaSmi), U8(100), |
908 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256), | 908 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256), |
909 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256), | 909 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256), |
910 /* 3454 S> */ B(Return), | 910 /* 3454 S> */ B(Return), |
911 ] | 911 ] |
912 constant pool: [ | 912 constant pool: [ |
913 ] | 913 ] |
914 handlers: [ | 914 handlers: [ |
915 ] | 915 ] |
916 | 916 |
OLD | NEW |