Index: test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden b/test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden |
new file mode 100644 |
index 0000000000000000000000000000000000000000..18be262a04ae16bd4e8de49bbf3dc89c03c6ef42 |
--- /dev/null |
+++ b/test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden |
@@ -0,0 +1,605 @@ |
+# |
+# Autogenerated by generate-bytecode-expectations |
+# |
+ |
+--- |
+pool type: string |
+execute: yes |
+wrap: no |
+test function name: f |
+ |
+--- |
+snippet: " |
+ var a = 1; |
+ function f() { return a; } |
+ f() |
+" |
+frame size: 0 |
+parameter count: 1 |
+bytecode array length: 5 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(LdaGlobal), U8(0), U8(1), |
+ B(Return), |
+] |
+constant pool: [ |
+ "a", |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ function t() { } |
+ function f() { return t; } |
+ f() |
+" |
+frame size: 0 |
+parameter count: 1 |
+bytecode array length: 5 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(LdaGlobal), U8(0), U8(1), |
+ B(Return), |
+] |
+constant pool: [ |
+ "t", |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ a = 1; |
+ function f() { return a; } |
+ f() |
+" |
+frame size: 0 |
+parameter count: 1 |
+bytecode array length: 5 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(LdaGlobal), U8(0), U8(1), |
+ B(Return), |
+] |
+constant pool: [ |
+ "a", |
+] |
+handlers: [ |
+] |
+ |
+--- |
+snippet: " |
+ a = 1; |
+ function f(b) { |
+ b.name; |
rmcilroy
2016/02/24 08:55:36
fix indenting
Stefano Sanfilippo
2016/02/24 14:55:02
Done.
|
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ b.name; |
+ return a; |
+ } |
+ f({name: 1}); |
+" |
+frame size: 1 |
+parameter count: 2 |
+bytecode array length: 1031 |
+bytecodes: [ |
+ B(StackCheck), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(1), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(3), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(5), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(7), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(9), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(11), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(13), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(15), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(17), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(19), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(21), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(23), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(25), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(27), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(29), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(31), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(33), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(35), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(37), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(39), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(41), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(43), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(45), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(47), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(49), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(51), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(53), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(55), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(57), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(59), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(61), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(63), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(65), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(67), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(69), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(71), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(73), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(75), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(77), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(79), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(81), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(83), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(85), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(87), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(89), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(91), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(93), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(95), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(97), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(99), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(101), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(103), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(105), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(107), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(109), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(111), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(113), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(115), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(117), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(119), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(121), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(123), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(125), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(127), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(129), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(131), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(133), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(135), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(137), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(139), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(141), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(143), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(145), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(147), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(149), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(151), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(153), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(155), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(157), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(159), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(161), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(163), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(165), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(167), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(169), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(171), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(173), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(175), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(177), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(179), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(181), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(183), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(185), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(187), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(189), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(191), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(193), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(195), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(197), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(199), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(201), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(203), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(205), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(207), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(209), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(211), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(213), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(215), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(217), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(219), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(221), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(223), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(225), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(227), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(229), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(231), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(233), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(235), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(237), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(239), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(241), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(243), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(245), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(247), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(249), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(251), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(253), |
+ B(Ldar), R(arg0), |
+ B(Star), R(0), |
+ B(LoadIC), R(0), U8(0), U8(255), |
+ B(LdaGlobalWide), U16(1), U16(257), |
+ B(Return), |
+] |
+constant pool: [ |
+ "name", |
+ "a", |
+] |
+handlers: [ |
+] |
+ |