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

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

Issue 11027026: Renaming Unboxed* IL instructions to shorter names. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed indentation Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 } else { 1826 } else {
1827 Label* deopt = compiler->AddDeoptStub(deopt_id_, kDeoptBinaryDoubleOp); 1827 Label* deopt = compiler->AddDeoptStub(deopt_id_, kDeoptBinaryDoubleOp);
1828 compiler->LoadDoubleOrSmiToXmm(result, 1828 compiler->LoadDoubleOrSmiToXmm(result,
1829 value, 1829 value,
1830 locs()->temp(0).reg(), 1830 locs()->temp(0).reg(),
1831 deopt); 1831 deopt);
1832 } 1832 }
1833 } 1833 }
1834 1834
1835 1835
1836 LocationSummary* UnboxedDoubleBinaryOpInstr::MakeLocationSummary() const { 1836 LocationSummary* BinaryDoubleOpInstr::MakeLocationSummary() const {
1837 const intptr_t kNumInputs = 2; 1837 const intptr_t kNumInputs = 2;
1838 const intptr_t kNumTemps = 0; 1838 const intptr_t kNumTemps = 0;
1839 LocationSummary* summary = 1839 LocationSummary* summary =
1840 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 1840 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
1841 summary->set_in(0, Location::RequiresXmmRegister()); 1841 summary->set_in(0, Location::RequiresXmmRegister());
1842 summary->set_in(1, Location::RequiresXmmRegister()); 1842 summary->set_in(1, Location::RequiresXmmRegister());
1843 summary->set_out(Location::SameAsFirstInput()); 1843 summary->set_out(Location::SameAsFirstInput());
1844 return summary; 1844 return summary;
1845 } 1845 }
1846 1846
1847 1847
1848 void UnboxedDoubleBinaryOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1848 void BinaryDoubleOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1849 XmmRegister left = locs()->in(0).xmm_reg(); 1849 XmmRegister left = locs()->in(0).xmm_reg();
1850 XmmRegister right = locs()->in(1).xmm_reg(); 1850 XmmRegister right = locs()->in(1).xmm_reg();
1851 1851
1852 ASSERT(locs()->out().xmm_reg() == left); 1852 ASSERT(locs()->out().xmm_reg() == left);
1853 1853
1854 switch (op_kind()) { 1854 switch (op_kind()) {
1855 case Token::kADD: __ addsd(left, right); break; 1855 case Token::kADD: __ addsd(left, right); break;
1856 case Token::kSUB: __ subsd(left, right); break; 1856 case Token::kSUB: __ subsd(left, right); break;
1857 case Token::kMUL: __ mulsd(left, right); break; 1857 case Token::kMUL: __ mulsd(left, right); break;
1858 case Token::kDIV: __ divsd(left, right); break; 1858 case Token::kDIV: __ divsd(left, right); break;
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 UNIMPLEMENTED(); 2158 UNIMPLEMENTED();
2159 return NULL; 2159 return NULL;
2160 } 2160 }
2161 2161
2162 2162
2163 void BoxIntegerInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2163 void BoxIntegerInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2164 UNIMPLEMENTED(); 2164 UNIMPLEMENTED();
2165 } 2165 }
2166 2166
2167 2167
2168 LocationSummary* UnboxedMintBinaryOpInstr::MakeLocationSummary() const { 2168 LocationSummary* BinaryMintOpInstr::MakeLocationSummary() const {
2169 UNIMPLEMENTED(); 2169 UNIMPLEMENTED();
2170 return NULL; 2170 return NULL;
2171 } 2171 }
2172 2172
2173 2173
2174 void UnboxedMintBinaryOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2174 void BinaryMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2175 UNIMPLEMENTED(); 2175 UNIMPLEMENTED();
2176 } 2176 }
2177 2177
2178 2178
2179 LocationSummary* UnboxedMintUnaryOpInstr::MakeLocationSummary() const { 2179 LocationSummary* UnaryMintOpInstr::MakeLocationSummary() const {
2180 UNIMPLEMENTED(); 2180 UNIMPLEMENTED();
2181 return NULL; 2181 return NULL;
2182 } 2182 }
2183 2183
2184 2184
2185 void UnboxedMintUnaryOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2185 void UnaryMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2186 UNIMPLEMENTED(); 2186 UNIMPLEMENTED();
2187 } 2187 }
2188 2188
2189 2189
2190 } // namespace dart 2190 } // namespace dart
2191 2191
2192 #undef __ 2192 #undef __
2193 2193
2194 #endif // defined TARGET_ARCH_X64 2194 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698