| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 356 } |
| 357 } | 357 } |
| 358 | 358 |
| 359 I->heap()->EnableGrowthControl(); | 359 I->heap()->EnableGrowthControl(); |
| 360 I->set_init_callback_data(data); | 360 I->set_init_callback_data(data); |
| 361 Api::SetupAcquiredError(I); | 361 Api::SetupAcquiredError(I); |
| 362 if (FLAG_print_class_table) { | 362 if (FLAG_print_class_table) { |
| 363 I->class_table()->Print(); | 363 I->class_table()->Print(); |
| 364 } | 364 } |
| 365 | 365 |
| 366 ServiceIsolate::MaybeInjectVMServiceLibrary(I); | 366 ServiceIsolate::MaybeMakeServiceIsolate(I); |
| 367 | 367 |
| 368 ServiceIsolate::SendIsolateStartupMessage(); | 368 ServiceIsolate::SendIsolateStartupMessage(); |
| 369 I->debugger()->NotifyIsolateCreated(); | 369 I->debugger()->NotifyIsolateCreated(); |
| 370 | 370 |
| 371 // Create tag table. | 371 // Create tag table. |
| 372 I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New())); | 372 I->set_tag_table(GrowableObjectArray::Handle(GrowableObjectArray::New())); |
| 373 // Set up default UserTag. | 373 // Set up default UserTag. |
| 374 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag()); | 374 const UserTag& default_tag = UserTag::Handle(UserTag::DefaultTag()); |
| 375 I->set_current_tag(default_tag); | 375 I->set_current_tag(default_tag); |
| 376 | 376 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 return predefined_handles_->handles_.IsValidScopedHandle(address); | 419 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 420 } | 420 } |
| 421 | 421 |
| 422 | 422 |
| 423 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 423 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
| 424 ASSERT(predefined_handles_ != NULL); | 424 ASSERT(predefined_handles_ != NULL); |
| 425 return predefined_handles_->api_handles_.IsValidHandle(handle); | 425 return predefined_handles_->api_handles_.IsValidHandle(handle); |
| 426 } | 426 } |
| 427 | 427 |
| 428 } // namespace dart | 428 } // namespace dart |
| OLD | NEW |