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

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

Issue 1731743003: Move precompilation-related flags to flags list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: make print_stop_message default false to fix build Created 4 years, 9 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/regexp.cc ('k') | runtime/vm/snapshot_test.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 10 matching lines...) Expand all
21 #include "vm/verified_memory.h" 21 #include "vm/verified_memory.h"
22 #include "vm/version.h" 22 #include "vm/version.h"
23 23
24 // We currently only expect the Dart mutator to read snapshots. 24 // We currently only expect the Dart mutator to read snapshots.
25 #define ASSERT_NO_SAFEPOINT_SCOPE() \ 25 #define ASSERT_NO_SAFEPOINT_SCOPE() \
26 isolate()->AssertCurrentThreadIsMutator(); \ 26 isolate()->AssertCurrentThreadIsMutator(); \
27 ASSERT(thread()->no_safepoint_scope_depth() != 0) 27 ASSERT(thread()->no_safepoint_scope_depth() != 0)
28 28
29 namespace dart { 29 namespace dart {
30 30
31 DECLARE_FLAG(bool, use_field_guards);
32
33
34 static const int kNumVmIsolateSnapshotReferences = 32 * KB; 31 static const int kNumVmIsolateSnapshotReferences = 32 * KB;
35 static const int kNumInitialReferencesInFullSnapshot = 160 * KB; 32 static const int kNumInitialReferencesInFullSnapshot = 160 * KB;
36 static const int kNumInitialReferences = 64; 33 static const int kNumInitialReferences = 64;
37 34
38 35
39 static bool IsSingletonClassId(intptr_t class_id) { 36 static bool IsSingletonClassId(intptr_t class_id) {
40 // Check if this is a singleton object class which is shared by all isolates. 37 // Check if this is a singleton object class which is shared by all isolates.
41 return ((class_id >= kClassCid && class_id <= kUnwindErrorCid) || 38 return ((class_id >= kClassCid && class_id <= kUnwindErrorCid) ||
42 (class_id >= kNullCid && class_id <= kVoidCid)); 39 (class_id >= kNullCid && class_id <= kVoidCid));
43 } 40 }
(...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after
2678 if (setjmp(*jump.Set()) == 0) { 2675 if (setjmp(*jump.Set()) == 0) {
2679 NoSafepointScope no_safepoint; 2676 NoSafepointScope no_safepoint;
2680 WriteObject(obj.raw()); 2677 WriteObject(obj.raw());
2681 } else { 2678 } else {
2682 ThrowException(exception_type(), exception_msg()); 2679 ThrowException(exception_type(), exception_msg());
2683 } 2680 }
2684 } 2681 }
2685 2682
2686 2683
2687 } // namespace dart 2684 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/regexp.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698