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

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

Issue 10534116: Implement kDoubleToDouble and kIntegerToDouble on ia32 and x64. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 #include "vm/locations.h" 10 #include "vm/locations.h"
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 RawAbstractType* UnarySmiOpComp::StaticType() const { 606 RawAbstractType* UnarySmiOpComp::StaticType() const {
607 return Type::IntInterface(); 607 return Type::IntInterface();
608 } 608 }
609 609
610 610
611 RawAbstractType* NumberNegateComp::StaticType() const { 611 RawAbstractType* NumberNegateComp::StaticType() const {
612 return Type::NumberInterface(); 612 return Type::NumberInterface();
613 } 613 }
614 614
615 615
616 RawAbstractType* ToDoubleComp::StaticType() const {
617 return Type::DoubleInterface();
618 }
619
620
616 // Shared code generation methods (EmitNativeCode, MakeLocationSummary, and 621 // Shared code generation methods (EmitNativeCode, MakeLocationSummary, and
617 // PrepareEntry). Only assembly code that can be shared across all architectures 622 // PrepareEntry). Only assembly code that can be shared across all architectures
618 // can be used. Machine specific register allocation and code generation 623 // can be used. Machine specific register allocation and code generation
619 // is located in intermediate_language_<arch>.cc 624 // is located in intermediate_language_<arch>.cc
620 625
621 626
622 // True iff. the arguments to a call will be properly pushed and can 627 // True iff. the arguments to a call will be properly pushed and can
623 // be popped after the call. 628 // be popped after the call.
624 template <typename T> static bool VerifyCallComputation(T* comp) { 629 template <typename T> static bool VerifyCallComputation(T* comp) {
625 // Argument values should be consecutive temps. 630 // Argument values should be consecutive temps.
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 StubCode::GetAllocationStubForClosure(closure_function)); 999 StubCode::GetAllocationStubForClosure(closure_function));
995 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); 1000 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint());
996 compiler->GenerateCall(token_index(), try_index(), &label, 1001 compiler->GenerateCall(token_index(), try_index(), &label,
997 PcDescriptors::kOther); 1002 PcDescriptors::kOther);
998 __ Drop(2); // Discard type arguments and receiver. 1003 __ Drop(2); // Discard type arguments and receiver.
999 } 1004 }
1000 1005
1001 #undef __ 1006 #undef __
1002 1007
1003 } // namespace dart 1008 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698