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

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

Issue 10662045: Port r7868 (constant masking) to x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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
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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 // --------------------------------------------------------------------------- 767 // ---------------------------------------------------------------------------
768 // Macro instructions. 768 // Macro instructions.
769 769
770 // Load a register with a long value as efficiently as possible. 770 // Load a register with a long value as efficiently as possible.
771 void Set(Register dst, int64_t x); 771 void Set(Register dst, int64_t x);
772 void Set(const Operand& dst, int64_t x); 772 void Set(const Operand& dst, int64_t x);
773 773
774 // Move if the registers are not identical. 774 // Move if the registers are not identical.
775 void Move(Register target, Register source); 775 void Move(Register target, Register source);
776 776
777 // Support for constant splitting.
778 bool IsUnsafeInt(const int x);
779 void SafeSet(Register dst, const int src);
780 void SafeMove(Register dst, Smi* src);
781 void SafePush(Smi* src);
782
777 // Bit-field support. 783 // Bit-field support.
778 void TestBit(const Operand& dst, int bit_index); 784 void TestBit(const Operand& dst, int bit_index);
779 785
780 // Handle support 786 // Handle support
781 void Move(Register dst, Handle<Object> source); 787 void Move(Register dst, Handle<Object> source);
782 void Move(const Operand& dst, Handle<Object> source); 788 void Move(const Operand& dst, Handle<Object> source);
783 void Cmp(Register dst, Handle<Object> source); 789 void Cmp(Register dst, Handle<Object> source);
784 void Cmp(const Operand& dst, Handle<Object> source); 790 void Cmp(const Operand& dst, Handle<Object> source);
785 void Cmp(Register dst, Smi* src); 791 void Cmp(Register dst, Smi* src);
786 void Cmp(const Operand& dst, Smi* src); 792 void Cmp(const Operand& dst, Smi* src);
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 masm->popfd(); \ 1481 masm->popfd(); \
1476 } \ 1482 } \
1477 masm-> 1483 masm->
1478 #else 1484 #else
1479 #define ACCESS_MASM(masm) masm-> 1485 #define ACCESS_MASM(masm) masm->
1480 #endif 1486 #endif
1481 1487
1482 } } // namespace v8::internal 1488 } } // namespace v8::internal
1483 1489
1484 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1490 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698