| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 static const Register kRootRegister = { 13 }; // r13 (callee save). | 52 static const Register kRootRegister = { 13 }; // r13 (callee save). |
| 53 // Value of smi in kSmiConstantRegister. | 53 // Value of smi in kSmiConstantRegister. |
| 54 static const int kSmiConstantRegisterValue = 1; | 54 static const int kSmiConstantRegisterValue = 1; |
| 55 // Actual value of root register is offset from the root array's start | 55 // Actual value of root register is offset from the root array's start |
| 56 // to take advantage of negitive 8-bit displacement values. | 56 // to take advantage of negitive 8-bit displacement values. |
| 57 static const int kRootRegisterBias = 128; | 57 static const int kRootRegisterBias = 128; |
| 58 | 58 |
| 59 // Convenience for platform-independent signatures. | 59 // Convenience for platform-independent signatures. |
| 60 typedef Operand MemOperand; | 60 typedef Operand MemOperand; |
| 61 | 61 |
| 62 enum EmitRememberedSet { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; |
| 63 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; |
| 64 |
| 65 bool Aliasing(Register r1, Register r2, Register r3, Register r4); |
| 66 |
| 62 // Forward declaration. | 67 // Forward declaration. |
| 63 class JumpTarget; | 68 class JumpTarget; |
| 64 | 69 |
| 65 struct SmiIndex { | 70 struct SmiIndex { |
| 66 SmiIndex(Register index_register, ScaleFactor scale) | 71 SmiIndex(Register index_register, ScaleFactor scale) |
| 67 : reg(index_register), | 72 : reg(index_register), |
| 68 scale(scale) {} | 73 scale(scale) {} |
| 69 Register reg; | 74 Register reg; |
| 70 ScaleFactor scale; | 75 ScaleFactor scale; |
| 71 }; | 76 }; |
| (...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1997 Jump(adaptor, RelocInfo::CODE_TARGET); | 2002 Jump(adaptor, RelocInfo::CODE_TARGET); |
| 1998 } | 2003 } |
| 1999 bind(&invoke); | 2004 bind(&invoke); |
| 2000 } | 2005 } |
| 2001 } | 2006 } |
| 2002 | 2007 |
| 2003 | 2008 |
| 2004 } } // namespace v8::internal | 2009 } } // namespace v8::internal |
| 2005 | 2010 |
| 2006 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 2011 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |