28 #ifndef V8_LITHIUM_ALLOCATOR_INL_H_
29 #define V8_LITHIUM_ALLOCATOR_INL_H_
33 #if V8_TARGET_ARCH_IA32
35 #elif V8_TARGET_ARCH_X64
37 #elif V8_TARGET_ARCH_ARM
39 #elif V8_TARGET_ARCH_MIPS
42 #error "Unknown architecture."
48 bool LAllocator::IsGapAt(
int index) {
return chunk_->IsGapAt(index); }
51 LInstruction* LAllocator::InstructionAt(
int index) {
52 return chunk_->instructions()->at(index);
56 LGap* LAllocator::GapAt(
int index) {
57 return chunk_->GetGapAt(index);
61 TempIterator::TempIterator(LInstruction* instr)
63 limit_(instr->TempCount()),
69 bool TempIterator::Done() {
return current_ >= limit_; }
72 LOperand* TempIterator::Current() {
78 void TempIterator::SkipUninteresting() {
83 void TempIterator::Advance() {
89 InputIterator::InputIterator(LInstruction* instr)
91 limit_(instr->InputCount()),
97 bool InputIterator::Done() {
return current_ >= limit_; }
100 LOperand* InputIterator::Current() {
106 void InputIterator::Advance() {
112 void InputIterator::SkipUninteresting() {
113 while (current_ < limit_ && instr_->InputAt(
current_)->IsConstantOperand()) {
119 UseIterator::UseIterator(LInstruction* instr)
120 : input_iterator_(instr), env_iterator_(instr->environment()) { }
123 bool UseIterator::Done() {
124 return input_iterator_.Done() && env_iterator_.Done();
128 LOperand* UseIterator::Current() {
130 return input_iterator_.Done()
131 ? env_iterator_.Current()
132 : input_iterator_.Current();
136 void UseIterator::Advance() {
137 input_iterator_.Done()
138 ? env_iterator_.Advance()
139 : input_iterator_.Advance();
144 #endif // V8_LITHIUM_ALLOCATOR_INL_H_
#define ASSERT(condition)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL