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

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

Issue 2032153003: Use clustered serialization for full snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: round2 Created 4 years, 5 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/clustered_snapshot.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/become.h" 7 #include "vm/become.h"
8 #include "vm/clustered_snapshot.h"
8 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
9 #include "vm/cpu.h" 10 #include "vm/cpu.h"
10 #include "vm/dart_api_state.h" 11 #include "vm/dart_api_state.h"
11 #include "vm/dart_entry.h" 12 #include "vm/dart_entry.h"
12 #include "vm/debugger.h" 13 #include "vm/debugger.h"
13 #include "vm/flags.h" 14 #include "vm/flags.h"
14 #include "vm/freelist.h" 15 #include "vm/freelist.h"
15 #include "vm/handles.h" 16 #include "vm/handles.h"
16 #include "vm/heap.h" 17 #include "vm/heap.h"
17 #include "vm/isolate.h" 18 #include "vm/isolate.h"
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 #if defined(_WIN64) 667 #if defined(_WIN64)
667 buffer.AddString(" x64-win"); 668 buffer.AddString(" x64-win");
668 #else 669 #else
669 buffer.AddString(" x64-sysv"); 670 buffer.AddString(" x64-sysv");
670 #endif 671 #endif
671 #elif defined(TARGET_ARCH_DBC) 672 #elif defined(TARGET_ARCH_DBC)
672 buffer.AddString(" dbc"); 673 buffer.AddString(" dbc");
673 #elif defined(TARGET_ARCH_DBC64) 674 #elif defined(TARGET_ARCH_DBC64)
674 buffer.AddString(" dbc64"); 675 buffer.AddString(" dbc64");
675 #endif 676 #endif
677 } else if (Snapshot::IsFull(kind)) {
678 #if defined(ARCH_IS_32BIT)
679 buffer.AddString(" 32");
680 #else
681 buffer.AddString(" 64");
682 #endif
676 } 683 }
677 684
678 return buffer.Steal(); 685 return buffer.Steal();
679 } 686 }
680 687
681 688
682 void Dart::RunShutdownCallback() { 689 void Dart::RunShutdownCallback() {
683 Isolate* isolate = Isolate::Current(); 690 Isolate* isolate = Isolate::Current();
684 void* callback_data = isolate->init_callback_data(); 691 void* callback_data = isolate->init_callback_data();
685 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); 692 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 return predefined_handles_->handles_.IsValidScopedHandle(address); 740 return predefined_handles_->handles_.IsValidScopedHandle(address);
734 } 741 }
735 742
736 743
737 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 744 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
738 ASSERT(predefined_handles_ != NULL); 745 ASSERT(predefined_handles_ != NULL);
739 return predefined_handles_->api_handles_.IsValidHandle(handle); 746 return predefined_handles_->api_handles_.IsValidHandle(handle);
740 } 747 }
741 748
742 } // namespace dart 749 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698