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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: src/a64/lithium-a64.cc
diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc
index a2071a2608aa1a18ed9889b0e28934ca22fa0033..8313759164ceddf1f2385dd78e5b816342d0b965 100644
--- a/src/a64/lithium-a64.cc
+++ b/src/a64/lithium-a64.cc
@@ -1871,7 +1871,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);
}
@@ -2450,7 +2453,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;
+ }
titzer 2014/01/24 17:04:32 You will need to define these OSR values in exactl
+ return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
}

Powered by Google App Engine
This is Rietveld 408576698