deoptimizer-ia32.cc 1.36 KB
Newer Older
1
// Copyright 2012 the V8 project authors. All rights reserved.
2 3
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
4

5
#if V8_TARGET_ARCH_IA32
6

7
#include "src/deoptimizer/deoptimizer.h"
8 9 10 11

namespace v8 {
namespace internal {

12 13 14
const bool Deoptimizer::kSupportsFixedDeoptExitSizes = true;
const int Deoptimizer::kNonLazyDeoptExitSize = 5;
const int Deoptimizer::kLazyDeoptExitSize = 5;
15 16 17 18 19 20
const int Deoptimizer::kEagerWithResumeBeforeArgsSize = 10;
const int Deoptimizer::kEagerWithResumeDeoptExitSize =
    kEagerWithResumeBeforeArgsSize + 2 * kSystemPointerSize;
const int Deoptimizer::kEagerWithResumeImmedArgs1PcOffset = 5;
const int Deoptimizer::kEagerWithResumeImmedArgs2PcOffset =
    5 + kSystemPointerSize;
21

22 23 24 25 26
Float32 RegisterValues::GetFloatRegister(unsigned n) const {
  return Float32::FromBits(
      static_cast<uint32_t>(double_registers_[n].get_bits()));
}

27 28 29 30 31 32 33 34
void FrameDescription::SetCallerPc(unsigned offset, intptr_t value) {
  SetFrameSlot(offset, value);
}

void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
  SetFrameSlot(offset, value);
}

35
void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
36
  // No embedded constant pool support.
37 38 39
  UNREACHABLE();
}

40 41
void FrameDescription::SetPc(intptr_t pc) { pc_ = pc; }

42 43
}  // namespace internal
}  // namespace v8
44 45

#endif  // V8_TARGET_ARCH_IA32