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

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

Issue 1332923005: Remove remaining uses of null's absolute address from non-IA32. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/assembler_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm.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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/cha.h" 10 #include "vm/cha.h"
(...skipping 10 matching lines...) Expand all
21 #include "vm/longjump.h" 21 #include "vm/longjump.h"
22 #include "vm/object_store.h" 22 #include "vm/object_store.h"
23 #include "vm/parser.h" 23 #include "vm/parser.h"
24 #include "vm/raw_object.h" 24 #include "vm/raw_object.h"
25 #include "vm/stack_frame.h" 25 #include "vm/stack_frame.h"
26 #include "vm/stub_code.h" 26 #include "vm/stub_code.h"
27 #include "vm/symbols.h" 27 #include "vm/symbols.h"
28 28
29 namespace dart { 29 namespace dart {
30 30
31 DEFINE_FLAG(bool, allow_absolute_addresses, true,
32 "Allow embedding absolute addresses in generated code.");
31 DEFINE_FLAG(bool, always_megamorphic_calls, false, 33 DEFINE_FLAG(bool, always_megamorphic_calls, false,
32 "Instance call always as megamorphic."); 34 "Instance call always as megamorphic.");
33 DEFINE_FLAG(bool, enable_simd_inline, true, 35 DEFINE_FLAG(bool, enable_simd_inline, true,
34 "Enable inlining of SIMD related method calls."); 36 "Enable inlining of SIMD related method calls.");
35 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, 37 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000,
36 "The minimum invocation count for a function."); 38 "The minimum invocation count for a function.");
37 DEFINE_FLAG(int, optimization_counter_scale, 2000, 39 DEFINE_FLAG(int, optimization_counter_scale, 2000,
38 "The scale of invocation count, by size of the function."); 40 "The scale of invocation count, by size of the function.");
39 DEFINE_FLAG(bool, polymorphic_with_deopt, true, 41 DEFINE_FLAG(bool, polymorphic_with_deopt, true,
40 "Polymorphic calls can be generated so that failure either causes " 42 "Polymorphic calls can be generated so that failure either causes "
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 117
116 static void PrecompileModeHandler(bool value) { 118 static void PrecompileModeHandler(bool value) {
117 if (value) { 119 if (value) {
118 NooptModeHandler(true); 120 NooptModeHandler(true);
119 FLAG_lazy_dispatchers = false; 121 FLAG_lazy_dispatchers = false;
120 FLAG_interpret_irregexp = true; 122 FLAG_interpret_irregexp = true;
121 FLAG_enable_mirrors = false; 123 FLAG_enable_mirrors = false;
122 FLAG_precompile_collect_closures = true; 124 FLAG_precompile_collect_closures = true;
123 FLAG_link_natives_lazily = true; 125 FLAG_link_natives_lazily = true;
124 FLAG_fields_may_be_reset = true; 126 FLAG_fields_may_be_reset = true;
127 FLAG_allow_absolute_addresses = false;
125 } 128 }
126 } 129 }
127 130
128 131
129 DEFINE_FLAG_HANDLER(PrecompileModeHandler, 132 DEFINE_FLAG_HANDLER(PrecompileModeHandler,
130 precompile, 133 precompile,
131 "Precompilation mode"); 134 "Precompilation mode");
132 135
133 136
134 // Assign locations to incoming arguments, i.e., values pushed above spill slots 137 // Assign locations to incoming arguments, i.e., values pushed above spill slots
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 1837
1835 1838
1836 void FlowGraphCompiler::FrameStateClear() { 1839 void FlowGraphCompiler::FrameStateClear() {
1837 ASSERT(!is_optimizing()); 1840 ASSERT(!is_optimizing());
1838 frame_state_.TruncateTo(0); 1841 frame_state_.TruncateTo(0);
1839 } 1842 }
1840 #endif 1843 #endif
1841 1844
1842 1845
1843 } // namespace dart 1846 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698