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

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

Issue 1343383003: VM: Store edge counters in one per-function array. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/intermediate_language_arm64.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 6624 matching lines...) Expand 10 before | Expand all | Expand 10 after
6635 6635
6636 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, 6636 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone,
6637 bool opt) const { 6637 bool opt) const {
6638 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); 6638 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
6639 } 6639 }
6640 6640
6641 6641
6642 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6642 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6643 if (!compiler->is_optimizing()) { 6643 if (!compiler->is_optimizing()) {
6644 if (FLAG_emit_edge_counters) { 6644 if (FLAG_emit_edge_counters) {
6645 compiler->EmitEdgeCounter(); 6645 compiler->EmitEdgeCounter(block()->preorder_number());
6646 } 6646 }
6647 // Add a deoptimization descriptor for deoptimizing instructions that 6647 // Add a deoptimization descriptor for deoptimizing instructions that
6648 // may be inserted before this instruction. On ARM this descriptor 6648 // may be inserted before this instruction.
6649 // points after the edge counter code so that we can reuse the same
6650 // pattern matching code as at call sites, which matches backwards from
6651 // the end of the pattern.
6652 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, 6649 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
6653 GetDeoptId(), 6650 GetDeoptId(),
6654 Scanner::kNoSourcePos); 6651 Scanner::kNoSourcePos);
6655 } 6652 }
6656 if (HasParallelMove()) { 6653 if (HasParallelMove()) {
6657 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); 6654 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move());
6658 } 6655 }
6659 6656
6660 // We can fall through if the successor is the next block in the list. 6657 // We can fall through if the successor is the next block in the list.
6661 // Otherwise, we need a jump. 6658 // Otherwise, we need a jump.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
6860 1, 6857 1,
6861 locs()); 6858 locs());
6862 __ Drop(1); 6859 __ Drop(1);
6863 __ Pop(result); 6860 __ Pop(result);
6864 } 6861 }
6865 6862
6866 6863
6867 } // namespace dart 6864 } // namespace dart
6868 6865
6869 #endif // defined TARGET_ARCH_ARM 6866 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698