| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 } | 1875 } |
| 1876 } | 1876 } |
| 1877 | 1877 |
| 1878 | 1878 |
| 1879 LInstruction* LChunkBuilder::DoNumericConstraint(HNumericConstraint* instr) { | 1879 LInstruction* LChunkBuilder::DoNumericConstraint(HNumericConstraint* instr) { |
| 1880 return NULL; | 1880 return NULL; |
| 1881 } | 1881 } |
| 1882 | 1882 |
| 1883 | 1883 |
| 1884 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 1884 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 1885 UNIMPLEMENTED_INSTRUCTION(); | 1885 ASSERT(argument_count_ == 0); |
| 1886 allocator_->MarkAsOsrEntry(); |
| 1887 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 1888 return AssignEnvironment(new(zone()) LOsrEntry); |
| 1886 } | 1889 } |
| 1887 | 1890 |
| 1888 | 1891 |
| 1889 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | 1892 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { |
| 1890 LOperand* context = UseRegisterAtStart(instr->value()); | 1893 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1891 return DefineAsRegister(new(zone()) LOuterContext(context)); | 1894 return DefineAsRegister(new(zone()) LOuterContext(context)); |
| 1892 } | 1895 } |
| 1893 | 1896 |
| 1894 | 1897 |
| 1895 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 1898 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2454 return MarkAsCall(DefineFixedDouble(result, d0), instr); | 2457 return MarkAsCall(DefineFixedDouble(result, d0), instr); |
| 2455 } | 2458 } |
| 2456 default: | 2459 default: |
| 2457 UNREACHABLE(); | 2460 UNREACHABLE(); |
| 2458 return NULL; | 2461 return NULL; |
| 2459 } | 2462 } |
| 2460 } | 2463 } |
| 2461 | 2464 |
| 2462 | 2465 |
| 2463 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { | 2466 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
| 2464 UNIMPLEMENTED_INSTRUCTION(); | 2467 int spill_index = chunk_->GetNextSpillIndex(); |
| 2468 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
| 2469 Abort("Too many spill slots needed for OSR"); |
| 2470 spill_index = 0; |
| 2471 } |
| 2472 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |
| 2465 } | 2473 } |
| 2466 | 2474 |
| 2467 | 2475 |
| 2468 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { | 2476 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { |
| 2469 return NULL; | 2477 return NULL; |
| 2470 } | 2478 } |
| 2471 | 2479 |
| 2472 | 2480 |
| 2473 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 2481 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 2474 LOperand* object = UseRegister(instr->value()); | 2482 LOperand* object = UseRegister(instr->value()); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2518 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2511 LOperand* receiver = UseRegister(instr->receiver()); | 2519 LOperand* receiver = UseRegister(instr->receiver()); |
| 2512 LOperand* function = UseRegisterAtStart(instr->function()); | 2520 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2513 LOperand* temp = TempRegister(); | 2521 LOperand* temp = TempRegister(); |
| 2514 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2522 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2515 return AssignEnvironment(DefineAsRegister(result)); | 2523 return AssignEnvironment(DefineAsRegister(result)); |
| 2516 } | 2524 } |
| 2517 | 2525 |
| 2518 | 2526 |
| 2519 } } // namespace v8::internal | 2527 } } // namespace v8::internal |
| OLD | NEW |