| 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/become.h" | 7 #include "vm/become.h" |
| 8 #include "vm/clustered_snapshot.h" | 8 #include "vm/clustered_snapshot.h" |
| 9 #include "vm/code_observers.h" | 9 #include "vm/code_observers.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 } | 598 } |
| 599 | 599 |
| 600 I->heap()->InitGrowthControl(); | 600 I->heap()->InitGrowthControl(); |
| 601 I->set_init_callback_data(data); | 601 I->set_init_callback_data(data); |
| 602 Api::SetupAcquiredError(I); | 602 Api::SetupAcquiredError(I); |
| 603 if (FLAG_print_class_table) { | 603 if (FLAG_print_class_table) { |
| 604 I->class_table()->Print(); | 604 I->class_table()->Print(); |
| 605 } | 605 } |
| 606 | 606 |
| 607 bool is_kernel_isolate = false; | 607 bool is_kernel_isolate = false; |
| 608 USE(is_kernel_isolate); |
| 609 |
| 608 #ifndef DART_PRECOMPILED_RUNTIME | 610 #ifndef DART_PRECOMPILED_RUNTIME |
| 609 KernelIsolate::InitCallback(I); | 611 KernelIsolate::InitCallback(I); |
| 610 is_kernel_isolate = KernelIsolate::IsKernelIsolate(I); | 612 is_kernel_isolate = KernelIsolate::IsKernelIsolate(I); |
| 611 #endif | 613 #endif |
| 614 |
| 612 ServiceIsolate::MaybeMakeServiceIsolate(I); | 615 ServiceIsolate::MaybeMakeServiceIsolate(I); |
| 613 #if !defined(PRODUCT) | 616 #if !defined(PRODUCT) |
| 614 if (!ServiceIsolate::IsServiceIsolate(I) && !is_kernel_isolate) { | 617 if (!ServiceIsolate::IsServiceIsolate(I) && !is_kernel_isolate) { |
| 615 I->message_handler()->set_should_pause_on_start( | 618 I->message_handler()->set_should_pause_on_start( |
| 616 FLAG_pause_isolates_on_start); | 619 FLAG_pause_isolates_on_start); |
| 617 I->message_handler()->set_should_pause_on_exit(FLAG_pause_isolates_on_exit); | 620 I->message_handler()->set_should_pause_on_exit(FLAG_pause_isolates_on_exit); |
| 618 } | 621 } |
| 619 #endif // !defined(PRODUCT) | 622 #endif // !defined(PRODUCT) |
| 620 | 623 |
| 621 ServiceIsolate::SendIsolateStartupMessage(); | 624 ServiceIsolate::SendIsolateStartupMessage(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 ASSERT(predefined_handles_ != NULL); | 749 ASSERT(predefined_handles_ != NULL); |
| 747 return predefined_handles_->handles_.IsValidScopedHandle(address); | 750 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 748 } | 751 } |
| 749 | 752 |
| 750 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 753 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
| 751 ASSERT(predefined_handles_ != NULL); | 754 ASSERT(predefined_handles_ != NULL); |
| 752 return predefined_handles_->api_handles_.IsValidHandle(handle); | 755 return predefined_handles_->api_handles_.IsValidHandle(handle); |
| 753 } | 756 } |
| 754 | 757 |
| 755 } // namespace dart | 758 } // namespace dart |
| OLD | NEW |