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

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

Issue 246293010: Enables first codegen test on 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
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // TODO(zra): Remove when tests are ready to enable.
6 #include "platform/globals.h" 5 #include "platform/globals.h"
7 #if !defined(TARGET_ARCH_ARM64)
8 6
9 #include "platform/assert.h" 7 #include "platform/assert.h"
10 #include "vm/globals.h" 8 #include "vm/globals.h"
11 #include "vm/ast.h" 9 #include "vm/ast.h"
12 #include "vm/assembler.h" 10 #include "vm/assembler.h"
13 #include "vm/class_finalizer.h" 11 #include "vm/class_finalizer.h"
14 #include "vm/code_generator.h" 12 #include "vm/code_generator.h"
15 #include "vm/compiler.h" 13 #include "vm/compiler.h"
16 #include "vm/dart_entry.h" 14 #include "vm/dart_entry.h"
17 #include "vm/native_entry.h" 15 #include "vm/native_entry.h"
18 #include "vm/native_entry_test.h" 16 #include "vm/native_entry_test.h"
19 #include "vm/symbols.h" 17 #include "vm/symbols.h"
20 #include "vm/unit_test.h" 18 #include "vm/unit_test.h"
21 #include "vm/virtual_memory.h" 19 #include "vm/virtual_memory.h"
22 20
23 namespace dart { 21 namespace dart {
24 22
25 static const intptr_t kPos = Scanner::kNoSourcePos; 23 static const intptr_t kPos = Scanner::kNoSourcePos;
26 24
27 25
28 CODEGEN_TEST_GENERATE(SimpleReturnCodegen, test) { 26 CODEGEN_TEST_GENERATE(SimpleReturnCodegen, test) {
29 test->node_sequence()->Add(new ReturnNode(kPos)); 27 test->node_sequence()->Add(new ReturnNode(kPos));
30 } 28 }
31 CODEGEN_TEST_RUN(SimpleReturnCodegen, Instance::null()) 29 CODEGEN_TEST_RUN(SimpleReturnCodegen, Instance::null())
32 30
31 // TODO(zra): Remove when tests are ready to enable.
32 #if !defined(TARGET_ARCH_ARM64)
33 33
34 CODEGEN_TEST_GENERATE(SmiReturnCodegen, test) { 34 CODEGEN_TEST_GENERATE(SmiReturnCodegen, test) {
35 LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))); 35 LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3)));
36 test->node_sequence()->Add(new ReturnNode(kPos, l)); 36 test->node_sequence()->Add(new ReturnNode(kPos, l));
37 } 37 }
38 CODEGEN_TEST_RUN(SmiReturnCodegen, Smi::New(3)) 38 CODEGEN_TEST_RUN(SmiReturnCodegen, Smi::New(3))
39 39
40 40
41 CODEGEN_TEST2_GENERATE(SimpleStaticCallCodegen, function, test) { 41 CODEGEN_TEST2_GENERATE(SimpleStaticCallCodegen, function, test) {
42 // Wrap the SmiReturnCodegen test above as a static function and call it. 42 // Wrap the SmiReturnCodegen test above as a static function and call it.
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // App lib is the last one that was loaded. 562 // App lib is the last one that was loaded.
563 intptr_t num_libs = libs.Length(); 563 intptr_t num_libs = libs.Length();
564 Library& app_lib = Library::Handle(); 564 Library& app_lib = Library::Handle();
565 app_lib ^= libs.At(num_libs - 1); 565 app_lib ^= libs.At(num_libs - 1);
566 ASSERT(!app_lib.IsNull()); 566 ASSERT(!app_lib.IsNull());
567 const Class& cls = Class::Handle( 567 const Class& cls = Class::Handle(
568 app_lib.LookupClass(String::Handle(Symbols::New("A")))); 568 app_lib.LookupClass(String::Handle(Symbols::New("A"))));
569 EXPECT_EQ(cls.raw(), result.clazz()); 569 EXPECT_EQ(cls.raw(), result.clazz());
570 } 570 }
571 571
572 #endif // !defined(TARGET_ARCH_ARM64)
573
572 } // namespace dart 574 } // namespace dart
573
574 #endif // !defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698