OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |