| OLD | NEW |
| 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/assert.h" | 5 #include "platform/assert.h" |
| 6 #include "vm/globals.h" | 6 #include "vm/globals.h" |
| 7 #if defined(TARGET_ARCH_X64) | 7 #if defined(TARGET_ARCH_X64) |
| 8 | 8 |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| 11 #include "vm/class_finalizer.h" | 11 #include "vm/class_finalizer.h" |
| 12 #include "vm/code_generator.h" | 12 #include "vm/code_generator.h" |
| 13 #include "vm/compiler.h" | 13 #include "vm/compiler.h" |
| 14 #include "vm/dart_entry.h" | 14 #include "vm/dart_entry.h" |
| 15 #include "vm/native_entry.h" | 15 #include "vm/native_entry.h" |
| 16 #include "vm/native_entry_test.h" | 16 #include "vm/native_entry_test.h" |
| 17 #include "vm/unit_test.h" | 17 #include "vm/unit_test.h" |
| 18 #include "vm/virtual_memory.h" | 18 #include "vm/virtual_memory.h" |
| 19 | 19 |
| 20 namespace dart { | 20 namespace dart { |
| 21 | 21 |
| 22 #define __ assembler_-> | 22 #define __ assembler_-> |
| 23 | 23 |
| 24 | 24 |
| 25 static const intptr_t kPos = 1; // Dummy token index in non-existing source. | 25 static const intptr_t kPos = Scanner::kDummyTokenIndex; |
| 26 | 26 |
| 27 | 27 |
| 28 // Helper to allocate and return a LocalVariable. | 28 // Helper to allocate and return a LocalVariable. |
| 29 static LocalVariable* NewTestLocalVariable(const char* name) { | 29 static LocalVariable* NewTestLocalVariable(const char* name) { |
| 30 const String& variable_name = String::ZoneHandle(String::New(name)); | 30 const String& variable_name = String::ZoneHandle(String::New(name)); |
| 31 const Type& variable_type = Type::ZoneHandle(Type::DynamicType()); | 31 const Type& variable_type = Type::ZoneHandle(Type::DynamicType()); |
| 32 return new LocalVariable(kPos, variable_name, variable_type); | 32 return new LocalVariable(kPos, variable_name, variable_type); |
| 33 } | 33 } |
| 34 | 34 |
| 35 | 35 |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 const Library& app_lib = Library::Handle( | 491 const Library& app_lib = Library::Handle( |
| 492 Isolate::Current()->object_store()->registered_libraries()); | 492 Isolate::Current()->object_store()->registered_libraries()); |
| 493 const Class& cls = Class::Handle( | 493 const Class& cls = Class::Handle( |
| 494 app_lib.LookupClass(String::Handle(String::NewSymbol("A")))); | 494 app_lib.LookupClass(String::Handle(String::NewSymbol("A")))); |
| 495 EXPECT_EQ(cls.raw(), result.clazz()); | 495 EXPECT_EQ(cls.raw(), result.clazz()); |
| 496 } | 496 } |
| 497 | 497 |
| 498 } // namespace dart | 498 } // namespace dart |
| 499 | 499 |
| 500 #endif // defined TARGET_ARCH_X64 | 500 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |