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

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

Issue 1739593002: Revert "Move precompilation-related flags to flags list." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/profiler_test.cc ('k') | runtime/vm/redundancy_elimination.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/native_entry.h" 5 #include "vm/native_entry.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
11 #include "vm/visitor.h" 11 #include "vm/visitor.h"
12 12
13 namespace dart { 13 namespace dart {
14 14
15 DECLARE_FLAG(int, optimization_counter_threshold);
16 DECLARE_FLAG(bool, use_field_guards);
17
15 #define NEW_OBJECT(type) \ 18 #define NEW_OBJECT(type) \
16 ((kind == Snapshot::kFull) ? reader->New##type() : type::New()) 19 ((kind == Snapshot::kFull) ? reader->New##type() : type::New())
17 20
18 #define NEW_OBJECT_WITH_LEN(type, len) \ 21 #define NEW_OBJECT_WITH_LEN(type, len) \
19 ((kind == Snapshot::kFull) ? reader->New##type(len) : type::New(len)) 22 ((kind == Snapshot::kFull) ? reader->New##type(len) : type::New(len))
20 23
21 #define NEW_OBJECT_WITH_LEN_SPACE(type, len, kind) \ 24 #define NEW_OBJECT_WITH_LEN_SPACE(type, len, kind) \
22 ((kind == Snapshot::kFull) ? \ 25 ((kind == Snapshot::kFull) ? \
23 reader->New##type(len) : type::New(len, HEAP_SPACE(kind))) 26 reader->New##type(len) : type::New(len, HEAP_SPACE(kind)))
24 27
(...skipping 3706 matching lines...) Expand 10 before | Expand all | Expand 10 after
3731 // We do not allow objects with native fields in an isolate message. 3734 // We do not allow objects with native fields in an isolate message.
3732 writer->SetWriteException(Exceptions::kArgument, 3735 writer->SetWriteException(Exceptions::kArgument,
3733 "Illegal argument in isolate message" 3736 "Illegal argument in isolate message"
3734 " : (object is a UserTag)"); 3737 " : (object is a UserTag)");
3735 } else { 3738 } else {
3736 UNREACHABLE(); 3739 UNREACHABLE();
3737 } 3740 }
3738 } 3741 }
3739 3742
3740 } // namespace dart 3743 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698