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

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

Issue 2330473002: Class fields, part 3 (backends)
Patch Set: bytecode test Created 4 years, 3 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
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/interpreter/generate-bytecode-expectations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/bytecode_expectations/ClassFields.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ClassFields.golden b/test/cctest/interpreter/bytecode_expectations/ClassFields.golden
new file mode 100644
index 0000000000000000000000000000000000000000..3821397c45e82dd19e5855e55797885c27a3b977
--- /dev/null
+++ b/test/cctest/interpreter/bytecode_expectations/ClassFields.golden
@@ -0,0 +1,239 @@
+#
+# Autogenerated by generate-bytecode-expectations.
+#
+
+---
+execute: yes
+wrap: yes
+class fields: yes
+
+---
+snippet: "
+ return new class {
+ 'a' = 0;
+ ['b'+'c'] = 1;
+ static d = 2;
+ }
+"
+frame size: 17
+parameter count: 1
+bytecode array length: 200
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 34 S> */ B(Ldar), R(closure),
+ B(CreateBlockContext), U8(0),
+ B(PushContext), R(5),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(4),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(5),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(7),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(8),
+ /* 45 S> */ B(LdaTheHole),
+ B(Star), R(7),
+ B(CreateClosure), U8(1), U8(2),
+ B(Star), R(8),
+ B(LdaSmi), U8(45),
+ B(Star), R(9),
+ B(LdaSmi), U8(98),
+ B(Star), R(10),
+ B(CallRuntime), U16(Runtime::kDefineClass), R(7), U8(4),
+ B(Star), R(7),
+ B(LdrNamedProperty), R(7), U8(2), U8(6), R(8),
+ B(Ldar), R(8),
+ B(Mov), R(7), R(1),
+ B(LdaConstant), U8(3),
+ B(Star), R(14),
+ B(CallRuntime), U16(Runtime::kToName), R(14), U8(1),
+ B(StaContextSlot), R(context), U8(4),
+ B(LdaConstant), U8(4),
+ B(Star), R(15),
+ B(LdaConstant), U8(5),
+ B(Add), R(15), U8(3),
+ B(Star), R(14),
+ B(CallRuntime), U16(Runtime::kToName), R(14), U8(1),
+ B(StaContextSlot), R(context), U8(5),
+ B(LdaConstant), U8(6),
+ B(ToName), R(10),
+ B(CreateClosure), U8(7), U8(2),
+ B(Star), R(2),
+ B(LdaConstant), U8(8),
+ B(Star), R(16),
+ B(Ldar), R(7),
+ B(StaKeyedPropertyStrict), R(2), R(16), U8(4),
+ B(Mov), R(2), R(14),
+ B(Mov), R(7), R(15),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
+ B(Star), R(11),
+ B(LdaSmi), U8(2),
+ B(Star), R(12),
+ B(LdaZero),
+ B(Star), R(13),
+ B(Mov), R(1), R(9),
+ B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(9), U8(5),
+ B(CallRuntime), U16(Runtime::kToFastProperties), R(7), U8(1),
+ B(Star), R(0),
+ B(CreateClosure), U8(9), U8(2),
+ B(StaContextSlot), R(context), U8(6),
+ B(CreateClosure), U8(10), U8(2),
+ B(Star), R(3),
+ B(LdaConstant), U8(8),
+ B(Star), R(8),
+ B(LdaNamedProperty), R(0), U8(2), U8(8),
+ B(StaKeyedPropertyStrict), R(3), R(8), U8(10),
+ B(Ldar), R(3),
+ B(StaContextSlot), R(context), U8(7),
+ B(CreateClosure), U8(11), U8(2),
+ B(Star), R(4),
+ B(LdaConstant), U8(8),
+ B(Star), R(8),
+ B(LdaNamedProperty), R(0), U8(2), U8(12),
+ B(StaKeyedPropertyStrict), R(4), R(8), U8(14),
+ B(Ldar), R(4),
+ B(StaContextSlot), R(context), U8(8),
+ B(PopContext), R(5),
+ B(Ldar), R(0),
+ /* 41 E> */ B(New), R(0), R(0), U8(0), U8(1),
+ /* 99 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["c"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["d"],
+ SHARED_FUNCTION_INFO_TYPE,
+ SYMBOL_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+]
+handlers: [
+]
+
+---
+snippet: "
+ return new class extends class {} {
+ constructor(){ super() }
+ 'a' = 0;
+ ['b'+'c'] = 1;
+ static d = 2;
+ }
+"
+frame size: 18
+parameter count: 1
+bytecode array length: 237
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 34 S> */ B(Ldar), R(closure),
+ B(CreateBlockContext), U8(0),
+ B(PushContext), R(6),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(4),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(5),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(7),
+ B(LdaTheHole),
+ B(StaContextSlot), R(context), U8(8),
+ /* 59 S> */ B(LdaTheHole),
+ B(Star), R(12),
+ B(CreateClosure), U8(1), U8(2),
+ B(Star), R(13),
+ B(LdaSmi), U8(59),
+ B(Star), R(14),
+ B(LdaSmi), U8(67),
+ B(Star), R(15),
+ B(CallRuntime), U16(Runtime::kDefineClass), R(12), U8(4),
+ B(Star), R(12),
+ B(LdrNamedProperty), R(12), U8(2), U8(3), R(13),
+ B(CallRuntime), U16(Runtime::kToFastProperties), R(12), U8(1),
+ B(Star), R(0),
+ /* 59 E> */ B(CreateClosure), U8(3), U8(2),
+ B(Star), R(9),
+ B(LdaSmi), U8(45),
+ B(Star), R(10),
+ B(Wide), B(LdaSmi), U16(142),
+ B(Star), R(11),
+ B(Mov), R(0), R(8),
+ B(CallRuntime), U16(Runtime::kDefineClass), R(8), U8(4),
+ B(Star), R(8),
+ B(LdrNamedProperty), R(8), U8(2), U8(8), R(9),
+ B(Ldar), R(9),
+ B(Mov), R(8), R(2),
+ B(LdaConstant), U8(4),
+ B(Star), R(15),
+ B(CallRuntime), U16(Runtime::kToName), R(15), U8(1),
+ B(StaContextSlot), R(context), U8(4),
+ B(LdaConstant), U8(5),
+ B(Star), R(16),
+ B(LdaConstant), U8(6),
+ B(Add), R(16), U8(5),
+ B(Star), R(15),
+ B(CallRuntime), U16(Runtime::kToName), R(15), U8(1),
+ B(StaContextSlot), R(context), U8(5),
+ B(LdaConstant), U8(7),
+ B(ToName), R(11),
+ B(CreateClosure), U8(8), U8(2),
+ B(Star), R(3),
+ B(LdaConstant), U8(9),
+ B(Star), R(17),
+ B(Ldar), R(8),
+ B(StaKeyedPropertyStrict), R(3), R(17), U8(6),
+ B(Mov), R(3), R(15),
+ B(Mov), R(8), R(16),
+ B(InvokeIntrinsic), U8(Runtime::k_Call), R(15), U8(2),
+ B(Star), R(12),
+ B(LdaSmi), U8(2),
+ B(Star), R(13),
+ B(LdaZero),
+ B(Star), R(14),
+ B(Mov), R(2), R(10),
+ B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(10), U8(5),
+ B(CallRuntime), U16(Runtime::kToFastProperties), R(8), U8(1),
+ B(Star), R(1),
+ B(CreateClosure), U8(10), U8(2),
+ B(StaContextSlot), R(context), U8(6),
+ B(CreateClosure), U8(11), U8(2),
+ B(Star), R(4),
+ B(LdaConstant), U8(9),
+ B(Star), R(9),
+ B(LdaNamedProperty), R(1), U8(2), U8(10),
+ B(StaKeyedPropertyStrict), R(4), R(9), U8(12),
+ B(Ldar), R(4),
+ B(StaContextSlot), R(context), U8(7),
+ B(CreateClosure), U8(12), U8(2),
+ B(Star), R(5),
+ B(LdaConstant), U8(9),
+ B(Star), R(9),
+ B(LdaNamedProperty), R(1), U8(2), U8(14),
+ B(StaKeyedPropertyStrict), R(5), R(9), U8(16),
+ B(Ldar), R(5),
+ B(StaContextSlot), R(context), U8(8),
+ B(PopContext), R(6),
+ B(Ldar), R(1),
+ /* 41 E> */ B(New), R(1), R(0), U8(0), U8(1),
+ /* 143 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
+ SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["c"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["d"],
+ SHARED_FUNCTION_INFO_TYPE,
+ SYMBOL_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+ SHARED_FUNCTION_INFO_TYPE,
+]
+handlers: [
+]
+
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/interpreter/generate-bytecode-expectations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698