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

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

Issue 197057: Use SSE2 instructions when available on ia32 platform. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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 | « no previous file | src/ia32/assembler-ia32.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 void and_(const Operand& dst, const Immediate& x); 532 void and_(const Operand& dst, const Immediate& x);
533 533
534 void cmpb(const Operand& op, int8_t imm8); 534 void cmpb(const Operand& op, int8_t imm8);
535 void cmpb_al(const Operand& op); 535 void cmpb_al(const Operand& op);
536 void cmpw_ax(const Operand& op); 536 void cmpw_ax(const Operand& op);
537 void cmpw(const Operand& op, Immediate imm16); 537 void cmpw(const Operand& op, Immediate imm16);
538 void cmp(Register reg, int32_t imm32); 538 void cmp(Register reg, int32_t imm32);
539 void cmp(Register reg, Handle<Object> handle); 539 void cmp(Register reg, Handle<Object> handle);
540 void cmp(Register reg, const Operand& op); 540 void cmp(Register reg, const Operand& op);
541 void cmp(const Operand& op, const Immediate& imm); 541 void cmp(const Operand& op, const Immediate& imm);
542 void cmp(const Operand& op, Handle<Object> handle);
542 543
543 void dec_b(Register dst); 544 void dec_b(Register dst);
544 545
545 void dec(Register dst); 546 void dec(Register dst);
546 void dec(const Operand& dst); 547 void dec(const Operand& dst);
547 548
548 void cdq(); 549 void cdq();
549 550
550 void idiv(Register src); 551 void idiv(Register src);
551 552
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 void cvttss2si(Register dst, const Operand& src); 713 void cvttss2si(Register dst, const Operand& src);
713 void cvttsd2si(Register dst, const Operand& src); 714 void cvttsd2si(Register dst, const Operand& src);
714 715
715 void cvtsi2sd(XMMRegister dst, const Operand& src); 716 void cvtsi2sd(XMMRegister dst, const Operand& src);
716 717
717 void addsd(XMMRegister dst, XMMRegister src); 718 void addsd(XMMRegister dst, XMMRegister src);
718 void subsd(XMMRegister dst, XMMRegister src); 719 void subsd(XMMRegister dst, XMMRegister src);
719 void mulsd(XMMRegister dst, XMMRegister src); 720 void mulsd(XMMRegister dst, XMMRegister src);
720 void divsd(XMMRegister dst, XMMRegister src); 721 void divsd(XMMRegister dst, XMMRegister src);
721 722
723 void comisd(XMMRegister dst, XMMRegister src);
724
722 // Use either movsd or movlpd. 725 // Use either movsd or movlpd.
723 void movdbl(XMMRegister dst, const Operand& src); 726 void movdbl(XMMRegister dst, const Operand& src);
724 void movdbl(const Operand& dst, XMMRegister src); 727 void movdbl(const Operand& dst, XMMRegister src);
725 728
726 // Debugging 729 // Debugging
727 void Print(); 730 void Print();
728 731
729 // Check the code size generated from label to here. 732 // Check the code size generated from label to here.
730 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } 733 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); }
731 734
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 private: 868 private:
866 Assembler* assembler_; 869 Assembler* assembler_;
867 #ifdef DEBUG 870 #ifdef DEBUG
868 int space_before_; 871 int space_before_;
869 #endif 872 #endif
870 }; 873 };
871 874
872 } } // namespace v8::internal 875 } } // namespace v8::internal
873 876
874 #endif // V8_IA32_ASSEMBLER_IA32_H_ 877 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698