| 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/assembler.h" | 6 #include "vm/assembler.h" |
| 7 #include "vm/class_finalizer.h" | 7 #include "vm/class_finalizer.h" |
| 8 #include "vm/compiler.h" | 8 #include "vm/compiler.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| 11 #include "vm/resolver.h" | 11 #include "vm/resolver.h" |
| 12 #include "vm/symbols.h" | 12 #include "vm/symbols.h" |
| 13 #include "vm/unit_test.h" | 13 #include "vm/unit_test.h" |
| 14 | 14 |
| 15 namespace dart { | 15 namespace dart { |
| 16 | 16 |
| 17 // Compiler only implemented on IA32, X64, and ARM. | |
| 18 #if defined(TARGET_ARCH_IA32) || \ | |
| 19 defined(TARGET_ARCH_X64) || \ | |
| 20 defined(TARGET_ARCH_ARM) | |
| 21 | |
| 22 // Setup function for invocation. | 17 // Setup function for invocation. |
| 23 static void SetupFunction(const char* test_library_name, | 18 static void SetupFunction(const char* test_library_name, |
| 24 const char* test_class_name, | 19 const char* test_class_name, |
| 25 const char* test_static_function_name, | 20 const char* test_static_function_name, |
| 26 bool is_static) { | 21 bool is_static) { |
| 27 // Setup a dart class and function. | 22 // Setup a dart class and function. |
| 28 char script_chars[1024]; | 23 char script_chars[1024]; |
| 29 OS::SNPrint(script_chars, | 24 OS::SNPrint(script_chars, |
| 30 sizeof(script_chars), | 25 sizeof(script_chars), |
| 31 "class Base {\n" | 26 "class Base {\n" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 String::Handle(String::New("dynCall")); | 209 String::Handle(String::New("dynCall")); |
| 215 const Function& super_function = Function::Handle( | 210 const Function& super_function = Function::Handle( |
| 216 Resolver::ResolveDynamic(receiver, | 211 Resolver::ResolveDynamic(receiver, |
| 217 super_function_name, | 212 super_function_name, |
| 218 kNumPositionalArguments, | 213 kNumPositionalArguments, |
| 219 kNumNamedArguments)); | 214 kNumNamedArguments)); |
| 220 EXPECT(!super_function.IsNull()); | 215 EXPECT(!super_function.IsNull()); |
| 221 } | 216 } |
| 222 } | 217 } |
| 223 | 218 |
| 224 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64 || TARGET_ARCH_ARM | |
| 225 | |
| 226 } // namespace dart | 219 } // namespace dart |
| OLD | NEW |