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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 222133003: Update Integer32ToSmiField, SmiToInteger32, and SmiComprare to support 31-bit SMI for x32 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 void SmiOr(Register dst, Register src1, Register src2); 650 void SmiOr(Register dst, Register src1, Register src2);
651 void SmiXor(Register dst, Register src1, Register src2); 651 void SmiXor(Register dst, Register src1, Register src2);
652 void SmiAndConstant(Register dst, Register src1, Smi* constant); 652 void SmiAndConstant(Register dst, Register src1, Smi* constant);
653 void SmiOrConstant(Register dst, Register src1, Smi* constant); 653 void SmiOrConstant(Register dst, Register src1, Smi* constant);
654 void SmiXorConstant(Register dst, Register src1, Smi* constant); 654 void SmiXorConstant(Register dst, Register src1, Smi* constant);
655 655
656 void SmiShiftLeftConstant(Register dst, 656 void SmiShiftLeftConstant(Register dst,
657 Register src, 657 Register src,
658 int shift_value); 658 int shift_value);
659 void SmiShiftLogicalRightConstant(Register dst, 659 void SmiShiftLogicalRightConstant(Register dst,
660 Register src, 660 Register src,
661 int shift_value, 661 int shift_value,
662 Label* on_not_smi_result, 662 Label* on_not_smi_result,
663 Label::Distance near_jump = Label::kFar); 663 Label::Distance near_jump = Label::kFar);
664 void SmiShiftArithmeticRightConstant(Register dst, 664 void SmiShiftArithmeticRightConstant(Register dst,
665 Register src, 665 Register src,
666 int shift_value); 666 int shift_value);
667 667
668 // Shifts a smi value to the left, and returns the result if that is a smi. 668 // Shifts a smi value to the left, and returns the result if that is a smi.
669 // Uses and clobbers rcx, so dst may not be rcx. 669 // Uses and clobbers rcx, so dst may not be rcx.
670 void SmiShiftLeft(Register dst, 670 void SmiShiftLeft(Register dst,
671 Register src1, 671 Register src1,
672 Register src2); 672 Register src2);
673 // Shifts a smi value to the right, shifting in zero bits at the top, and 673 // Shifts a smi value to the right, shifting in zero bits at the top, and
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 masm->popfq(); \ 1619 masm->popfq(); \
1620 } \ 1620 } \
1621 masm-> 1621 masm->
1622 #else 1622 #else
1623 #define ACCESS_MASM(masm) masm-> 1623 #define ACCESS_MASM(masm) masm->
1624 #endif 1624 #endif
1625 1625
1626 } } // namespace v8::internal 1626 } } // namespace v8::internal
1627 1627
1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698