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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 Code::Handle(I->object_store()->megamorphic_miss_code()); | 465 Code::Handle(I->object_store()->megamorphic_miss_code()); |
466 I->set_ic_miss_code(miss_code); | 466 I->set_ic_miss_code(miss_code); |
467 | 467 |
468 if (snapshot_buffer == NULL) { | 468 if (snapshot_buffer == NULL) { |
469 const Error& error = Error::Handle(I->object_store()->PreallocateObjects()); | 469 const Error& error = Error::Handle(I->object_store()->PreallocateObjects()); |
470 if (!error.IsNull()) { | 470 if (!error.IsNull()) { |
471 return error.raw(); | 471 return error.raw(); |
472 } | 472 } |
473 } | 473 } |
474 | 474 |
475 I->heap()->EnableGrowthControl(); | 475 I->heap()->InitGrowthControl(); |
476 I->set_init_callback_data(data); | 476 I->set_init_callback_data(data); |
477 Api::SetupAcquiredError(I); | 477 Api::SetupAcquiredError(I); |
478 if (FLAG_print_class_table) { | 478 if (FLAG_print_class_table) { |
479 I->class_table()->Print(); | 479 I->class_table()->Print(); |
480 } | 480 } |
481 | 481 |
482 ServiceIsolate::MaybeMakeServiceIsolate(I); | 482 ServiceIsolate::MaybeMakeServiceIsolate(I); |
483 if (!ServiceIsolate::IsServiceIsolate(I)) { | 483 if (!ServiceIsolate::IsServiceIsolate(I)) { |
484 I->message_handler()->set_should_pause_on_start( | 484 I->message_handler()->set_should_pause_on_start( |
485 FLAG_pause_isolates_on_start); | 485 FLAG_pause_isolates_on_start); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 return predefined_handles_->handles_.IsValidScopedHandle(address); | 559 return predefined_handles_->handles_.IsValidScopedHandle(address); |
560 } | 560 } |
561 | 561 |
562 | 562 |
563 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 563 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
564 ASSERT(predefined_handles_ != NULL); | 564 ASSERT(predefined_handles_ != NULL); |
565 return predefined_handles_->api_handles_.IsValidHandle(handle); | 565 return predefined_handles_->api_handles_.IsValidHandle(handle); |
566 } | 566 } |
567 | 567 |
568 } // namespace dart | 568 } // namespace dart |
OLD | NEW |