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

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

Issue 668193002: Remove isolate pointer from context objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 HandleScope handle_scope(isolate); 196 HandleScope handle_scope(isolate);
197 Heap::Init(isolate, 197 Heap::Init(isolate,
198 FLAG_new_gen_semi_max_size * MBInWords, 198 FLAG_new_gen_semi_max_size * MBInWords,
199 FLAG_old_gen_heap_size * MBInWords); 199 FLAG_old_gen_heap_size * MBInWords);
200 ObjectIdRing::Init(isolate); 200 ObjectIdRing::Init(isolate);
201 ObjectStore::Init(isolate); 201 ObjectStore::Init(isolate);
202 202
203 // Setup for profiling. 203 // Setup for profiling.
204 Profiler::InitProfilingForIsolate(isolate); 204 Profiler::InitProfilingForIsolate(isolate);
205 205
206 StubCode::InitBootstrapStubs(isolate);
207
206 if (snapshot_buffer == NULL) { 208 if (snapshot_buffer == NULL) {
207 const Error& error = Error::Handle(Object::Init(isolate)); 209 const Error& error = Error::Handle(Object::Init(isolate));
208 if (!error.IsNull()) { 210 if (!error.IsNull()) {
209 return error.raw(); 211 return error.raw();
210 } 212 }
211 } else { 213 } else {
212 // Initialize from snapshot (this should replicate the functionality 214 // Initialize from snapshot (this should replicate the functionality
213 // of Object::Init(..) in a regular isolate creation path. 215 // of Object::Init(..) in a regular isolate creation path.
214 Object::InitFromSnapshot(isolate); 216 Object::InitFromSnapshot(isolate);
215 217
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 return predefined_handles_->handles_.AllocateScopedHandle(); 292 return predefined_handles_->handles_.AllocateScopedHandle();
291 } 293 }
292 294
293 295
294 bool Dart::IsReadOnlyHandle(uword address) { 296 bool Dart::IsReadOnlyHandle(uword address) {
295 ASSERT(predefined_handles_ != NULL); 297 ASSERT(predefined_handles_ != NULL);
296 return predefined_handles_->handles_.IsValidScopedHandle(address); 298 return predefined_handles_->handles_.IsValidScopedHandle(address);
297 } 299 }
298 300
299 } // namespace dart 301 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/dart_entry.cc » ('j') | runtime/vm/stub_code.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698