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

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

Issue 1544583002: For background compilation we copy ICData so that it is immutable during comnpilation. However, we … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: l Created 4 years, 12 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
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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 assembler()->Bind(&intrinsic_slow_path_label_); 1111 assembler()->Bind(&intrinsic_slow_path_label_);
1112 return false; 1112 return false;
1113 } 1113 }
1114 1114
1115 1115
1116 void FlowGraphCompiler::GenerateInstanceCall( 1116 void FlowGraphCompiler::GenerateInstanceCall(
1117 intptr_t deopt_id, 1117 intptr_t deopt_id,
1118 intptr_t token_pos, 1118 intptr_t token_pos,
1119 intptr_t argument_count, 1119 intptr_t argument_count,
1120 LocationSummary* locs, 1120 LocationSummary* locs,
1121 const ICData& ic_data) { 1121 const ICData& ic_data_in) {
1122 const ICData& ic_data = ICData::ZoneHandle(ic_data_in.Original());
1122 if (Compiler::always_optimize()) { 1123 if (Compiler::always_optimize()) {
1123 EmitSwitchableInstanceCall(ic_data, argument_count, 1124 EmitSwitchableInstanceCall(ic_data, argument_count,
1124 deopt_id, token_pos, locs); 1125 deopt_id, token_pos, locs);
1125 return; 1126 return;
1126 } 1127 }
1127 if (FLAG_always_megamorphic_calls) { 1128 if (FLAG_always_megamorphic_calls) {
1128 EmitMegamorphicInstanceCall(ic_data, argument_count, 1129 EmitMegamorphicInstanceCall(ic_data, argument_count,
1129 deopt_id, token_pos, locs); 1130 deopt_id, token_pos, locs);
1130 return; 1131 return;
1131 } 1132 }
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 1857
1857 1858
1858 void FlowGraphCompiler::FrameStateClear() { 1859 void FlowGraphCompiler::FrameStateClear() {
1859 ASSERT(!is_optimizing()); 1860 ASSERT(!is_optimizing());
1860 frame_state_.TruncateTo(0); 1861 frame_state_.TruncateTo(0);
1861 } 1862 }
1862 #endif 1863 #endif
1863 1864
1864 1865
1865 } // namespace dart 1866 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698