OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef VM_UNIT_TEST_H_ | 5 #ifndef VM_UNIT_TEST_H_ |
6 #define VM_UNIT_TEST_H_ | 6 #define VM_UNIT_TEST_H_ |
7 | 7 |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 | 9 |
10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 code_(Code::ZoneHandle()) { | 373 code_(Code::ZoneHandle()) { |
374 ASSERT(name != NULL); | 374 ASSERT(name != NULL); |
375 ASSERT(assembler != NULL); | 375 ASSERT(assembler != NULL); |
376 } | 376 } |
377 ~AssemblerTest() { } | 377 ~AssemblerTest() { } |
378 | 378 |
379 Assembler* assembler() const { return assembler_; } | 379 Assembler* assembler() const { return assembler_; } |
380 | 380 |
381 const Code& code() const { return code_; } | 381 const Code& code() const { return code_; } |
382 | 382 |
383 uword entry() const { return code_.EntryPoint(); } | 383 uword payload_start() const { return code_.PayloadStart(); } |
| 384 uword entry() const { return code_.UncheckedEntryPoint(); } |
384 | 385 |
385 // Invoke/InvokeWithCodeAndThread is used to call assembler test functions | 386 // Invoke/InvokeWithCodeAndThread is used to call assembler test functions |
386 // using the ABI calling convention. | 387 // using the ABI calling convention. |
387 // ResultType is the return type of the assembler test function. | 388 // ResultType is the return type of the assembler test function. |
388 // ArgNType is the type of the Nth argument. | 389 // ArgNType is the type of the Nth argument. |
389 #if defined(USING_SIMULATOR) && !defined(TARGET_ARCH_DBC) | 390 #if defined(USING_SIMULATOR) && !defined(TARGET_ARCH_DBC) |
390 | 391 |
391 #if defined(ARCH_IS_64_BIT) | 392 #if defined(ARCH_IS_64_BIT) |
392 // TODO(fschneider): Make InvokeWithCodeAndThread<> more general and work on | 393 // TODO(fschneider): Make InvokeWithCodeAndThread<> more general and work on |
393 // 32-bit. | 394 // 32-bit. |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 } | 613 } |
613 | 614 |
614 private: | 615 private: |
615 T* flag_; | 616 T* flag_; |
616 T original_value_; | 617 T original_value_; |
617 }; | 618 }; |
618 | 619 |
619 } // namespace dart | 620 } // namespace dart |
620 | 621 |
621 #endif // VM_UNIT_TEST_H_ | 622 #endif // VM_UNIT_TEST_H_ |
OLD | NEW |