| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 Immediate(FLAG_optimization_counter_threshold)); | 915 Immediate(FLAG_optimization_counter_threshold)); |
| 916 ASSERT(function_reg == RDI); | 916 ASSERT(function_reg == RDI); |
| 917 __ j(GREATER_EQUAL, &StubCode::OptimizeFunctionLabel()); | 917 __ j(GREATER_EQUAL, &StubCode::OptimizeFunctionLabel()); |
| 918 } | 918 } |
| 919 } else { | 919 } else { |
| 920 AddCurrentDescriptor(PcDescriptors::kEntryPatch, | 920 AddCurrentDescriptor(PcDescriptors::kEntryPatch, |
| 921 Isolate::kNoDeoptId, | 921 Isolate::kNoDeoptId, |
| 922 0); // No token position. | 922 0); // No token position. |
| 923 } | 923 } |
| 924 __ Comment("Enter frame"); | 924 __ Comment("Enter frame"); |
| 925 AssemblerMacros::EnterDartFrame(assembler(), (StackSize() * kWordSize)); | 925 __ EnterDartFrame((StackSize() * kWordSize)); |
| 926 } | 926 } |
| 927 | 927 |
| 928 | 928 |
| 929 void FlowGraphCompiler::CompileGraph() { | 929 void FlowGraphCompiler::CompileGraph() { |
| 930 InitCompiler(); | 930 InitCompiler(); |
| 931 if (TryIntrinsify()) { | 931 if (TryIntrinsify()) { |
| 932 // Although this intrinsified code will never be patched, it must satisfy | 932 // Although this intrinsified code will never be patched, it must satisfy |
| 933 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum | 933 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum |
| 934 // code size, and nop(2) increases the minimum code size appropriately. | 934 // code size, and nop(2) increases the minimum code size appropriately. |
| 935 __ nop(2); | 935 __ nop(2); |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 1695 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { |
| 1696 __ Exchange(mem1, mem2); | 1696 __ Exchange(mem1, mem2); |
| 1697 } | 1697 } |
| 1698 | 1698 |
| 1699 | 1699 |
| 1700 #undef __ | 1700 #undef __ |
| 1701 | 1701 |
| 1702 } // namespace dart | 1702 } // namespace dart |
| 1703 | 1703 |
| 1704 #endif // defined TARGET_ARCH_X64 | 1704 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |