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

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

Issue 14786012: Second step towards loading the core library scripts directly from the sources (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months 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') | runtime/vm/heap.cc » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 DART_EXPORT const char* Dart_VersionString() { 738 DART_EXPORT const char* Dart_VersionString() {
739 return Version::String(); 739 return Version::String();
740 } 740 }
741 741
742 DART_EXPORT bool Dart_Initialize( 742 DART_EXPORT bool Dart_Initialize(
743 Dart_IsolateCreateCallback create, 743 Dart_IsolateCreateCallback create,
744 Dart_IsolateInterruptCallback interrupt, 744 Dart_IsolateInterruptCallback interrupt,
745 Dart_IsolateUnhandledExceptionCallback unhandled, 745 Dart_IsolateUnhandledExceptionCallback unhandled,
746 Dart_IsolateShutdownCallback shutdown, 746 Dart_IsolateShutdownCallback shutdown,
747 Dart_FileOpenCallback file_open, 747 Dart_FileOpenCallback file_open,
748 Dart_FileReadCallback file_read,
748 Dart_FileWriteCallback file_write, 749 Dart_FileWriteCallback file_write,
749 Dart_FileCloseCallback file_close) { 750 Dart_FileCloseCallback file_close) {
750 const char* err_msg = Dart::InitOnce(create, interrupt, unhandled, shutdown, 751 const char* err_msg = Dart::InitOnce(create, interrupt, unhandled, shutdown,
751 file_open, file_write, file_close); 752 file_open, file_read, file_write,
753 file_close);
752 if (err_msg != NULL) { 754 if (err_msg != NULL) {
753 OS::PrintErr("Dart_Initialize: %s\n", err_msg); 755 OS::PrintErr("Dart_Initialize: %s\n", err_msg);
754 return false; 756 return false;
755 } 757 }
756 return true; 758 return true;
757 } 759 }
758 760
759 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) { 761 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) {
760 return Flags::ProcessCommandLineFlags(argc, argv); 762 return Flags::ProcessCommandLineFlags(argc, argv);
761 } 763 }
(...skipping 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after
4846 } 4848 }
4847 { 4849 {
4848 NoGCScope no_gc; 4850 NoGCScope no_gc;
4849 RawObject* raw_obj = obj.raw(); 4851 RawObject* raw_obj = obj.raw();
4850 isolate->heap()->SetPeer(raw_obj, peer); 4852 isolate->heap()->SetPeer(raw_obj, peer);
4851 } 4853 }
4852 return Api::Success(isolate); 4854 return Api::Success(isolate);
4853 } 4855 }
4854 4856
4855 } // namespace dart 4857 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698