1// Copyright 2011 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "src/deoptimizer/deoptimizer.h"
6
7namespace v8 {
8namespace internal {
9
10const int Deoptimizer::kEagerDeoptExitSize = 3 * kInstrSize;
11const int Deoptimizer::kLazyDeoptExitSize = 3 * kInstrSize;
12
13Float32 RegisterValues::GetFloatRegister(unsigned n) const {
14  return Float32::FromBits(
15      static_cast<uint32_t>(double_registers_[n].get_bits()));
16}
17
18void FrameDescription::SetCallerPc(unsigned offset, intptr_t value) {
19  SetFrameSlot(offset, value);
20}
21
22void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
23  SetFrameSlot(offset, value);
24}
25
26void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
27  // No embedded constant pool support.
28  UNREACHABLE();
29}
30
31void FrameDescription::SetPc(intptr_t pc) { pc_ = pc; }
32
33}  // namespace internal
34}  // namespace v8
35