diff options
Diffstat (limited to 'deps/v8/src/x64/macro-assembler-x64.h')
-rw-r--r-- | deps/v8/src/x64/macro-assembler-x64.h | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/deps/v8/src/x64/macro-assembler-x64.h b/deps/v8/src/x64/macro-assembler-x64.h index b00201c9f6a..6b96c3dcb3c 100644 --- a/deps/v8/src/x64/macro-assembler-x64.h +++ b/deps/v8/src/x64/macro-assembler-x64.h @@ -35,6 +35,7 @@ constexpr Register kJavaScriptCallExtraArg1Register = rbx; constexpr Register kRuntimeCallFunctionRegister = rbx; constexpr Register kRuntimeCallArgCountRegister = rax; +constexpr Register kRuntimeCallArgvRegister = r15; constexpr Register kWasmInstanceRegister = rsi; // Default scratch register used by MacroAssembler (and other code that needs @@ -52,20 +53,6 @@ typedef Operand MemOperand; enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; -#ifdef DEBUG -bool AreAliased(Register reg1, - Register reg2, - Register reg3 = no_reg, - Register reg4 = no_reg, - Register reg5 = no_reg, - Register reg6 = no_reg, - Register reg7 = no_reg, - Register reg8 = no_reg); -#endif - -// Forward declaration. -class JumpTarget; - struct SmiIndex { SmiIndex(Register index_register, ScaleFactor scale) : reg(index_register), @@ -125,7 +112,7 @@ class StackArgumentsAccessor BASE_EMBEDDED { DISALLOW_IMPLICIT_CONSTRUCTORS(StackArgumentsAccessor); }; -class TurboAssembler : public TurboAssemblerBase { +class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { public: TurboAssembler(Isolate* isolate, const AssemblerOptions& options, void* buffer, int buffer_size, @@ -409,26 +396,6 @@ class TurboAssembler : public TurboAssemblerBase { call(target, rmode); } - // The size of the code generated for different call instructions. - int CallSize(ExternalReference ext); - int CallSize(Address destination) { return kCallSequenceLength; } - int CallSize(Handle<Code> code_object) { - // Code calls use 32-bit relative addressing. - return kShortCallInstructionLength; - } - int CallSize(Register target) { - // Opcode: REX_opt FF /2 m64 - return (target.high_bit() != 0) ? 3 : 2; - } - int CallSize(Operand target) { - // Opcode: REX_opt FF /2 m64 - return (target.requires_rex() ? 2 : 1) + target.operand_size(); - } - - // Returns the size of the code generated by LoadAddress. - // Used by CallSize(ExternalReference) to find the size of a call. - int LoadAddressSize(ExternalReference source); - // Non-SSE2 instructions. void Pextrd(Register dst, XMMRegister src, int8_t imm8); void Pinsrd(XMMRegister dst, Register src, int8_t imm8); |