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" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 LibraryPrefix::CheckedHandle(arguments->NativeArgAt(0)); | 312 LibraryPrefix::CheckedHandle(arguments->NativeArgAt(0)); |
313 // Currently all errors are Dart instances, e.g. I/O errors | 313 // Currently all errors are Dart instances, e.g. I/O errors |
314 // created by deferred loading code. LanguageErrors from | 314 // created by deferred loading code. LanguageErrors from |
315 // failed loading or finalization attempts are propagated and result | 315 // failed loading or finalization attempts are propagated and result |
316 // in the isolate's death. | 316 // in the isolate's death. |
317 const Instance& error = Instance::Handle(prefix.LoadError()); | 317 const Instance& error = Instance::Handle(prefix.LoadError()); |
318 return error.raw(); | 318 return error.raw(); |
319 } | 319 } |
320 | 320 |
321 | 321 |
322 DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) { | |
323 #if defined(TARGET_ARCH_X64) | |
siva
2015/04/24 18:27:07
ARCH_IS_64_BIT should be used here.
srdjan
2015/04/24 18:28:46
Done.
| |
324 return Bool::True().raw(); | |
325 #else | |
326 return Bool::False().raw(); | |
327 #endif // defined(TARGET_ARCH_X64) | |
328 } | |
329 | |
322 } // namespace dart | 330 } // namespace dart |
OLD | NEW |