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

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
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 isolate->set_init_callback_data(data); 248 isolate->set_init_callback_data(data);
249 Api::SetupAcquiredError(isolate); 249 Api::SetupAcquiredError(isolate);
250 if (FLAG_print_class_table) { 250 if (FLAG_print_class_table) {
251 isolate->class_table()->Print(); 251 isolate->class_table()->Print();
252 } 252 }
253 253
254 // Setup for profiling. 254 // Setup for profiling.
255 Profiler::InitProfilingForIsolate(isolate); 255 Profiler::InitProfilingForIsolate(isolate);
256 256
257 Service::SendIsolateStartupMessage(); 257 Service::SendIsolateStartupMessage();
258 // Create tag table.
259 isolate->set_tag_table(
260 GrowableObjectArray::Handle(GrowableObjectArray::New()));
258 return Error::null(); 261 return Error::null();
259 } 262 }
260 263
261 264
262 void Dart::RunShutdownCallback() { 265 void Dart::RunShutdownCallback() {
263 Isolate* isolate = Isolate::Current(); 266 Isolate* isolate = Isolate::Current();
264 void* callback_data = isolate->init_callback_data(); 267 void* callback_data = isolate->init_callback_data();
265 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); 268 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback();
266 Service::SendIsolateShutdownMessage(); 269 Service::SendIsolateShutdownMessage();
267 if (callback != NULL) { 270 if (callback != NULL) {
(...skipping 15 matching lines...) Expand all
283 return predefined_handles_->handles_.AllocateScopedHandle(); 286 return predefined_handles_->handles_.AllocateScopedHandle();
284 } 287 }
285 288
286 289
287 bool Dart::IsReadOnlyHandle(uword address) { 290 bool Dart::IsReadOnlyHandle(uword address) {
288 ASSERT(predefined_handles_ != NULL); 291 ASSERT(predefined_handles_ != NULL);
289 return predefined_handles_->handles_.IsValidScopedHandle(address); 292 return predefined_handles_->handles_.IsValidScopedHandle(address);
290 } 293 }
291 294
292 } // namespace dart 295 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698