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

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

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 isolate->megamorphic_cache_table()->InitMissHandler(); 243 isolate->megamorphic_cache_table()->InitMissHandler();
244 #endif 244 #endif
245 245
246 isolate->heap()->EnableGrowthControl(); 246 isolate->heap()->EnableGrowthControl();
247 isolate->set_init_callback_data(data); 247 isolate->set_init_callback_data(data);
248 Api::SetupAcquiredError(isolate); 248 Api::SetupAcquiredError(isolate);
249 if (FLAG_print_class_table) { 249 if (FLAG_print_class_table) {
250 isolate->class_table()->Print(); 250 isolate->class_table()->Print();
251 } 251 }
252 Service::SendIsolateStartupMessage(); 252 Service::SendIsolateStartupMessage();
253 // Create tag table.
254 isolate->set_tag_table(
255 GrowableObjectArray::Handle(GrowableObjectArray::New()));
253 return Error::null(); 256 return Error::null();
254 } 257 }
255 258
256 259
257 void Dart::RunShutdownCallback() { 260 void Dart::RunShutdownCallback() {
258 Isolate* isolate = Isolate::Current(); 261 Isolate* isolate = Isolate::Current();
259 void* callback_data = isolate->init_callback_data(); 262 void* callback_data = isolate->init_callback_data();
260 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); 263 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback();
261 Service::SendIsolateShutdownMessage(); 264 Service::SendIsolateShutdownMessage();
262 if (callback != NULL) { 265 if (callback != NULL) {
(...skipping 15 matching lines...) Expand all
278 return predefined_handles_->handles_.AllocateScopedHandle(); 281 return predefined_handles_->handles_.AllocateScopedHandle();
279 } 282 }
280 283
281 284
282 bool Dart::IsReadOnlyHandle(uword address) { 285 bool Dart::IsReadOnlyHandle(uword address) {
283 ASSERT(predefined_handles_ != NULL); 286 ASSERT(predefined_handles_ != NULL);
284 return predefined_handles_->handles_.IsValidScopedHandle(address); 287 return predefined_handles_->handles_.IsValidScopedHandle(address);
285 } 288 }
286 289
287 } // namespace dart 290 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/isolate.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698