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 bool Deoptimizer::kSupportsFixedDeoptExitSizes = true; 11 const int Deoptimizer::kNonLazyDeoptExitSize = 3 * kInstrSize; 12 const int Deoptimizer::kLazyDeoptExitSize = 3 * kInstrSize; 13 14 // Maximum size of a table entry generated below. 15 #ifdef _MIPS_ARCH_MIPS64R6 16 const int Deoptimizer::table_entry_size_ = 2 * kInstrSize; 17 #else 18 const int Deoptimizer::table_entry_size_ = 3 * kInstrSize; 19 #endif 20 GetFloatRegister(unsigned n) const21Float32 RegisterValues::GetFloatRegister(unsigned n) const { 22 return Float32::FromBits( 23 static_cast<uint32_t>(double_registers_[n].get_bits())); 24 } 25 SetCallerPc(unsigned offset,intptr_t value)26void FrameDescription::SetCallerPc(unsigned offset, intptr_t value) { 27 SetFrameSlot(offset, value); 28 } 29 SetCallerFp(unsigned offset,intptr_t value)30void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { 31 SetFrameSlot(offset, value); 32 } 33 SetCallerConstantPool(unsigned offset,intptr_t value)34void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 35 // No embedded constant pool support. 36 UNREACHABLE(); 37 } 38 SetPc(intptr_t pc)39void FrameDescription::SetPc(intptr_t pc) { pc_ = pc; } 40 41 } // namespace internal 42 } // namespace v8 43