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

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

Issue 703693002: Regularize some naming to make BUILD.gn files easier to write. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/bootstrap_nocorelib.cc ('k') | runtime/vm/vm.gypi » ('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 "vm/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/code_observers.h" 7 #include "vm/code_observers.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/dart_api_state.h" 9 #include "vm/dart_api_state.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Dart_IsolateUnhandledExceptionCallback unhandled, 73 Dart_IsolateUnhandledExceptionCallback unhandled,
74 Dart_IsolateShutdownCallback shutdown, 74 Dart_IsolateShutdownCallback shutdown,
75 Dart_FileOpenCallback file_open, 75 Dart_FileOpenCallback file_open,
76 Dart_FileReadCallback file_read, 76 Dart_FileReadCallback file_read,
77 Dart_FileWriteCallback file_write, 77 Dart_FileWriteCallback file_write,
78 Dart_FileCloseCallback file_close, 78 Dart_FileCloseCallback file_close,
79 Dart_EntropySource entropy_source, 79 Dart_EntropySource entropy_source,
80 Dart_ServiceIsolateCreateCalback service_create) { 80 Dart_ServiceIsolateCreateCalback service_create) {
81 // TODO(iposva): Fix race condition here. 81 // TODO(iposva): Fix race condition here.
82 if (vm_isolate_ != NULL || !Flags::Initialized()) { 82 if (vm_isolate_ != NULL || !Flags::Initialized()) {
83 return "VM already initialized."; 83 return "VM already initialized or flags not initialized.";
84 } 84 }
85 Isolate::SetFileCallbacks(file_open, file_read, file_write, file_close); 85 Isolate::SetFileCallbacks(file_open, file_read, file_write, file_close);
86 Isolate::SetEntropySourceCallback(entropy_source); 86 Isolate::SetEntropySourceCallback(entropy_source);
87 OS::InitOnce(); 87 OS::InitOnce();
88 VirtualMemory::InitOnce(); 88 VirtualMemory::InitOnce();
89 Isolate::InitOnce(); 89 Isolate::InitOnce();
90 PortMap::InitOnce(); 90 PortMap::InitOnce();
91 FreeListElement::InitOnce(); 91 FreeListElement::InitOnce();
92 Api::InitOnce(); 92 Api::InitOnce();
93 CodeObservers::InitOnce(); 93 CodeObservers::InitOnce();
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 return predefined_handles_->handles_.AllocateScopedHandle(); 290 return predefined_handles_->handles_.AllocateScopedHandle();
291 } 291 }
292 292
293 293
294 bool Dart::IsReadOnlyHandle(uword address) { 294 bool Dart::IsReadOnlyHandle(uword address) {
295 ASSERT(predefined_handles_ != NULL); 295 ASSERT(predefined_handles_ != NULL);
296 return predefined_handles_->handles_.IsValidScopedHandle(address); 296 return predefined_handles_->handles_.IsValidScopedHandle(address);
297 } 297 }
298 298
299 } // namespace dart 299 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_nocorelib.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698