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

Unified Diff: test/cctest/interpreter/CreateArguments.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: std::vector instead of initializer_list, golden path as constant. 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/CreateArguments.golden
diff --git a/test/cctest/interpreter/CreateArguments.golden b/test/cctest/interpreter/CreateArguments.golden
new file mode 100644
index 0000000000000000000000000000000000000000..223f7ca1a93f488e8cc07c05c6bb5d009c88e26a
--- /dev/null
+++ b/test/cctest/interpreter/CreateArguments.golden
@@ -0,0 +1,142 @@
+#
+# Autogenerated by generate-bytecode-expectations
+#
+
+---
+pool type: string
+execute: yes
+wrap: no
+test function name: f
+
+---
+snippet: "
+ function f() { return arguments; }
+ f();
+"
+frame size: 1 # in multiples of sizeof(void*)
+parameter count: 1
+bytecodes: [
+ B(CreateMappedArguments),
+ B(Star), R(0),
+ B(StackCheck),
+ B(Ldar), R(0),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f() { return arguments[0]; }
+ f();
+"
+frame size: 2 # in multiples of sizeof(void*)
+parameter count: 1
+bytecodes: [
+ B(CreateMappedArguments),
+ B(Star), R(0),
+ B(StackCheck),
+ B(Ldar), R(0),
+ B(Star), R(1),
+ B(LdaZero),
+ B(KeyedLoadIC), R(1), U8(1),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f() { 'use strict'; return arguments; }
+ f();
+"
+frame size: 1 # in multiples of sizeof(void*)
+parameter count: 1
+bytecodes: [
+ B(CreateUnmappedArguments),
+ B(Star), R(0),
+ B(StackCheck),
+ B(Ldar), R(0),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(a) { return arguments[0]; }
+ f();
+"
+frame size: 3 # in multiples of sizeof(void*)
+parameter count: 2
+bytecodes: [
+ B(CallRuntime), U16(461), R(closure), U8(1),
+ B(PushContext), R(1),
+ B(Ldar), R(arg0),
+ B(StaContextSlot), R(context), U8(4),
+ B(CreateMappedArguments),
+ B(Star), R(0),
+ B(StackCheck),
+ B(Ldar), R(0),
+ B(Star), R(2),
+ B(LdaZero),
+ B(KeyedLoadIC), R(2), U8(1),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(a, b, c) { return arguments; }
+ f();
+"
+frame size: 2 # in multiples of sizeof(void*)
+parameter count: 4
+bytecodes: [
+ B(CallRuntime), U16(461), R(closure), U8(1),
+ B(PushContext), R(1),
+ B(Ldar), R(arg0),
+ B(StaContextSlot), R(context), U8(6),
+ B(Ldar), R(arg1),
+ B(StaContextSlot), R(context), U8(5),
+ B(Ldar), R(arg2),
+ B(StaContextSlot), R(context), U8(4),
+ B(CreateMappedArguments),
+ B(Star), R(0),
+ B(StackCheck),
+ B(Ldar), R(0),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
+---
+snippet: "
+ function f(a, b, c) { 'use strict'; return arguments; }
+ f();
+"
+frame size: 1 # in multiples of sizeof(void*)
+parameter count: 4
+bytecodes: [
+ B(CreateUnmappedArguments),
+ B(Star), R(0),
+ B(StackCheck),
+ B(Ldar), R(0),
+ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+

Powered by Google App Engine
This is Rietveld 408576698