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

Side by Side Diff: runtime/vm/code_generator_test.cc

Issue 259903002: Enables all codegen tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 arguments->Add(new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3)))); 111 arguments->Add(new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))));
112 arguments->Add(new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(2)))); 112 arguments->Add(new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(2))));
113 node_seq->Add(new ReturnNode(kPos, 113 node_seq->Add(new ReturnNode(kPos,
114 new StaticCallNode(kPos, function, arguments))); 114 new StaticCallNode(kPos, function, arguments)));
115 } 115 }
116 CODEGEN_TEST2_RUN(StaticCallSmiParamSumCodegen, 116 CODEGEN_TEST2_RUN(StaticCallSmiParamSumCodegen,
117 SmiParamSumCodegen, 117 SmiParamSumCodegen,
118 Smi::New(5)) 118 Smi::New(5))
119 119
120 120
121 // TODO(zra): Remove when tests are ready to enable.
122 #if !defined(TARGET_ARCH_ARM64)
123
124 CODEGEN_TEST_GENERATE(SmiAddCodegen, test) { 121 CODEGEN_TEST_GENERATE(SmiAddCodegen, test) {
125 SequenceNode* node_seq = test->node_sequence(); 122 SequenceNode* node_seq = test->node_sequence();
126 LiteralNode* a = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))); 123 LiteralNode* a = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3)));
127 LiteralNode* b = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(2))); 124 LiteralNode* b = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(2)));
128 BinaryOpNode* add_node = new BinaryOpNode(kPos, Token::kADD, a, b); 125 BinaryOpNode* add_node = new BinaryOpNode(kPos, Token::kADD, a, b);
129 node_seq->Add(new ReturnNode(kPos, add_node)); 126 node_seq->Add(new ReturnNode(kPos, add_node));
130 } 127 }
131 CODEGEN_TEST_RUN(SmiAddCodegen, Smi::New(5)) 128 CODEGEN_TEST_RUN(SmiAddCodegen, Smi::New(5))
132 129
133 130
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // App lib is the last one that was loaded. 560 // App lib is the last one that was loaded.
564 intptr_t num_libs = libs.Length(); 561 intptr_t num_libs = libs.Length();
565 Library& app_lib = Library::Handle(); 562 Library& app_lib = Library::Handle();
566 app_lib ^= libs.At(num_libs - 1); 563 app_lib ^= libs.At(num_libs - 1);
567 ASSERT(!app_lib.IsNull()); 564 ASSERT(!app_lib.IsNull());
568 const Class& cls = Class::Handle( 565 const Class& cls = Class::Handle(
569 app_lib.LookupClass(String::Handle(Symbols::New("A")))); 566 app_lib.LookupClass(String::Handle(Symbols::New("A"))));
570 EXPECT_EQ(cls.raw(), result.clazz()); 567 EXPECT_EQ(cls.raw(), result.clazz());
571 } 568 }
572 569
573 #endif // !defined(TARGET_ARCH_ARM64)
574
575 } // namespace dart 570 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698