Index: test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden b/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..df3c345c77c60ff77070f1bc6cf82c171d7faad0 |
--- /dev/null |
+++ b/test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden |
@@ -0,0 +1,128 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations |
+# |
+ |
+--- |
+pool type: mixed |
+execute: no |
+wrap: no |
+top level: yes |
+ |
+--- |
+snippet: " |
+ var a = 1; |
+" |
+frame size: 4 |
+parameter count: 1 |
+bytecode array length: 31 |
+bytecodes: [ |
+ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(LdaZero), |
+ B(Star), R(2), |
+ B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), |
+ B(StackCheck), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(1), |
+ B(LdaZero), |
+ B(Star), R(2), |
+ B(LdaSmi8), U8(1), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
+ B(LdaUndefined), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::FIXED_ARRAY_TYPE, |
+ InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f() {} |
+" |
+frame size: 2 |
+parameter count: 1 |
+bytecode array length: 15 |
+bytecodes: [ |
+ B(LdaConstant), U8(0), |
+ B(Star), R(0), |
+ B(LdaZero), |
+ B(Star), R(1), |
+ B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2), |
+ B(StackCheck), |
+ B(LdaUndefined), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::FIXED_ARRAY_TYPE, |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ var a = 1; |
+ a=2; |
+" |
+frame size: 4 |
+parameter count: 1 |
+bytecode array length: 37 |
+bytecodes: [ |
+ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(LdaZero), |
+ B(Star), R(2), |
+ B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), |
+ B(StackCheck), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(1), |
+ B(LdaZero), |
+ B(Star), R(2), |
+ B(LdaSmi8), U8(1), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
+ B(LdaSmi8), U8(2), |
+ B(StaGlobalSloppy), U8(1), U8(3), |
+ B(Star), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::FIXED_ARRAY_TYPE, |
+ InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function f() {} |
+ f(); |
+" |
+frame size: 3 |
+parameter count: 1 |
+bytecode array length: 29 |
+bytecodes: [ |
+ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(LdaZero), |
+ B(Star), R(2), |
+ B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), |
+ B(StackCheck), |
+ B(LdaUndefined), |
+ B(Star), R(2), |
+ B(LdaGlobal), U8(1), U8(1), |
+ B(Star), R(1), |
+ B(Call), R(1), R(2), U8(1), U8(3), |
+ B(Star), R(0), |
+ B(Return), |
+] |
+constant pool: [ |
+ InstanceType::FIXED_ARRAY_TYPE, |
+ InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
+] |
+handlers: [ |
+] |
+ |