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

Unified Diff: src/compiler/instruction.h

Issue 671703003: Fix off-by-one bug in TurboFan register allocator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index fddc225f8a23286a9b8a59a070248c9a3d0843e9..43958b8c6f4e92e0d3a710c05647b3362c6a7590 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -862,6 +862,11 @@ class InstructionSequence FINAL {
return instruction_blocks_[rpo_number.ToSize()];
}
+ int LastLoopInstructionIndex(const InstructionBlock* block) {
+ return instruction_blocks_[block->loop_end().ToSize() - 1]
+ ->last_instruction_index();
+ }
+
const InstructionBlock* InstructionBlockAt(
BasicBlock::RpoNumber rpo_number) const {
return instruction_blocks_[rpo_number.ToSize()];
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698