Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: runtime/vm/dart.cc

Issue 1387043002: Make dart:_vmservice a proper builtin library (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698