| Index: src/a64/lithium-a64.cc
|
| diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc
|
| index dbcb4e118f85c11c54109340755f8cf7f9f34c72..bdb9033874e84444403668ac3daeb9fe20f9a411 100644
|
| --- a/src/a64/lithium-a64.cc
|
| +++ b/src/a64/lithium-a64.cc
|
| @@ -1882,7 +1882,10 @@ LInstruction* LChunkBuilder::DoNumericConstraint(HNumericConstraint* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
|
| - UNIMPLEMENTED_INSTRUCTION();
|
| + ASSERT(argument_count_ == 0);
|
| + allocator_->MarkAsOsrEntry();
|
| + current_block_->last_environment()->set_ast_id(instr->ast_id());
|
| + return AssignEnvironment(new(zone()) LOsrEntry);
|
| }
|
|
|
|
|
| @@ -2461,7 +2464,12 @@ LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
|
| - UNIMPLEMENTED_INSTRUCTION();
|
| + int spill_index = chunk_->GetNextSpillIndex();
|
| + if (spill_index > LUnallocated::kMaxFixedSlotIndex) {
|
| + Abort("Too many spill slots needed for OSR");
|
| + spill_index = 0;
|
| + }
|
| + return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
|
| }
|
|
|
|
|
|
|