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

Side by Side Diff: vm/dart.cc

Issue 8439061: Support command line parameters to specify a url to file name mapping. This is used during snapsh... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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
OLDNEW
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/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/code_index_table.h" 7 #include "vm/code_index_table.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/handles.h" 9 #include "vm/handles.h"
10 #include "vm/heap.h" 10 #include "vm/heap.h"
11 #include "vm/isolate.h" 11 #include "vm/isolate.h"
12 #include "vm/object.h" 12 #include "vm/object.h"
13 #include "vm/object_store.h" 13 #include "vm/object_store.h"
14 #include "vm/port.h" 14 #include "vm/port.h"
15 #include "vm/snapshot.h" 15 #include "vm/snapshot.h"
16 #include "vm/stub_code.h" 16 #include "vm/stub_code.h"
17 #include "vm/virtual_memory.h" 17 #include "vm/virtual_memory.h"
18 #include "vm/zone.h" 18 #include "vm/zone.h"
19 19
20 namespace dart { 20 namespace dart {
21 21
22 Isolate* Dart::vm_isolate_ = NULL; 22 Isolate* Dart::vm_isolate_ = NULL;
23 DebugInfo* Dart::pprof_symbol_generator_ = NULL; 23 DebugInfo* Dart::pprof_symbol_generator_ = NULL;
24 24
25 bool Dart::InitOnce(int argc, char** argv, 25 bool Dart::InitOnce(int argc, const char** argv,
26 Dart_IsolateInitCallback callback) { 26 Dart_IsolateInitCallback callback) {
27 // TODO(iposva): Fix race condition here. 27 // TODO(iposva): Fix race condition here.
28 if (vm_isolate_ != NULL) { 28 if (vm_isolate_ != NULL) {
29 return false; 29 return false;
30 } 30 }
31 OS::InitOnce(); 31 OS::InitOnce();
32 Flags::ProcessCommandLineFlags(argc, argv); 32 Flags::ProcessCommandLineFlags(argc, argv);
33 VirtualMemory::InitOnce(); 33 VirtualMemory::InitOnce();
34 Isolate::InitOnce(); 34 Isolate::InitOnce();
35 // Create the VM isolate and finish the VM initialization. 35 // Create the VM isolate and finish the VM initialization.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 86
87 void Dart::ShutdownIsolate() { 87 void Dart::ShutdownIsolate() {
88 Isolate* isolate = Isolate::Current(); 88 Isolate* isolate = Isolate::Current();
89 isolate->Shutdown(); 89 isolate->Shutdown();
90 delete isolate; 90 delete isolate;
91 } 91 }
92 92
93 } // namespace dart 93 } // namespace dart
OLDNEW
« bin/gen_snapshot.cc ('K') | « vm/dart.h ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698