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

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

Issue 1944213002: Support for taking full snapshots from 'dart', not just 'dart_bootstrap'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/benchmark_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 tds.FormatArgument(0, "snapshotSize", "%" Pd, snapshot->length()); 526 tds.FormatArgument(0, "snapshotSize", "%" Pd, snapshot->length());
527 tds.FormatArgument(1, "heapSize", "%" Pd64, 527 tds.FormatArgument(1, "heapSize", "%" Pd64,
528 I->heap()->UsedInWords(Heap::kOld) * kWordSize); 528 I->heap()->UsedInWords(Heap::kOld) * kWordSize);
529 }); 529 });
530 if (FLAG_trace_isolates) { 530 if (FLAG_trace_isolates) {
531 I->heap()->PrintSizes(); 531 I->heap()->PrintSizes();
532 MegamorphicCacheTable::PrintSizes(I); 532 MegamorphicCacheTable::PrintSizes(I);
533 } 533 }
534 } else { 534 } else {
535 ASSERT(snapshot_kind_ == Snapshot::kNone); 535 ASSERT(snapshot_kind_ == Snapshot::kNone);
536 // Populate the isolate's symbol table with all symbols from the
537 // VM isolate. We do this so that when we generate a full snapshot
538 // for the isolate we have a unified symbol table that we can then
539 // read into the VM isolate.
540 Symbols::AddPredefinedSymbolsToIsolate();
541 } 536 }
542 537
543 Object::VerifyBuiltinVtables(); 538 Object::VerifyBuiltinVtables();
544 DEBUG_ONLY(I->heap()->Verify(kForbidMarked)); 539 DEBUG_ONLY(I->heap()->Verify(kForbidMarked));
545 540
546 { 541 {
547 NOT_IN_PRODUCT(TimelineDurationScope tds(T, 542 NOT_IN_PRODUCT(TimelineDurationScope tds(T,
548 Timeline::GetIsolateStream(), "StubCode::Init")); 543 Timeline::GetIsolateStream(), "StubCode::Init"));
549 StubCode::Init(I); 544 StubCode::Init(I);
550 } 545 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 return predefined_handles_->handles_.IsValidScopedHandle(address); 650 return predefined_handles_->handles_.IsValidScopedHandle(address);
656 } 651 }
657 652
658 653
659 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 654 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
660 ASSERT(predefined_handles_ != NULL); 655 ASSERT(predefined_handles_ != NULL);
661 return predefined_handles_->api_handles_.IsValidHandle(handle); 656 return predefined_handles_->api_handles_.IsValidHandle(handle);
662 } 657 }
663 658
664 } // namespace dart 659 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698