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

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

Issue 1190123002: Noopt work: populate empty ICData of getters and setters with function's own class if that getter/s… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: f Created 5 years, 6 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 | « no previous file | runtime/vm/flow_graph_inliner.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DECLARE_FLAG(charp, stacktrace_filter); 62 DECLARE_FLAG(charp, stacktrace_filter);
63 DECLARE_FLAG(bool, support_debugger); 63 DECLARE_FLAG(bool, support_debugger);
64 DECLARE_FLAG(bool, use_field_guards); 64 DECLARE_FLAG(bool, use_field_guards);
65 DECLARE_FLAG(bool, use_cha_deopt); 65 DECLARE_FLAG(bool, use_cha_deopt);
66 DECLARE_FLAG(bool, use_osr); 66 DECLARE_FLAG(bool, use_osr);
67 DECLARE_FLAG(bool, warn_on_javascript_compatibility); 67 DECLARE_FLAG(bool, warn_on_javascript_compatibility);
68 68
69 69
70 static void NooptModeHandler(bool value) { 70 static void NooptModeHandler(bool value) {
71 if (value) { 71 if (value) {
72 FLAG_always_megamorphic_calls = value; 72 FLAG_always_megamorphic_calls = true;
73 FLAG_polymorphic_with_deopt = false;
73 FLAG_optimization_counter_threshold = -1; 74 FLAG_optimization_counter_threshold = -1;
74 FLAG_use_field_guards = false; 75 FLAG_use_field_guards = false;
75 FLAG_use_osr = false; 76 FLAG_use_osr = false;
76 FLAG_emit_edge_counters = false; 77 FLAG_emit_edge_counters = false;
77 FLAG_support_debugger = false; 78 FLAG_support_debugger = false;
78 FLAG_ic_range_profiling = false; 79 FLAG_ic_range_profiling = false;
79 FLAG_collect_code = false; 80 FLAG_collect_code = false;
80 FLAG_load_deferred_eagerly = true; 81 FLAG_load_deferred_eagerly = true;
81 FLAG_deoptimize_alot = false; // Used in some tests. 82 FLAG_deoptimize_alot = false; // Used in some tests.
82 FLAG_deoptimize_every = 0; // Used in some tests. 83 FLAG_deoptimize_every = 0; // Used in some tests.
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 1775
1775 1776
1776 void FlowGraphCompiler::FrameStateClear() { 1777 void FlowGraphCompiler::FrameStateClear() {
1777 ASSERT(!is_optimizing()); 1778 ASSERT(!is_optimizing());
1778 frame_state_.TruncateTo(0); 1779 frame_state_.TruncateTo(0);
1779 } 1780 }
1780 #endif 1781 #endif
1781 1782
1782 1783
1783 } // namespace dart 1784 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_inliner.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698