OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2163 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2164 int spill_index = chunk()->GetParameterStackSlot(instr->index()); | 2164 int spill_index = chunk()->GetParameterStackSlot(instr->index()); |
2165 return DefineAsSpilled(new LParameter, spill_index); | 2165 return DefineAsSpilled(new LParameter, spill_index); |
2166 } | 2166 } |
2167 | 2167 |
2168 | 2168 |
2169 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2169 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
2170 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. | 2170 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. |
2171 if (spill_index > LUnallocated::kMaxFixedIndex) { | 2171 if (spill_index > LUnallocated::kMaxFixedIndex) { |
2172 Abort("Too many spill slots needed for OSR"); | 2172 Abort("Too many spill slots needed for OSR"); |
| 2173 spill_index = 0; |
2173 } | 2174 } |
2174 return DefineAsSpilled(new LUnknownOSRValue, spill_index); | 2175 return DefineAsSpilled(new LUnknownOSRValue, spill_index); |
2175 } | 2176 } |
2176 | 2177 |
2177 | 2178 |
2178 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | 2179 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { |
2179 LOperand* context = UseFixed(instr->context(), esi); | 2180 LOperand* context = UseFixed(instr->context(), esi); |
2180 argument_count_ -= instr->argument_count(); | 2181 argument_count_ -= instr->argument_count(); |
2181 LCallStub* result = new LCallStub(context); | 2182 LCallStub* result = new LCallStub(context); |
2182 return MarkAsCall(DefineFixed(result, eax), instr); | 2183 return MarkAsCall(DefineFixed(result, eax), instr); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 LOperand* key = UseOrConstantAtStart(instr->key()); | 2287 LOperand* key = UseOrConstantAtStart(instr->key()); |
2287 LOperand* object = UseOrConstantAtStart(instr->object()); | 2288 LOperand* object = UseOrConstantAtStart(instr->object()); |
2288 LIn* result = new LIn(key, object); | 2289 LIn* result = new LIn(key, object); |
2289 return MarkAsCall(DefineFixed(result, eax), instr); | 2290 return MarkAsCall(DefineFixed(result, eax), instr); |
2290 } | 2291 } |
2291 | 2292 |
2292 | 2293 |
2293 } } // namespace v8::internal | 2294 } } // namespace v8::internal |
2294 | 2295 |
2295 #endif // V8_TARGET_ARCH_IA32 | 2296 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |