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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move golden files to subdir, update golden format. 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/Parameters.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/Parameters.golden b/test/cctest/interpreter/bytecode_expectations/Parameters.golden
new file mode 100644
index 0000000000000000000000000000000000000000..4fb3af755ce33887d9b5c1573ef73e1fa364f771
--- /dev/null
+++ b/test/cctest/interpreter/bytecode_expectations/Parameters.golden
@@ -0,0 +1,140 @@
+#
+# Autogenerated by generate-bytecode-expectations
+#
+
+---
+pool type: mixed
+execute: yes
+wrap: no
+test function name: f
+
+---
+snippet: "
+ function f() { return this; }
+ f();
+"
+frame size: 0
+parameter count: 1
+bytecode array length: 4
+bytecodes: [
+ B(StackCheck),
+ B(Ldar), R(this),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(arg1) { return arg1; }
+ f();
+"
+frame size: 0
+parameter count: 2
+bytecode array length: 4
+bytecodes: [
+ B(StackCheck),
+ B(Ldar), R(arg0),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(arg1) { return this; }
+ f();
+"
+frame size: 0
+parameter count: 2
+bytecode array length: 4
+bytecodes: [
+ B(StackCheck),
+ B(Ldar), R(this),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return arg4; }
+ f();
+"
+frame size: 0
+parameter count: 8
+bytecode array length: 4
+bytecodes: [
+ B(StackCheck),
+ B(Ldar), R(arg3),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this; }
+ f();
+"
+frame size: 0
+parameter count: 8
+bytecode array length: 4
+bytecodes: [
+ B(StackCheck),
+ B(Ldar), R(this),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(arg1) { arg1 = 1; }
+ f();
+"
+frame size: 0
+parameter count: 2
+bytecode array length: 7
+bytecodes: [
+ B(StackCheck),
+ B(LdaSmi8), U8(1),
+ B(Star), R(arg0),
+ B(LdaUndefined),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(arg1, arg2, arg3, arg4) { arg2 = 1; }
+ f();
+"
+frame size: 0
+parameter count: 5
+bytecode array length: 7
+bytecodes: [
+ B(StackCheck),
+ B(LdaSmi8), U8(1),
+ B(Star), R(arg1),
+ B(LdaUndefined),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+

Powered by Google App Engine
This is Rietveld 408576698