| 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/exceptions.h" | 8 #include "vm/exceptions.h" |
| 9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/native_entry.h" | 10 #include "vm/native_entry.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 return instance.raw(); | 223 return instance.raw(); |
| 224 } | 224 } |
| 225 | 225 |
| 226 | 226 |
| 227 DEFINE_NATIVE_ENTRY(AbstractType_toString, 1) { | 227 DEFINE_NATIVE_ENTRY(AbstractType_toString, 1) { |
| 228 const AbstractType& type = | 228 const AbstractType& type = |
| 229 AbstractType::CheckedHandle(arguments->NativeArgAt(0)); | 229 AbstractType::CheckedHandle(arguments->NativeArgAt(0)); |
| 230 return type.UserVisibleName(); | 230 return type.UserVisibleName(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 |
| 234 DEFINE_NATIVE_ENTRY(LibraryPrefix_load, 1) { |
| 235 const LibraryPrefix& prefix = |
| 236 LibraryPrefix::CheckedHandle(arguments->NativeArgAt(0)); |
| 237 prefix.LoadLibrary(); |
| 238 return Bool::Get(true).raw(); |
| 239 } |
| 240 |
| 233 } // namespace dart | 241 } // namespace dart |
| OLD | NEW |