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

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: Removed constant masking for function argument lengths. Created 8 years, 5 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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-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 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 SafeMove(Register dst, Smi* src);
780 void SafePush(Smi* src);
781
777 // Bit-field support. 782 // Bit-field support.
778 void TestBit(const Operand& dst, int bit_index); 783 void TestBit(const Operand& dst, int bit_index);
779 784
780 // Handle support 785 // Handle support
781 void Move(Register dst, Handle<Object> source); 786 void Move(Register dst, Handle<Object> source);
782 void Move(const Operand& dst, Handle<Object> source); 787 void Move(const Operand& dst, Handle<Object> source);
783 void Cmp(Register dst, Handle<Object> source); 788 void Cmp(Register dst, Handle<Object> source);
784 void Cmp(const Operand& dst, Handle<Object> source); 789 void Cmp(const Operand& dst, Handle<Object> source);
785 void Cmp(Register dst, Smi* src); 790 void Cmp(Register dst, Smi* src);
786 void Cmp(const Operand& dst, Smi* src); 791 void Cmp(const Operand& dst, Smi* src);
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 masm->popfd(); \ 1480 masm->popfd(); \
1476 } \ 1481 } \
1477 masm-> 1482 masm->
1478 #else 1483 #else
1479 #define ACCESS_MASM(masm) masm-> 1484 #define ACCESS_MASM(masm) masm->
1480 #endif 1485 #endif
1481 1486
1482 } } // namespace v8::internal 1487 } } // namespace v8::internal
1483 1488
1484 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1489 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698