| OLD | NEW |
| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 6489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6500 | 6500 |
| 6501 | 6501 |
| 6502 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 6502 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
| 6503 bool opt) const { | 6503 bool opt) const { |
| 6504 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 6504 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
| 6505 } | 6505 } |
| 6506 | 6506 |
| 6507 | 6507 |
| 6508 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6508 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6509 if (!compiler->is_optimizing()) { | 6509 if (!compiler->is_optimizing()) { |
| 6510 if (FLAG_emit_edge_counters) { | 6510 if (FLAG_reorder_basic_blocks) { |
| 6511 compiler->EmitEdgeCounter(block()->preorder_number()); | 6511 compiler->EmitEdgeCounter(block()->preorder_number()); |
| 6512 } | 6512 } |
| 6513 // Add a deoptimization descriptor for deoptimizing instructions that | 6513 // Add a deoptimization descriptor for deoptimizing instructions that |
| 6514 // may be inserted before this instruction. | 6514 // may be inserted before this instruction. |
| 6515 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 6515 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
| 6516 GetDeoptId(), | 6516 GetDeoptId(), |
| 6517 TokenPosition::kNoSource); | 6517 TokenPosition::kNoSource); |
| 6518 } | 6518 } |
| 6519 if (HasParallelMove()) { | 6519 if (HasParallelMove()) { |
| 6520 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 6520 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6833 __ Drop(1); | 6833 __ Drop(1); |
| 6834 __ popl(result); | 6834 __ popl(result); |
| 6835 } | 6835 } |
| 6836 | 6836 |
| 6837 | 6837 |
| 6838 } // namespace dart | 6838 } // namespace dart |
| 6839 | 6839 |
| 6840 #undef __ | 6840 #undef __ |
| 6841 | 6841 |
| 6842 #endif // defined TARGET_ARCH_IA32 | 6842 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |