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

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

Issue 391051: Allow a platform to indicate that some CPU features are always... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 class GenericBinaryOpStub: public CodeStub { 651 class GenericBinaryOpStub: public CodeStub {
652 public: 652 public:
653 GenericBinaryOpStub(Token::Value op, 653 GenericBinaryOpStub(Token::Value op,
654 OverwriteMode mode, 654 OverwriteMode mode,
655 GenericBinaryFlags flags) 655 GenericBinaryFlags flags)
656 : op_(op), 656 : op_(op),
657 mode_(mode), 657 mode_(mode),
658 flags_(flags), 658 flags_(flags),
659 args_in_registers_(false), 659 args_in_registers_(false),
660 args_reversed_(false) { 660 args_reversed_(false) {
661 use_sse3_ = CpuFeatures::IsSupported(CpuFeatures::SSE3); 661 use_sse3_ = CpuFeatures::IsSupported(SSE3);
662 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); 662 ASSERT(OpBits::is_valid(Token::NUM_TOKENS));
663 } 663 }
664 664
665 // Generate code to call the stub with the supplied arguments. This will add 665 // Generate code to call the stub with the supplied arguments. This will add
666 // code at the call site to prepare arguments either in registers or on the 666 // code at the call site to prepare arguments either in registers or on the
667 // stack together with the actual call. 667 // stack together with the actual call.
668 void GenerateCall(MacroAssembler* masm, Register left, Register right); 668 void GenerateCall(MacroAssembler* masm, Register left, Register right);
669 void GenerateCall(MacroAssembler* masm, Register left, Smi* right); 669 void GenerateCall(MacroAssembler* masm, Register left, Smi* right);
670 void GenerateCall(MacroAssembler* masm, Smi* left, Register right); 670 void GenerateCall(MacroAssembler* masm, Smi* left, Register right);
671 671
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 void SetArgsReversed() { args_reversed_ = true; } 728 void SetArgsReversed() { args_reversed_ = true; }
729 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 729 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
730 bool HasArgumentsInRegisters() { return args_in_registers_; } 730 bool HasArgumentsInRegisters() { return args_in_registers_; }
731 bool HasArgumentsReversed() { return args_reversed_; } 731 bool HasArgumentsReversed() { return args_reversed_; }
732 }; 732 };
733 733
734 734
735 } } // namespace v8::internal 735 } } // namespace v8::internal
736 736
737 #endif // V8_IA32_CODEGEN_IA32_H_ 737 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698