Chromium Code Reviews| 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 | 6 |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 511 DART_EXPORT Dart_Handle Dart_MakePersistentHandle(Dart_Handle object) { | 511 DART_EXPORT Dart_Handle Dart_MakePersistentHandle(Dart_Handle object) { |
| 512 UNIMPLEMENTED(); | 512 UNIMPLEMENTED(); |
| 513 return NULL; | 513 return NULL; |
| 514 } | 514 } |
| 515 | 515 |
| 516 | 516 |
| 517 // --- Initialization and Globals --- | 517 // --- Initialization and Globals --- |
| 518 | 518 |
| 519 | 519 |
| 520 // TODO(iposva): This is a placeholder for the eventual external Dart API. | 520 // TODO(iposva): This is a placeholder for the eventual external Dart API. |
| 521 DART_EXPORT bool Dart_Initialize(int argc, | 521 DART_EXPORT bool Dart_Initialize(Dart_IsolateInitCallback callback) { |
| 522 const char** argv, | 522 return Dart::InitOnce(callback); |
| 523 Dart_IsolateInitCallback callback) { | |
| 524 return Dart::InitOnce(argc, argv, callback); | |
| 525 } | 523 } |
| 526 | 524 |
| 525 DART_EXPORT void Dart_SetVMFlags(int argc, const char** argv) { | |
|
siva
2011/11/30 19:09:38
void => bool
podivilov
2011/12/01 11:10:22
Done.
| |
| 526 Flags::ProcessCommandLineFlags(argc, argv); | |
|
siva
2011/11/30 19:09:38
return Flags::ProcessCommandLineFlags(argc, argv);
podivilov
2011/12/01 11:10:22
Done.
| |
| 527 } | |
| 527 | 528 |
| 528 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { | 529 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { |
| 529 if (Flags::Lookup(flag_name) != NULL) { | 530 if (Flags::Lookup(flag_name) != NULL) { |
| 530 return true; | 531 return true; |
| 531 } | 532 } |
| 532 return false; | 533 return false; |
| 533 } | 534 } |
| 534 | 535 |
| 535 | 536 |
| 536 // --- Isolates --- | 537 // --- Isolates --- |
| (...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2359 } | 2360 } |
| 2360 delete debug_region; | 2361 delete debug_region; |
| 2361 } else { | 2362 } else { |
| 2362 *buffer = NULL; | 2363 *buffer = NULL; |
| 2363 *buffer_size = 0; | 2364 *buffer_size = 0; |
| 2364 } | 2365 } |
| 2365 } | 2366 } |
| 2366 | 2367 |
| 2367 | 2368 |
| 2368 } // namespace dart | 2369 } // namespace dart |
| OLD | NEW |