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

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

Issue 1132323002: Add Service ID zones to service protocol (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/observatory/lib/src/service/object.dart ('k') | runtime/vm/isolate.h » ('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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // Initialize the new isolate. 211 // Initialize the new isolate.
212 Isolate* isolate = Isolate::Current(); 212 Isolate* isolate = Isolate::Current();
213 TIMERSCOPE(isolate, time_isolate_initialization); 213 TIMERSCOPE(isolate, time_isolate_initialization);
214 ASSERT(isolate != NULL); 214 ASSERT(isolate != NULL);
215 StackZone zone(isolate); 215 StackZone zone(isolate);
216 HandleScope handle_scope(isolate); 216 HandleScope handle_scope(isolate);
217 Heap::Init(isolate, 217 Heap::Init(isolate,
218 FLAG_new_gen_semi_max_size * MBInWords, 218 FLAG_new_gen_semi_max_size * MBInWords,
219 FLAG_old_gen_heap_size * MBInWords, 219 FLAG_old_gen_heap_size * MBInWords,
220 FLAG_external_max_size * MBInWords); 220 FLAG_external_max_size * MBInWords);
221 ObjectIdRing::Init(isolate);
222 ObjectStore::Init(isolate); 221 ObjectStore::Init(isolate);
223 222
224 // Setup for profiling. 223 // Setup for profiling.
225 Profiler::InitProfilingForIsolate(isolate); 224 Profiler::InitProfilingForIsolate(isolate);
226 225
227 const Error& error = Error::Handle(Object::Init(isolate)); 226 const Error& error = Error::Handle(Object::Init(isolate));
228 if (!error.IsNull()) { 227 if (!error.IsNull()) {
229 return error.raw(); 228 return error.raw();
230 } 229 }
231 if (snapshot_buffer != NULL) { 230 if (snapshot_buffer != NULL) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 return predefined_handles_->handles_.AllocateScopedHandle(); 314 return predefined_handles_->handles_.AllocateScopedHandle();
316 } 315 }
317 316
318 317
319 bool Dart::IsReadOnlyHandle(uword address) { 318 bool Dart::IsReadOnlyHandle(uword address) {
320 ASSERT(predefined_handles_ != NULL); 319 ASSERT(predefined_handles_ != NULL);
321 return predefined_handles_->handles_.IsValidScopedHandle(address); 320 return predefined_handles_->handles_.IsValidScopedHandle(address);
322 } 321 }
323 322
324 } // namespace dart 323 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698