diff options
Diffstat (limited to 'deps/v8/src/codegen/ppc/macro-assembler-ppc.h')
-rw-r--r-- | deps/v8/src/codegen/ppc/macro-assembler-ppc.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/deps/v8/src/codegen/ppc/macro-assembler-ppc.h b/deps/v8/src/codegen/ppc/macro-assembler-ppc.h index 87de0a77c8..2c46124b24 100644 --- a/deps/v8/src/codegen/ppc/macro-assembler-ppc.h +++ b/deps/v8/src/codegen/ppc/macro-assembler-ppc.h @@ -365,6 +365,7 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { void MovFromFloatResult(DoubleRegister dst); void Trap() override; + void DebugBreak() override; // Calls Abort(msg) if the condition cond is not satisfied. // Use --debug_code to enable. @@ -419,7 +420,8 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { void JumpCodeObject(Register code_object) override; void CallBuiltinByIndex(Register builtin_index) override; - void CallForDeoptimization(Address target, int deopt_id); + void CallForDeoptimization(Address target, int deopt_id, Label* exit, + DeoptimizeKind kind); // Emit code to discard a non-negative number of pointer-sized elements // from the stack, clobbering only the sp register. @@ -638,6 +640,16 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { void ResetSpeculationPoisonRegister(); + // Control-flow integrity: + + // Define a function entrypoint. This doesn't emit any code for this + // architecture, as control-flow integrity is not supported for it. + void CodeEntry() {} + // Define an exception handler. + void ExceptionHandler() {} + // Define an exception handler and bind a label. + void BindExceptionHandler(Label* label) { bind(label); } + private: static const int kSmiShift = kSmiTagSize + kSmiShiftSize; @@ -763,7 +775,6 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler { void InvokeFunction(Register function, Register expected_parameter_count, Register actual_parameter_count, InvokeFlag flag); - void DebugBreak(); // Frame restart support void MaybeDropFrames(); @@ -952,13 +963,6 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler { Register actual_parameter_count, Label* done, InvokeFlag flag); - // Compute memory operands for safepoint stack slots. - static int SafepointRegisterStackIndex(int reg_code); - - // Needs access to SafepointRegisterStackIndex for compiled frame - // traversal. - friend class StandardFrame; - DISALLOW_IMPLICIT_CONSTRUCTORS(MacroAssembler); }; |