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

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

Issue 317773002: Fix Win64 build of Dart VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add fix for http://dartbug.com/19213 Created 6 years, 6 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 4790 matching lines...) Expand 10 before | Expand all | Expand 10 after
4801 } 4801 }
4802 4802
4803 4803
4804 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, 4804 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate,
4805 bool opt) const { 4805 bool opt) const {
4806 const intptr_t kNumInputs = 1; 4806 const intptr_t kNumInputs = 1;
4807 const intptr_t kNumTemps = 1; 4807 const intptr_t kNumTemps = 1;
4808 LocationSummary* result = new(isolate) LocationSummary( 4808 LocationSummary* result = new(isolate) LocationSummary(
4809 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); 4809 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall);
4810 result->set_in(0, Location::RequiresFpuRegister()); 4810 result->set_in(0, Location::RequiresFpuRegister());
4811 result->set_out(0, Location:: Location::RequiresRegister()); 4811 result->set_out(0, Location::RequiresRegister());
4812 result->set_temp(0, Location::RequiresRegister()); 4812 result->set_temp(0, Location::RequiresRegister());
4813 return result; 4813 return result;
4814 } 4814 }
4815 4815
4816 4816
4817 void DoubleToSmiInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4817 void DoubleToSmiInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
4818 Label* deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptDoubleToSmi); 4818 Label* deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptDoubleToSmi);
4819 Register result = locs()->out(0).reg(); 4819 Register result = locs()->out(0).reg();
4820 XmmRegister value = locs()->in(0).fpu_reg(); 4820 XmmRegister value = locs()->in(0).fpu_reg();
4821 Register temp = locs()->temp(0).reg(); 4821 Register temp = locs()->temp(0).reg();
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
5825 PcDescriptors::kOther, 5825 PcDescriptors::kOther,
5826 locs()); 5826 locs());
5827 __ Drop(ArgumentCount()); // Discard arguments. 5827 __ Drop(ArgumentCount()); // Discard arguments.
5828 } 5828 }
5829 5829
5830 } // namespace dart 5830 } // namespace dart
5831 5831
5832 #undef __ 5832 #undef __
5833 5833
5834 #endif // defined TARGET_ARCH_X64 5834 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698