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

Unified Diff: runtime/vm/assembler_dbc_test.cc

Issue 2109743002: DBC: Implement InstanceOf. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 6 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/code_generator.cc » ('j') | runtime/vm/code_generator.cc » ('J')
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 9e4e2cdab4300fe276a5d6504b3ff0b804be6fec..6150c70c5f066114a535b11945c4af5e1d6c5230 100644
--- a/runtime/vm/assembler_dbc_test.cc
+++ b/runtime/vm/assembler_dbc_test.cc
@@ -359,6 +359,31 @@ ASSEMBLER_TEST_RUN(BitAndTOSNonSmi, test) {
}
+ASSEMBLER_TEST_GENERATE(LogicalNotTrue, assembler) {
+ __ PushConstant(Bool::Get(true));
+ __ LogicalNot();
+ __ ReturnTOS();
+}
+
+
+ASSEMBLER_TEST_RUN(LogicalNotTrue, test) {
+ EXPECT(!EXECUTE_TEST_CODE_BOOL(test->code()));
+}
+
+
+ASSEMBLER_TEST_GENERATE(LogicalNotFalse, assembler) {
+ __ PushConstant(Bool::Get(false));
+ __ LogicalNot();
+ __ ReturnTOS();
+}
+
+
+ASSEMBLER_TEST_RUN(LogicalNotFalse, test) {
+ EXPECT(EXECUTE_TEST_CODE_BOOL(test->code()));
+}
+
+
+
ASSEMBLER_TEST_GENERATE(EqualTOSTrue, assembler) {
__ PushConstant(Smi::Handle(Smi::New(42)));
__ PushConstant(Smi::Handle(Smi::New(42)));
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/code_generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698