| 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 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/assert.h" | 9 #include "vm/assert.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Generate a dart code sequence that embeds a string object in it. | 25 // Generate a dart code sequence that embeds a string object in it. |
| 26 // This is used to test Embedded String objects in the instructions. | 26 // This is used to test Embedded String objects in the instructions. |
| 27 void GenerateEmbedStringInCode(Assembler* assembler, const char* str) { | 27 void GenerateEmbedStringInCode(Assembler* assembler, const char* str) { |
| 28 __ Unimplemented("GenerateEmbedStringInCode"); | 28 __ Unimplemented("GenerateEmbedStringInCode"); |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 // Generate a dart code sequence that embeds a smi object in it. | 32 // Generate a dart code sequence that embeds a smi object in it. |
| 33 // This is used to test Embedded Smi objects in the instructions. | 33 // This is used to test Embedded Smi objects in the instructions. |
| 34 void GenerateEmbedSmiInCode(Assembler* assembler, int value) { | 34 void GenerateEmbedSmiInCode(Assembler* assembler, intptr_t value) { |
| 35 __ Unimplemented("GenerateEmbedSmiInCode"); | 35 __ Unimplemented("GenerateEmbedSmiInCode"); |
| 36 } | 36 } |
| 37 | 37 |
| 38 | |
| 39 // Generate code for a simple static dart function that returns 42. | |
| 40 // This is used to test invocation of dart functions from C++. | |
| 41 void GenerateReturn42(Assembler* assembler) { | |
| 42 __ Unimplemented("GenerateReturn42"); | |
| 43 } | |
| 44 | |
| 45 } // namespace dart | 38 } // namespace dart |
| 46 | 39 |
| 47 #endif // defined TARGET_ARCH_ARM | 40 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |