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

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

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/vm/bootstrap_natives.h ('k') | runtime/vm/intrinsifier.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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 Api::SetupAcquiredError(isolate); 260 Api::SetupAcquiredError(isolate);
261 if (FLAG_print_class_table) { 261 if (FLAG_print_class_table) {
262 isolate->class_table()->Print(); 262 isolate->class_table()->Print();
263 } 263 }
264 264
265 265
266 Service::SendIsolateStartupMessage(); 266 Service::SendIsolateStartupMessage();
267 // Create tag table. 267 // Create tag table.
268 isolate->set_tag_table( 268 isolate->set_tag_table(
269 GrowableObjectArray::Handle(GrowableObjectArray::New())); 269 GrowableObjectArray::Handle(GrowableObjectArray::New()));
270 // Set up default UserTag.
271 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag());
272 isolate->set_current_tag(default_tag);
273
270 return Error::null(); 274 return Error::null();
271 } 275 }
272 276
273 277
274 void Dart::RunShutdownCallback() { 278 void Dart::RunShutdownCallback() {
275 Isolate* isolate = Isolate::Current(); 279 Isolate* isolate = Isolate::Current();
276 void* callback_data = isolate->init_callback_data(); 280 void* callback_data = isolate->init_callback_data();
277 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); 281 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback();
278 Service::SendIsolateShutdownMessage(); 282 Service::SendIsolateShutdownMessage();
279 if (callback != NULL) { 283 if (callback != NULL) {
(...skipping 15 matching lines...) Expand all
295 return predefined_handles_->handles_.AllocateScopedHandle(); 299 return predefined_handles_->handles_.AllocateScopedHandle();
296 } 300 }
297 301
298 302
299 bool Dart::IsReadOnlyHandle(uword address) { 303 bool Dart::IsReadOnlyHandle(uword address) {
300 ASSERT(predefined_handles_ != NULL); 304 ASSERT(predefined_handles_ != NULL);
301 return predefined_handles_->handles_.IsValidScopedHandle(address); 305 return predefined_handles_->handles_.IsValidScopedHandle(address);
302 } 306 }
303 307
304 } // namespace dart 308 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/intrinsifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698