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

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

Issue 1173333007: Refactor some Timeline interfaces to be simpler and support streaming (Closed) Base URL: git@github.com:dart-lang/sdk.git@timeline2
Patch Set: Created 5 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
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 ServiceIsolate::SendIsolateStartupMessage(); 318 ServiceIsolate::SendIsolateStartupMessage();
319 isolate->debugger()->NotifyIsolateCreated(); 319 isolate->debugger()->NotifyIsolateCreated();
320 320
321 // Create tag table. 321 // Create tag table.
322 isolate->set_tag_table( 322 isolate->set_tag_table(
323 GrowableObjectArray::Handle(GrowableObjectArray::New())); 323 GrowableObjectArray::Handle(GrowableObjectArray::New()));
324 // Set up default UserTag. 324 // Set up default UserTag.
325 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag()); 325 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag());
326 isolate->set_current_tag(default_tag); 326 isolate->set_current_tag(default_tag);
327 327
328 isolate->SetTimelineEventBuffer(new TimelineEventBuffer()); 328 isolate->SetTimelineEventRecorder(new TimelineEventRingRecorder());
329 329
330 if (FLAG_keep_code) { 330 if (FLAG_keep_code) {
331 isolate->set_deoptimized_code_array( 331 isolate->set_deoptimized_code_array(
332 GrowableObjectArray::Handle(GrowableObjectArray::New())); 332 GrowableObjectArray::Handle(GrowableObjectArray::New()));
333 } 333 }
334 return Error::null(); 334 return Error::null();
335 } 335 }
336 336
337 337
338 void Dart::RunShutdownCallback() { 338 void Dart::RunShutdownCallback() {
(...skipping 20 matching lines...) Expand all
359 return predefined_handles_->handles_.AllocateScopedHandle(); 359 return predefined_handles_->handles_.AllocateScopedHandle();
360 } 360 }
361 361
362 362
363 bool Dart::IsReadOnlyHandle(uword address) { 363 bool Dart::IsReadOnlyHandle(uword address) {
364 ASSERT(predefined_handles_ != NULL); 364 ASSERT(predefined_handles_ != NULL);
365 return predefined_handles_->handles_.IsValidScopedHandle(address); 365 return predefined_handles_->handles_.IsValidScopedHandle(address);
366 } 366 }
367 367
368 } // namespace dart 368 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698