• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 namespace v8 {
8 namespace internal {
9 
10 const int Deoptimizer::kEagerDeoptExitSize = 3 * kInstrSize;
11 const int Deoptimizer::kLazyDeoptExitSize = 3 * kInstrSize;
12 
GetFloatRegister(unsigned n) const13 Float32 RegisterValues::GetFloatRegister(unsigned n) const {
14   return Float32::FromBits(
15       static_cast<uint32_t>(double_registers_[n].get_bits()));
16 }
17 
SetCallerPc(unsigned offset,intptr_t value)18 void FrameDescription::SetCallerPc(unsigned offset, intptr_t value) {
19   SetFrameSlot(offset, value);
20 }
21 
SetCallerFp(unsigned offset,intptr_t value)22 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
23   SetFrameSlot(offset, value);
24 }
25 
SetCallerConstantPool(unsigned offset,intptr_t value)26 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
27   // No embedded constant pool support.
28   UNREACHABLE();
29 }
30 
SetPc(intptr_t pc)31 void FrameDescription::SetPc(intptr_t pc) { pc_ = pc; }
32 
33 }  // namespace internal
34 }  // namespace v8
35