| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 isolate->megamorphic_cache_table()->InitMissHandler(); | 243 isolate->megamorphic_cache_table()->InitMissHandler(); |
| 244 #endif | 244 #endif |
| 245 | 245 |
| 246 isolate->heap()->EnableGrowthControl(); | 246 isolate->heap()->EnableGrowthControl(); |
| 247 isolate->set_init_callback_data(data); | 247 isolate->set_init_callback_data(data); |
| 248 Api::SetupAcquiredError(isolate); | 248 Api::SetupAcquiredError(isolate); |
| 249 if (FLAG_print_class_table) { | 249 if (FLAG_print_class_table) { |
| 250 isolate->class_table()->Print(); | 250 isolate->class_table()->Print(); |
| 251 } | 251 } |
| 252 Service::SendIsolateStartupMessage(); | 252 Service::SendIsolateStartupMessage(); |
| 253 // Create tag table. |
| 254 isolate->set_tag_table( |
| 255 GrowableObjectArray::Handle(GrowableObjectArray::New())); |
| 253 return Error::null(); | 256 return Error::null(); |
| 254 } | 257 } |
| 255 | 258 |
| 256 | 259 |
| 257 void Dart::RunShutdownCallback() { | 260 void Dart::RunShutdownCallback() { |
| 258 Isolate* isolate = Isolate::Current(); | 261 Isolate* isolate = Isolate::Current(); |
| 259 void* callback_data = isolate->init_callback_data(); | 262 void* callback_data = isolate->init_callback_data(); |
| 260 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); | 263 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); |
| 261 Service::SendIsolateShutdownMessage(); | 264 Service::SendIsolateShutdownMessage(); |
| 262 if (callback != NULL) { | 265 if (callback != NULL) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 278 return predefined_handles_->handles_.AllocateScopedHandle(); | 281 return predefined_handles_->handles_.AllocateScopedHandle(); |
| 279 } | 282 } |
| 280 | 283 |
| 281 | 284 |
| 282 bool Dart::IsReadOnlyHandle(uword address) { | 285 bool Dart::IsReadOnlyHandle(uword address) { |
| 283 ASSERT(predefined_handles_ != NULL); | 286 ASSERT(predefined_handles_ != NULL); |
| 284 return predefined_handles_->handles_.IsValidScopedHandle(address); | 287 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 285 } | 288 } |
| 286 | 289 |
| 287 } // namespace dart | 290 } // namespace dart |
| OLD | NEW |