Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: src/a64/lithium-a64.cc

Issue 145713002: A64: Implement LOsrEntry and LUnknownOSRValue (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 } 1864 }
1865 } 1865 }
1866 1866
1867 1867
1868 LInstruction* LChunkBuilder::DoNumericConstraint(HNumericConstraint* instr) { 1868 LInstruction* LChunkBuilder::DoNumericConstraint(HNumericConstraint* instr) {
1869 return NULL; 1869 return NULL;
1870 } 1870 }
1871 1871
1872 1872
1873 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 1873 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
1874 UNIMPLEMENTED_INSTRUCTION(); 1874 ASSERT(argument_count_ == 0);
1875 allocator_->MarkAsOsrEntry();
1876 current_block_->last_environment()->set_ast_id(instr->ast_id());
1877 return AssignEnvironment(new(zone()) LOsrEntry);
1875 } 1878 }
1876 1879
1877 1880
1878 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { 1881 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) {
1879 LOperand* context = UseRegisterAtStart(instr->value()); 1882 LOperand* context = UseRegisterAtStart(instr->value());
1880 return DefineAsRegister(new(zone()) LOuterContext(context)); 1883 return DefineAsRegister(new(zone()) LOuterContext(context));
1881 } 1884 }
1882 1885
1883 1886
1884 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 1887 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 return MarkAsCall(DefineFixedDouble(result, d0), instr); 2446 return MarkAsCall(DefineFixedDouble(result, d0), instr);
2444 } 2447 }
2445 default: 2448 default:
2446 UNREACHABLE(); 2449 UNREACHABLE();
2447 return NULL; 2450 return NULL;
2448 } 2451 }
2449 } 2452 }
2450 2453
2451 2454
2452 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2455 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2453 UNIMPLEMENTED_INSTRUCTION(); 2456 int spill_index = chunk_->GetNextSpillIndex();
2457 if (spill_index > LUnallocated::kMaxFixedSlotIndex) {
2458 Abort("Too many spill slots needed for OSR");
2459 spill_index = 0;
2460 }
titzer 2014/01/24 17:04:32 You will need to define these OSR values in exactl
2461 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
2454 } 2462 }
2455 2463
2456 2464
2457 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { 2465 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) {
2458 return NULL; 2466 return NULL;
2459 } 2467 }
2460 2468
2461 2469
2462 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 2470 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
2463 LOperand* object = UseRegister(instr->value()); 2471 LOperand* object = UseRegister(instr->value());
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2507 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2500 LOperand* receiver = UseRegister(instr->receiver()); 2508 LOperand* receiver = UseRegister(instr->receiver());
2501 LOperand* function = UseRegisterAtStart(instr->function()); 2509 LOperand* function = UseRegisterAtStart(instr->function());
2502 LOperand* temp = TempRegister(); 2510 LOperand* temp = TempRegister();
2503 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); 2511 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp);
2504 return AssignEnvironment(DefineAsRegister(result)); 2512 return AssignEnvironment(DefineAsRegister(result));
2505 } 2513 }
2506 2514
2507 2515
2508 } } // namespace v8::internal 2516 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698