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

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

Issue 513213002: Generate some intrinsics using our IR. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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_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 "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return FLAG_enable_simd_inline; 52 return FLAG_enable_simd_inline;
53 } 53 }
54 54
55 55
56 56
57 bool FlowGraphCompiler::SupportsSinCos() { 57 bool FlowGraphCompiler::SupportsSinCos() {
58 return true; 58 return true;
59 } 59 }
60 60
61 61
62 void FlowGraphCompiler::EnterIntrinsicMode() {
63 ASSERT(!intrinsic_mode());
64 intrinsic_mode_ = true;
65 assembler()->set_allow_constant_pool(false);
66 }
67
68
69 void FlowGraphCompiler::ExitIntrinsicMode() {
70 ASSERT(intrinsic_mode());
71 intrinsic_mode_ = false;
72 assembler()->set_allow_constant_pool(true);
73 }
74
75
62 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 76 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
63 DeoptInfoBuilder* builder, 77 DeoptInfoBuilder* builder,
64 const Array& deopt_table) { 78 const Array& deopt_table) {
65 if (deopt_env_ == NULL) { 79 if (deopt_env_ == NULL) {
66 return DeoptInfo::null(); 80 return DeoptInfo::null();
67 } 81 }
68 82
69 intptr_t stack_height = compiler->StackSize(); 83 intptr_t stack_height = compiler->StackSize();
70 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 84 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
71 85
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 void ParallelMoveResolver::Exchange(Register reg, const Address& mem) { 1704 void ParallelMoveResolver::Exchange(Register reg, const Address& mem) {
1691 __ Exchange(reg, mem); 1705 __ Exchange(reg, mem);
1692 } 1706 }
1693 1707
1694 1708
1695 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1709 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1696 __ Exchange(mem1, mem2); 1710 __ Exchange(mem1, mem2);
1697 } 1711 }
1698 1712
1699 1713
1700 void ParallelMoveResolver::Exchange(Register reg, intptr_t stack_offset) { 1714 void ParallelMoveResolver::Exchange(Register reg,
1715 Register base_reg,
1716 intptr_t stack_offset) {
1701 UNREACHABLE(); 1717 UNREACHABLE();
1702 } 1718 }
1703 1719
1704 1720
1705 void ParallelMoveResolver::Exchange(intptr_t stack_offset1, 1721 void ParallelMoveResolver::Exchange(Register base_reg1,
1722 intptr_t stack_offset1,
1723 Register base_reg2,
1706 intptr_t stack_offset2) { 1724 intptr_t stack_offset2) {
1707 UNREACHABLE(); 1725 UNREACHABLE();
1708 } 1726 }
1709 1727
1710 1728
1711 void ParallelMoveResolver::SpillScratch(Register reg) { 1729 void ParallelMoveResolver::SpillScratch(Register reg) {
1712 __ pushq(reg); 1730 __ pushq(reg);
1713 } 1731 }
1714 1732
1715 1733
(...skipping 12 matching lines...) Expand all
1728 __ movups(reg, Address(RSP, 0)); 1746 __ movups(reg, Address(RSP, 0));
1729 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1747 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1730 } 1748 }
1731 1749
1732 1750
1733 #undef __ 1751 #undef __
1734 1752
1735 } // namespace dart 1753 } // namespace dart
1736 1754
1737 #endif // defined TARGET_ARCH_X64 1755 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698