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

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

Issue 327803003: Provide the isolate with a trace buffer, but do not allocate one by default. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/isolate.h ('k') | runtime/vm/trace_buffer.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/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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 spawn_state_(NULL), 346 spawn_state_(NULL),
347 is_runnable_(false), 347 is_runnable_(false),
348 gc_prologue_callback_(NULL), 348 gc_prologue_callback_(NULL),
349 gc_epilogue_callback_(NULL), 349 gc_epilogue_callback_(NULL),
350 defer_finalization_count_(0), 350 defer_finalization_count_(0),
351 deopt_context_(NULL), 351 deopt_context_(NULL),
352 stacktrace_(NULL), 352 stacktrace_(NULL),
353 stack_frame_index_(-1), 353 stack_frame_index_(-1),
354 cha_used_(false), 354 cha_used_(false),
355 object_id_ring_(NULL), 355 object_id_ring_(NULL),
356 trace_buffer_(NULL),
356 profiler_data_(NULL), 357 profiler_data_(NULL),
357 thread_state_(NULL), 358 thread_state_(NULL),
358 tag_table_(GrowableObjectArray::null()), 359 tag_table_(GrowableObjectArray::null()),
359 current_tag_(UserTag::null()), 360 current_tag_(UserTag::null()),
360 next_(NULL), 361 next_(NULL),
361 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) 362 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS)
362 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) 363 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT)
363 reusable_handles_() { 364 reusable_handles_() {
364 set_vm_tag(VMTag::kIdleTagId); 365 set_vm_tag(VMTag::kIdleTagId);
365 set_user_tag(UserTags::kDefaultUserTag); 366 set_user_tag(UserTags::kDefaultUserTag);
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 return func.raw(); 1232 return func.raw();
1232 } 1233 }
1233 1234
1234 1235
1235 void IsolateSpawnState::Cleanup() { 1236 void IsolateSpawnState::Cleanup() {
1236 SwitchIsolateScope switch_scope(isolate()); 1237 SwitchIsolateScope switch_scope(isolate());
1237 Dart::ShutdownIsolate(); 1238 Dart::ShutdownIsolate();
1238 } 1239 }
1239 1240
1240 } // namespace dart 1241 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/trace_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698