5 #ifndef V8_LITHIUM_INL_H_
6 #define V8_LITHIUM_INL_H_
10 #if V8_TARGET_ARCH_IA32
12 #elif V8_TARGET_ARCH_X64
14 #elif V8_TARGET_ARCH_ARM64
16 #elif V8_TARGET_ARCH_ARM
18 #elif V8_TARGET_ARCH_MIPS
20 #elif V8_TARGET_ARCH_MIPS64
22 #elif V8_TARGET_ARCH_X87
25 #error "Unknown architecture."
31 TempIterator::TempIterator(LInstruction* instr)
32 : instr_(instr), limit_(instr->TempCount()), current_(0) {
37 bool TempIterator::Done() {
return current_ >= limit_; }
40 LOperand* TempIterator::Current() {
42 return instr_->TempAt(current_);
46 void TempIterator::SkipUninteresting() {
47 while (current_ < limit_ && instr_->TempAt(current_) ==
NULL) ++current_;
51 void TempIterator::Advance() {
57 InputIterator::InputIterator(LInstruction* instr)
58 : instr_(instr), limit_(instr->InputCount()), current_(0) {
63 bool InputIterator::Done() {
return current_ >= limit_; }
66 LOperand* InputIterator::Current() {
69 return instr_->InputAt(current_);
73 void InputIterator::Advance() {
79 void InputIterator::SkipUninteresting() {
80 while (current_ < limit_) {
81 LOperand* current = instr_->InputAt(current_);
82 if (current !=
NULL && !current->IsConstantOperand())
break;
88 UseIterator::UseIterator(LInstruction* instr)
89 : input_iterator_(instr), env_iterator_(instr->environment()) {}
92 bool UseIterator::Done() {
93 return input_iterator_.Done() && env_iterator_.Done();
97 LOperand* UseIterator::Current() {
99 LOperand* result = input_iterator_.Done() ? env_iterator_.Current()
100 : input_iterator_.Current();
106 void UseIterator::Advance() {
107 input_iterator_.Done() ? env_iterator_.Advance() : input_iterator_.Advance();
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define DCHECK(condition)
Debugger support for the V8 JavaScript engine.