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

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

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix build after merge Created 4 years, 10 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/intermediate_language.cc ('k') | runtime/vm/parser.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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 DEFINE_FLAG(int, huge_method_cutoff_in_code_size, 200000, 48 DEFINE_FLAG(int, huge_method_cutoff_in_code_size, 200000,
49 "Huge method cutoff in unoptimized code size (in bytes)."); 49 "Huge method cutoff in unoptimized code size (in bytes).");
50 DEFINE_FLAG(int, huge_method_cutoff_in_tokens, 20000, 50 DEFINE_FLAG(int, huge_method_cutoff_in_tokens, 20000,
51 "Huge method cutoff in tokens: Disables optimizations for huge methods."); 51 "Huge method cutoff in tokens: Disables optimizations for huge methods.");
52 DEFINE_FLAG(bool, overlap_type_arguments, true, 52 DEFINE_FLAG(bool, overlap_type_arguments, true,
53 "When possible, partially or fully overlap the type arguments of a type " 53 "When possible, partially or fully overlap the type arguments of a type "
54 "with the type arguments of its super type."); 54 "with the type arguments of its super type.");
55 DEFINE_FLAG(bool, show_internal_names, false, 55 DEFINE_FLAG(bool, show_internal_names, false,
56 "Show names of internal classes (e.g. \"OneByteString\") in error messages " 56 "Show names of internal classes (e.g. \"OneByteString\") in error messages "
57 "instead of showing the corresponding interface names (e.g. \"String\")"); 57 "instead of showing the corresponding interface names (e.g. \"String\")");
58 DEFINE_FLAG(bool, trace_cha, false, "Trace CHA operations");
59 DEFINE_FLAG(bool, use_field_guards, true, "Guard field cids."); 58 DEFINE_FLAG(bool, use_field_guards, true, "Guard field cids.");
60 DEFINE_FLAG(bool, use_lib_cache, true, "Use library name cache"); 59 DEFINE_FLAG(bool, use_lib_cache, true, "Use library name cache");
61 DEFINE_FLAG(bool, trace_field_guards, false, "Trace changes in field's cids.");
62 DEFINE_FLAG(bool, ignore_patch_signature_mismatch, false, 60 DEFINE_FLAG(bool, ignore_patch_signature_mismatch, false,
63 "Ignore patch file member signature mismatch."); 61 "Ignore patch file member signature mismatch.");
64 62
65 DECLARE_FLAG(charp, coverage_dir); 63 DECLARE_FLAG(charp, coverage_dir);
66 DECLARE_FLAG(bool, load_deferred_eagerly); 64 DECLARE_FLAG(bool, load_deferred_eagerly);
67 DECLARE_FLAG(bool, precompilation); 65 DECLARE_FLAG(bool, precompilation);
68 DECLARE_FLAG(bool, show_invisible_frames); 66 DECLARE_FLAG(bool, show_invisible_frames);
69 DECLARE_FLAG(bool, trace_deoptimization); 67 DECLARE_FLAG(bool, trace_deoptimization);
70 DECLARE_FLAG(bool, trace_deoptimization_verbose); 68 DECLARE_FLAG(bool, trace_deoptimization_verbose);
71 DECLARE_FLAG(bool, write_protect_code); 69 DECLARE_FLAG(bool, write_protect_code);
(...skipping 21401 matching lines...) Expand 10 before | Expand all | Expand 10 after
21473 return UserTag::null(); 21471 return UserTag::null();
21474 } 21472 }
21475 21473
21476 21474
21477 const char* UserTag::ToCString() const { 21475 const char* UserTag::ToCString() const {
21478 const String& tag_label = String::Handle(label()); 21476 const String& tag_label = String::Handle(label());
21479 return tag_label.ToCString(); 21477 return tag_label.ToCString();
21480 } 21478 }
21481 21479
21482 } // namespace dart 21480 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698