| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef SRC_VM_NATIVES_H_ | 5 #ifndef SRC_VM_NATIVES_H_ |
| 6 #define SRC_VM_NATIVES_H_ | 6 #define SRC_VM_NATIVES_H_ |
| 7 | 7 |
| 8 #include "src/shared/assert.h" | 8 #include "src/shared/assert.h" |
| 9 #include "src/shared/globals.h" | 9 #include "src/shared/globals.h" |
| 10 #include "src/shared/natives.h" | 10 #include "src/shared/natives.h" |
| 11 | 11 |
| 12 namespace fletch { | 12 namespace dartino { |
| 13 | 13 |
| 14 // Forward declarations. | 14 // Forward declarations. |
| 15 class Assembler; | 15 class Assembler; |
| 16 class Object; | 16 class Object; |
| 17 class OneByteString; | 17 class OneByteString; |
| 18 class Process; | 18 class Process; |
| 19 class TwoByteString; | 19 class TwoByteString; |
| 20 | 20 |
| 21 // TODO(kasperl): Move this elsewhere. | 21 // TODO(kasperl): Move this elsewhere. |
| 22 char* AsForeignString(Object* object); | 22 char* AsForeignString(Object* object); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 return result; | 85 return result; |
| 86 | 86 |
| 87 #define RUN_INSIDE_BARRIER_AND_RETURN_VOID(expr) \ | 87 #define RUN_INSIDE_BARRIER_AND_RETURN_VOID(expr) \ |
| 88 (expr); \ | 88 (expr); \ |
| 89 return Smi::FromWord(0); | 89 return Smi::FromWord(0); |
| 90 | 90 |
| 91 #define N(e, c, n, d) DECLARE_NATIVE(e) | 91 #define N(e, c, n, d) DECLARE_NATIVE(e) |
| 92 NATIVES_DO(N) | 92 NATIVES_DO(N) |
| 93 #undef N | 93 #undef N |
| 94 | 94 |
| 95 } // namespace fletch | 95 } // namespace dartino |
| 96 | 96 |
| 97 #endif // SRC_VM_NATIVES_H_ | 97 #endif // SRC_VM_NATIVES_H_ |
| OLD | NEW |