Index: test/cctest/interpreter/bytecode_expectations/ThisFunction.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/ThisFunction.golden b/test/cctest/interpreter/bytecode_expectations/ThisFunction.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..62b17b2bf0ef34054a3409bc3e7e5564ac232f9c |
--- /dev/null |
+++ b/test/cctest/interpreter/bytecode_expectations/ThisFunction.golden |
@@ -0,0 +1,66 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations |
+# |
+ |
+--- |
+pool type: number |
+execute: yes |
+wrap: no |
+test function name: f |
+ |
+--- |
+snippet: " |
+ var f; |
+ f = function f() { } |
rmcilroy
2016/02/24 08:55:34
indentation (and below)
Stefano Sanfilippo
2016/02/24 14:55:01
Done.
|
+ f(); |
+" |
+frame size: 2 |
+parameter count: 1 |
+bytecode array length: 19 |
+bytecodes: [ |
+ B(LdaTheHole), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(closure), |
+ B(Star), R(1), |
+ B(Ldar), R(0), |
+ B(JumpIfNotHole), U8(5), |
+ B(Mov), R(1), R(0), |
+ B(Ldar), R(1), |
+ B(LdaUndefined), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ var f; |
+ f = function f() { return f; } |
+ f(); |
+" |
+frame size: 2 |
+parameter count: 1 |
+bytecode array length: 23 |
+bytecodes: [ |
+ B(LdaTheHole), |
+ B(Star), R(0), |
+ B(StackCheck), |
+ B(Ldar), R(closure), |
+ B(Star), R(1), |
+ B(Ldar), R(0), |
+ B(JumpIfNotHole), U8(5), |
+ B(Mov), R(1), R(0), |
+ B(Ldar), R(1), |
+ B(Ldar), R(0), |
+ B(JumpIfNotHole), U8(3), |
+ B(LdaUndefined), |
+ B(Return), |
+] |
+constant pool: [ |
+] |
+handlers: [ |
+] |
+ |