• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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/codegen/assembler-inl.h"
6 #include "src/codegen/macro-assembler.h"
7 #include "src/codegen/register-configuration.h"
8 #include "src/codegen/safepoint-table.h"
9 #include "src/deoptimizer/deoptimizer.h"
10 
11 namespace v8 {
12 namespace internal {
13 
14 const bool Deoptimizer::kSupportsFixedDeoptExitSizes = true;
15 const int Deoptimizer::kNonLazyDeoptExitSize = 3 * kInstrSize;
16 const int Deoptimizer::kLazyDeoptExitSize = 3 * kInstrSize;
17 
GetFloatRegister(unsigned n) const18 Float32 RegisterValues::GetFloatRegister(unsigned n) const {
19   float float_val = static_cast<float>(double_registers_[n].get_scalar());
20   return Float32::FromBits(bit_cast<uint32_t>(float_val));
21 }
22 
SetCallerPc(unsigned offset,intptr_t value)23 void FrameDescription::SetCallerPc(unsigned offset, intptr_t value) {
24   SetFrameSlot(offset, value);
25 }
26 
SetCallerFp(unsigned offset,intptr_t value)27 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
28   SetFrameSlot(offset, value);
29 }
30 
SetCallerConstantPool(unsigned offset,intptr_t value)31 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
32   DCHECK(FLAG_enable_embedded_constant_pool);
33   SetFrameSlot(offset, value);
34 }
35 
SetPc(intptr_t pc)36 void FrameDescription::SetPc(intptr_t pc) { pc_ = pc; }
37 
38 }  // namespace internal
39 }  // namespace v8
40