Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1254)

Unified Diff: test/cctest/interpreter/bytecode_expectations/CallGlobal.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reflow REPEAT_249 macro. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/interpreter/bytecode_expectations/CallGlobal.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/CallGlobal.golden b/test/cctest/interpreter/bytecode_expectations/CallGlobal.golden
new file mode 100644
index 0000000000000000000000000000000000000000..a6f35daff45ea7b2019a654098d32073d2b8c63a
--- /dev/null
+++ b/test/cctest/interpreter/bytecode_expectations/CallGlobal.golden
@@ -0,0 +1,64 @@
+#
+# Autogenerated by generate-bytecode-expectations.
+#
+
+---
+pool type: string
+execute: yes
+wrap: no
+test function name: f
+
+---
+snippet: "
+ function t() { }
+ function f() { return t(); }
+ f();
+"
+frame size: 2
+parameter count: 1
+bytecode array length: 15
+bytecodes: [
+ B(StackCheck),
+ B(LdaUndefined),
+ B(Star), R(1),
+ B(LdaGlobal), U8(0), U8(3),
+ B(Star), R(0),
+ B(Call), R(0), R(1), U8(1), U8(1),
+ B(Return),
+]
+constant pool: [
+ "t",
+]
+handlers: [
+]
+
+---
+snippet: "
+ function t(a, b, c) { }
+ function f() { return t(1, 2, 3); }
+ f();
+"
+frame size: 5
+parameter count: 1
+bytecode array length: 27
+bytecodes: [
+ B(StackCheck),
+ B(LdaUndefined),
+ B(Star), R(1),
+ B(LdaGlobal), U8(0), U8(3),
+ B(Star), R(0),
+ B(LdaSmi8), U8(1),
+ B(Star), R(2),
+ B(LdaSmi8), U8(2),
+ B(Star), R(3),
+ B(LdaSmi8), U8(3),
+ B(Star), R(4),
+ B(Call), R(0), R(1), U8(4), U8(1),
+ B(Return),
+]
+constant pool: [
+ "t",
+]
+handlers: [
+]
+

Powered by Google App Engine
This is Rietveld 408576698