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 --- |
(...skipping 20 matching lines...) Expand all Loading... |
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: 17 |
37 bytecodes: [ | 37 bytecodes: [ |
38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
39 B(PushContext), R(0), | 39 B(PushContext), R(0), |
40 B(StackCheck), | 40 B(StackCheck), |
41 B(LdaSmi8), U8(1), | 41 B(LdaSmi), U8(1), |
42 B(StaContextSlot), R(context), U8(4), | 42 B(StaContextSlot), R(context), U8(4), |
43 B(CreateClosure), U8(0), U8(0), | 43 B(CreateClosure), U8(0), U8(0), |
44 B(Return), | 44 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: 22 |
59 bytecodes: [ | 59 bytecodes: [ |
60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
61 B(PushContext), R(0), | 61 B(PushContext), R(0), |
62 B(StackCheck), | 62 B(StackCheck), |
63 B(LdaSmi8), U8(1), | 63 B(LdaSmi), U8(1), |
64 B(StaContextSlot), R(context), U8(4), | 64 B(StaContextSlot), R(context), U8(4), |
65 B(LdaSmi8), U8(2), | 65 B(LdaSmi), U8(2), |
66 B(StaContextSlot), R(context), U8(5), | 66 B(StaContextSlot), R(context), U8(5), |
67 B(CreateClosure), U8(0), U8(0), | 67 B(CreateClosure), U8(0), U8(0), |
68 B(Return), | 68 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 |
(...skipping 30 matching lines...) Expand all Loading... |
106 " | 106 " |
107 frame size: 4 | 107 frame size: 4 |
108 parameter count: 1 | 108 parameter count: 1 |
109 bytecode array length: 45 | 109 bytecode array length: 45 |
110 bytecodes: [ | 110 bytecodes: [ |
111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
112 B(PushContext), R(0), | 112 B(PushContext), R(0), |
113 B(LdaTheHole), | 113 B(LdaTheHole), |
114 B(StaContextSlot), R(context), U8(4), | 114 B(StaContextSlot), R(context), U8(4), |
115 B(StackCheck), | 115 B(StackCheck), |
116 B(LdaSmi8), U8(1), | 116 B(LdaSmi), U8(1), |
117 B(StaContextSlot), R(context), U8(4), | 117 B(StaContextSlot), R(context), U8(4), |
118 B(LdaConstant), U8(0), | 118 B(LdaConstant), U8(0), |
119 B(Star), R(2), | 119 B(Star), R(2), |
120 B(Ldar), R(closure), | 120 B(Ldar), R(closure), |
121 B(Star), R(3), | 121 B(Star), R(3), |
122 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), | 122 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2), |
123 B(PushContext), R(1), | 123 B(PushContext), R(1), |
124 B(LdaTheHole), | 124 B(LdaTheHole), |
125 B(StaContextSlot), R(context), U8(4), | 125 B(StaContextSlot), R(context), U8(4), |
126 B(LdaSmi8), U8(2), | 126 B(LdaSmi), U8(2), |
127 B(StaContextSlot), R(context), U8(4), | 127 B(StaContextSlot), R(context), U8(4), |
128 B(CreateClosure), U8(1), U8(0), | 128 B(CreateClosure), U8(1), U8(0), |
129 B(Return), | 129 B(Return), |
130 ] | 130 ] |
131 constant pool: [ | 131 constant pool: [ |
132 InstanceType::FIXED_ARRAY_TYPE, | 132 InstanceType::FIXED_ARRAY_TYPE, |
133 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 133 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
134 ] | 134 ] |
135 handlers: [ | 135 handlers: [ |
136 ] | 136 ] |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 var a245 = 0; | 386 var a245 = 0; |
387 var a246 = 0; | 387 var a246 = 0; |
388 var a247 = 0; | 388 var a247 = 0; |
389 var a248 = 0; | 389 var a248 = 0; |
390 eval(); | 390 eval(); |
391 var b = 100; | 391 var b = 100; |
392 return b | 392 return b |
393 " | 393 " |
394 frame size: 3 | 394 frame size: 3 |
395 parameter count: 1 | 395 parameter count: 1 |
396 bytecode array length: 1042 | 396 bytecode array length: 1046 |
397 bytecodes: [ | 397 bytecodes: [ |
398 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 398 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
399 B(PushContext), R(0), | 399 B(PushContext), R(0), |
400 B(Ldar), R(this), | 400 B(Ldar), R(this), |
401 B(StaContextSlot), R(context), U8(4), | 401 B(StaContextSlot), R(context), U8(4), |
402 B(CreateUnmappedArguments), | 402 B(CreateUnmappedArguments), |
403 B(StaContextSlot), R(context), U8(5), | 403 B(StaContextSlot), R(context), U8(5), |
404 B(Ldar), R(new_target), | 404 B(Ldar), R(new_target), |
405 B(StaContextSlot), R(context), U8(6), | 405 B(StaContextSlot), R(context), U8(6), |
406 B(StackCheck), | 406 B(StackCheck), |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 B(StaContextSlot), R(context), U8(253), | 900 B(StaContextSlot), R(context), U8(253), |
901 B(LdaZero), | 901 B(LdaZero), |
902 B(StaContextSlot), R(context), U8(254), | 902 B(StaContextSlot), R(context), U8(254), |
903 B(LdaZero), | 903 B(LdaZero), |
904 B(StaContextSlot), R(context), U8(255), | 904 B(StaContextSlot), R(context), U8(255), |
905 B(LdaUndefined), | 905 B(LdaUndefined), |
906 B(Star), R(2), | 906 B(Star), R(2), |
907 B(LdaGlobal), U8(0), U8(1), | 907 B(LdaGlobal), U8(0), U8(1), |
908 B(Star), R(1), | 908 B(Star), R(1), |
909 B(Call), R(1), R(2), U8(1), U8(0), | 909 B(Call), R(1), R(2), U8(1), U8(0), |
910 B(LdaSmi8), U8(100), | 910 B(LdaSmi), U8(100), |
911 B(StaContextSlotWide), R(context), U16(256), | 911 B(Wide), B(StaContextSlot), R16(context), U16(256), |
912 B(LdaContextSlotWide), R(context), U16(256), | 912 B(Wide), B(LdaContextSlot), R16(context), U16(256), |
913 B(Return), | 913 B(Return), |
914 ] | 914 ] |
915 constant pool: [ | 915 constant pool: [ |
916 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 916 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
917 ] | 917 ] |
918 handlers: [ | 918 handlers: [ |
919 ] | 919 ] |
920 | 920 |
OLD | NEW |