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 #ifndef VM_NATIVE_ARGUMENTS_H_ | 5 #ifndef VM_NATIVE_ARGUMENTS_H_ |
6 #define VM_NATIVE_ARGUMENTS_H_ | 6 #define VM_NATIVE_ARGUMENTS_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "platform/memory_sanitizer.h" | 9 #include "platform/memory_sanitizer.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
11 #include "vm/handles_impl.h" | 11 #include "vm/handles_impl.h" |
12 #include "vm/simulator.h" | 12 #include "vm/simulator.h" |
13 #include "vm/stub_code.h" | 13 #include "vm/stub_code.h" |
14 | 14 |
15 namespace dart { | 15 namespace dart { |
16 | 16 |
17 DECLARE_FLAG(bool, trace_natives); | 17 DECLARE_FLAG(bool, trace_natives); |
18 DECLARE_FLAG(bool, verify_on_transition); | |
19 | 18 |
20 // Forward declarations. | 19 // Forward declarations. |
21 class BootstrapNatives; | 20 class BootstrapNatives; |
22 class Object; | 21 class Object; |
23 class RawObject; | 22 class RawObject; |
24 class Simulator; | 23 class Simulator; |
25 class Thread; | 24 class Thread; |
26 | 25 |
27 #if defined(TESTING) || defined(DEBUG) | 26 #if defined(TESTING) || defined(DEBUG) |
28 | 27 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 235 |
237 Thread* thread_; // Current thread pointer. | 236 Thread* thread_; // Current thread pointer. |
238 intptr_t argc_tag_; // Encodes argument count and invoked native call type. | 237 intptr_t argc_tag_; // Encodes argument count and invoked native call type. |
239 RawObject*(*argv_)[]; // Pointer to an array of arguments to runtime call. | 238 RawObject*(*argv_)[]; // Pointer to an array of arguments to runtime call. |
240 RawObject** retval_; // Pointer to the return value area. | 239 RawObject** retval_; // Pointer to the return value area. |
241 }; | 240 }; |
242 | 241 |
243 } // namespace dart | 242 } // namespace dart |
244 | 243 |
245 #endif // VM_NATIVE_ARGUMENTS_H_ | 244 #endif // VM_NATIVE_ARGUMENTS_H_ |
OLD | NEW |