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

Side by Side Diff: src/x64/codegen-x64.h

Issue 1207006: Rename NumberInfo to TypeInfo.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: changed project files Created 10 years, 9 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 | « src/virtual-frame-inl.h ('k') | src/x64/codegen-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 NO_GENERIC_BINARY_FLAGS = 0, 660 NO_GENERIC_BINARY_FLAGS = 0,
661 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub. 661 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub.
662 }; 662 };
663 663
664 664
665 class GenericBinaryOpStub: public CodeStub { 665 class GenericBinaryOpStub: public CodeStub {
666 public: 666 public:
667 GenericBinaryOpStub(Token::Value op, 667 GenericBinaryOpStub(Token::Value op,
668 OverwriteMode mode, 668 OverwriteMode mode,
669 GenericBinaryFlags flags, 669 GenericBinaryFlags flags,
670 NumberInfo operands_type = NumberInfo::Unknown()) 670 TypeInfo operands_type = TypeInfo::Unknown())
671 : op_(op), 671 : op_(op),
672 mode_(mode), 672 mode_(mode),
673 flags_(flags), 673 flags_(flags),
674 args_in_registers_(false), 674 args_in_registers_(false),
675 args_reversed_(false), 675 args_reversed_(false),
676 static_operands_type_(operands_type), 676 static_operands_type_(operands_type),
677 runtime_operands_type_(BinaryOpIC::DEFAULT), 677 runtime_operands_type_(BinaryOpIC::DEFAULT),
678 name_(NULL) { 678 name_(NULL) {
679 use_sse3_ = CpuFeatures::IsSupported(SSE3); 679 use_sse3_ = CpuFeatures::IsSupported(SSE3);
680 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); 680 ASSERT(OpBits::is_valid(Token::NUM_TOKENS));
681 } 681 }
682 682
683 GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info) 683 GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info)
684 : op_(OpBits::decode(key)), 684 : op_(OpBits::decode(key)),
685 mode_(ModeBits::decode(key)), 685 mode_(ModeBits::decode(key)),
686 flags_(FlagBits::decode(key)), 686 flags_(FlagBits::decode(key)),
687 args_in_registers_(ArgsInRegistersBits::decode(key)), 687 args_in_registers_(ArgsInRegistersBits::decode(key)),
688 args_reversed_(ArgsReversedBits::decode(key)), 688 args_reversed_(ArgsReversedBits::decode(key)),
689 use_sse3_(SSE3Bits::decode(key)), 689 use_sse3_(SSE3Bits::decode(key)),
690 static_operands_type_(NumberInfo::ExpandedRepresentation( 690 static_operands_type_(TypeInfo::ExpandedRepresentation(
691 StaticTypeInfoBits::decode(key))), 691 StaticTypeInfoBits::decode(key))),
692 runtime_operands_type_(type_info), 692 runtime_operands_type_(type_info),
693 name_(NULL) { 693 name_(NULL) {
694 } 694 }
695 695
696 // Generate code to call the stub with the supplied arguments. This will add 696 // Generate code to call the stub with the supplied arguments. This will add
697 // code at the call site to prepare arguments either in registers or on the 697 // code at the call site to prepare arguments either in registers or on the
698 // stack together with the actual call. 698 // stack together with the actual call.
699 void GenerateCall(MacroAssembler* masm, Register left, Register right); 699 void GenerateCall(MacroAssembler* masm, Register left, Register right);
700 void GenerateCall(MacroAssembler* masm, Register left, Smi* right); 700 void GenerateCall(MacroAssembler* masm, Register left, Smi* right);
701 void GenerateCall(MacroAssembler* masm, Smi* left, Register right); 701 void GenerateCall(MacroAssembler* masm, Smi* left, Register right);
702 702
703 Result GenerateCall(MacroAssembler* masm, 703 Result GenerateCall(MacroAssembler* masm,
704 VirtualFrame* frame, 704 VirtualFrame* frame,
705 Result* left, 705 Result* left,
706 Result* right); 706 Result* right);
707 707
708 private: 708 private:
709 Token::Value op_; 709 Token::Value op_;
710 OverwriteMode mode_; 710 OverwriteMode mode_;
711 GenericBinaryFlags flags_; 711 GenericBinaryFlags flags_;
712 bool args_in_registers_; // Arguments passed in registers not on the stack. 712 bool args_in_registers_; // Arguments passed in registers not on the stack.
713 bool args_reversed_; // Left and right argument are swapped. 713 bool args_reversed_; // Left and right argument are swapped.
714 bool use_sse3_; 714 bool use_sse3_;
715 715
716 // Number type information of operands, determined by code generator. 716 // Number type information of operands, determined by code generator.
717 NumberInfo static_operands_type_; 717 TypeInfo static_operands_type_;
718 718
719 // Operand type information determined at runtime. 719 // Operand type information determined at runtime.
720 BinaryOpIC::TypeInfo runtime_operands_type_; 720 BinaryOpIC::TypeInfo runtime_operands_type_;
721 721
722 char* name_; 722 char* name_;
723 723
724 const char* GetName(); 724 const char* GetName();
725 725
726 #ifdef DEBUG 726 #ifdef DEBUG
727 void Print() { 727 void Print() {
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 void Print() { 937 void Print() {
938 PrintF("NumberToStringStub\n"); 938 PrintF("NumberToStringStub\n");
939 } 939 }
940 #endif 940 #endif
941 }; 941 };
942 942
943 943
944 } } // namespace v8::internal 944 } } // namespace v8::internal
945 945
946 #endif // V8_X64_CODEGEN_X64_H_ 946 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/virtual-frame-inl.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698