• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2012 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 #if V8_TARGET_ARCH_IA32
6 
7 #include "src/deoptimizer/deoptimizer.h"
8 
9 namespace v8 {
10 namespace internal {
11 
12 const int Deoptimizer::kEagerDeoptExitSize = 5;
13 const int Deoptimizer::kLazyDeoptExitSize = 5;
14 
GetFloatRegister(unsigned n) const15 Float32 RegisterValues::GetFloatRegister(unsigned n) const {
16   return Float32::FromBits(
17       static_cast<uint32_t>(double_registers_[n].get_bits()));
18 }
19 
SetCallerPc(unsigned offset,intptr_t value)20 void FrameDescription::SetCallerPc(unsigned offset, intptr_t value) {
21   SetFrameSlot(offset, value);
22 }
23 
SetCallerFp(unsigned offset,intptr_t value)24 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
25   SetFrameSlot(offset, value);
26 }
27 
SetCallerConstantPool(unsigned offset,intptr_t value)28 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
29   // No embedded constant pool support.
30   UNREACHABLE();
31 }
32 
SetPc(intptr_t pc)33 void FrameDescription::SetPc(intptr_t pc) { pc_ = pc; }
34 
35 }  // namespace internal
36 }  // namespace v8
37 
38 #endif  // V8_TARGET_ARCH_IA32
39