| 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/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
| 6 | 6 |
| 7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/exceptions.h" | 9 #include "vm/exceptions.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| 11 #include "vm/native_entry.h" | 11 #include "vm/native_entry.h" |
| 12 #include "vm/object.h" | 12 #include "vm/object.h" |
| 13 #include "vm/report.h" | 13 #include "vm/report.h" |
| 14 #include "vm/stack_frame.h" | 14 #include "vm/stack_frame.h" |
| 15 #include "vm/symbols.h" | 15 #include "vm/symbols.h" |
| 16 | 16 |
| 17 namespace dart { | 17 namespace dart { |
| 18 | 18 |
| 19 DECLARE_FLAG(bool, enable_type_checks); | |
| 20 DECLARE_FLAG(bool, trace_type_checks); | 19 DECLARE_FLAG(bool, trace_type_checks); |
| 21 DECLARE_FLAG(bool, warn_on_javascript_compatibility); | 20 DECLARE_FLAG(bool, warn_on_javascript_compatibility); |
| 22 | 21 |
| 23 // Helper function in stacktrace.cc. | 22 // Helper function in stacktrace.cc. |
| 24 void _printCurrentStacktrace(); | 23 void _printCurrentStacktrace(); |
| 25 | 24 |
| 26 DEFINE_NATIVE_ENTRY(DartCore_fatal, 1) { | 25 DEFINE_NATIVE_ENTRY(DartCore_fatal, 1) { |
| 27 // The core library code entered an unrecoverable state. | 26 // The core library code entered an unrecoverable state. |
| 28 const Instance& instance = Instance::CheckedHandle(arguments->NativeArgAt(0)); | 27 const Instance& instance = Instance::CheckedHandle(arguments->NativeArgAt(0)); |
| 29 const char* msg = instance.ToCString(); | 28 const char* msg = instance.ToCString(); |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 320 |
| 322 DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) { | 321 DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) { |
| 323 #if defined(ARCH_IS_64_BIT) | 322 #if defined(ARCH_IS_64_BIT) |
| 324 return Bool::True().raw(); | 323 return Bool::True().raw(); |
| 325 #else | 324 #else |
| 326 return Bool::False().raw(); | 325 return Bool::False().raw(); |
| 327 #endif // defined(ARCH_IS_64_BIT) | 326 #endif // defined(ARCH_IS_64_BIT) |
| 328 } | 327 } |
| 329 | 328 |
| 330 } // namespace dart | 329 } // namespace dart |
| OLD | NEW |