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

Unified Diff: runtime/vm/assembler_dbc_test.cc

Issue 1948803002: Adds DBC StoreIntoObject test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | runtime/vm/assembler_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_dbc_test.cc
diff --git a/runtime/vm/assembler_dbc_test.cc b/runtime/vm/assembler_dbc_test.cc
index 49bb302703d87a818d0c40e804c410e7de4b66f4..11e579e1caeb8939be57071ee8a495f9d0a5a70d 100644
--- a/runtime/vm/assembler_dbc_test.cc
+++ b/runtime/vm/assembler_dbc_test.cc
@@ -6,6 +6,7 @@
#if defined(TARGET_ARCH_DBC)
#include "vm/assembler.h"
+#include "vm/stack_frame.h"
#include "vm/unit_test.h"
namespace dart {
@@ -42,6 +43,18 @@ ASSEMBLER_TEST_RUN(Simple, test) {
}
+// Called from assembler_test.cc.
+// FP[-kParamEndSlotFromFp - 1]: growable array
+// FP[-kParamEndSlotFromFp - 2]: value
+ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) {
+ __ Frame(2);
+ __ Move(0, -kParamEndSlotFromFp - 1);
+ __ Move(1, -kParamEndSlotFromFp - 2);
+ __ StoreField(0, GrowableObjectArray::data_offset() / kWordSize, 1);
+ __ Return(0);
+}
+
+
// - AddTOS; SubTOS; MulTOS; BitOrTOS; BitAndTOS; EqualTOS; LessThanTOS;
// GreaterThanTOS;
//
« no previous file with comments | « no previous file | runtime/vm/assembler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698