Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 11308166: Fix bug 6467: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 732
733 // --- Initialization and Globals --- 733 // --- Initialization and Globals ---
734 734
735 DART_EXPORT const char* Dart_VersionString() { 735 DART_EXPORT const char* Dart_VersionString() {
736 return Version::String(); 736 return Version::String();
737 } 737 }
738 738
739 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create, 739 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create,
740 Dart_IsolateInterruptCallback interrupt, 740 Dart_IsolateInterruptCallback interrupt,
741 Dart_IsolateShutdownCallback shutdown) { 741 Dart_IsolateShutdownCallback shutdown) {
742 return Dart::InitOnce(create, interrupt, shutdown); 742 const char* err_msg = Dart::InitOnce(create, interrupt, shutdown);
743 if (err_msg != NULL) {
744 OS::PrintErr("Dart_Initialize: %s\n", err_msg);
745 return false;
746 }
747 return true;
743 } 748 }
744 749
745 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) { 750 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) {
746 return Flags::ProcessCommandLineFlags(argc, argv); 751 return Flags::ProcessCommandLineFlags(argc, argv);
747 } 752 }
748 753
749 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { 754 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) {
750 if (Flags::Lookup(flag_name) != NULL) { 755 if (Flags::Lookup(flag_name) != NULL) {
751 return true; 756 return true;
752 } 757 }
(...skipping 3739 matching lines...) Expand 10 before | Expand all | Expand 10 after
4492 } 4497 }
4493 { 4498 {
4494 NoGCScope no_gc; 4499 NoGCScope no_gc;
4495 RawObject* raw_obj = obj.raw(); 4500 RawObject* raw_obj = obj.raw();
4496 isolate->heap()->SetPeer(raw_obj, peer); 4501 isolate->heap()->SetPeer(raw_obj, peer);
4497 } 4502 }
4498 return Api::Success(isolate); 4503 return Api::Success(isolate);
4499 } 4504 }
4500 4505
4501 } // namespace dart 4506 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698