%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_EXECUTION_S390_FRAME_CONSTANTS_S390_H_ #define V8_EXECUTION_S390_FRAME_CONSTANTS_S390_H_ #include "src/base/bits.h" #include "src/base/macros.h" #include "src/codegen/s390/register-s390.h" #include "src/execution/frame-constants.h" namespace v8 { namespace internal { class EntryFrameConstants : public AllStatic { public: static constexpr int kCallerFPOffset = -3 * kSystemPointerSize; // Stack offsets for arguments passed to JSEntry. static constexpr int kArgvOffset = 20 * kSystemPointerSize; }; class WasmCompileLazyFrameConstants : public TypedFrameConstants { public: static constexpr int kNumberOfSavedGpParamRegs = 4; #ifdef V8_TARGET_ARCH_S390X static constexpr int kNumberOfSavedFpParamRegs = 4; #else static constexpr int kNumberOfSavedFpParamRegs = 2; #endif // FP-relative. // The instance is pushed as part of the saved registers. Being in {r6}, it is // the first register pushed (highest register code in // {wasm::kGpParamRegisters}). static constexpr int kWasmInstanceOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); static constexpr int kFixedFrameSizeFromFp = TypedFrameConstants::kFixedFrameSizeFromFp + kNumberOfSavedGpParamRegs * kSystemPointerSize + kNumberOfSavedFpParamRegs * kSimd128Size; }; // Frame constructed by the {WasmDebugBreak} builtin. // After pushing the frame type marker, the builtin pushes all Liftoff cache // registers (see liftoff-assembler-defs.h). class WasmDebugBreakFrameConstants : public TypedFrameConstants { public: static constexpr RegList kPushedGpRegs = Register::ListOf(r2, r3, r4, r5, r6, r7, r8, cp); static constexpr RegList kPushedFpRegs = DoubleRegister::ListOf( d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12); static constexpr int kNumPushedGpRegisters = base::bits::CountPopulation(kPushedGpRegs); static constexpr int kNumPushedFpRegisters = base::bits::CountPopulation(kPushedFpRegs); static constexpr int kLastPushedGpRegisterOffset = -TypedFrameConstants::kFixedFrameSizeFromFp - kSystemPointerSize * kNumPushedGpRegisters; static constexpr int kLastPushedFpRegisterOffset = kLastPushedGpRegisterOffset - kDoubleSize * kNumPushedFpRegisters; // Offsets are fp-relative. static int GetPushedGpRegisterOffset(int reg_code) { DCHECK_NE(0, kPushedGpRegs & (1 << reg_code)); uint32_t lower_regs = kPushedGpRegs & ((uint32_t{1} << reg_code) - 1); return kLastPushedGpRegisterOffset + base::bits::CountPopulation(lower_regs) * kSystemPointerSize; } static int GetPushedFpRegisterOffset(int reg_code) { DCHECK_NE(0, kPushedFpRegs & (1 << reg_code)); uint32_t lower_regs = kPushedFpRegs & ((uint32_t{1} << reg_code) - 1); return kLastPushedFpRegisterOffset + base::bits::CountPopulation(lower_regs) * kDoubleSize; } }; } // namespace internal } // namespace v8 #endif // V8_EXECUTION_S390_FRAME_CONSTANTS_S390_H_