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

Side by Side Diff: runtime/vm/isolate.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/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/json.h" 9 #include "platform/json.h"
10 #include "lib/mirrors.h" 10 #include "lib/mirrors.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 stack_frame_index_(-1), 334 stack_frame_index_(-1),
335 cha_used_(false), 335 cha_used_(false),
336 object_id_ring_(NULL), 336 object_id_ring_(NULL),
337 profiler_data_(NULL), 337 profiler_data_(NULL),
338 thread_state_(NULL), 338 thread_state_(NULL),
339 next_(NULL), 339 next_(NULL),
340 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) 340 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS)
341 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) 341 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT)
342 reusable_handles_() { 342 reusable_handles_() {
343 set_vm_tag(VMTag::kIdleTagId); 343 set_vm_tag(VMTag::kIdleTagId);
344 set_user_tag(UserTags::kNoUserTag);
344 } 345 }
345 #undef REUSABLE_HANDLE_SCOPE_INIT 346 #undef REUSABLE_HANDLE_SCOPE_INIT
346 #undef REUSABLE_HANDLE_INITIALIZERS 347 #undef REUSABLE_HANDLE_INITIALIZERS
347 348
348 349
349 Isolate::~Isolate() { 350 Isolate::~Isolate() {
350 delete [] name_; 351 delete [] name_;
351 delete heap_; 352 delete heap_;
352 delete object_store_; 353 delete object_store_;
353 delete api_state_; 354 delete api_state_;
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 return func.raw(); 1134 return func.raw();
1134 } 1135 }
1135 1136
1136 1137
1137 void IsolateSpawnState::Cleanup() { 1138 void IsolateSpawnState::Cleanup() {
1138 SwitchIsolateScope switch_scope(isolate()); 1139 SwitchIsolateScope switch_scope(isolate());
1139 Dart::ShutdownIsolate(); 1140 Dart::ShutdownIsolate();
1140 } 1141 }
1141 1142
1142 } // namespace dart 1143 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698