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

Unified Diff: src/compiler/x64/code-generator-x64.cc

Issue 942513002: Put the type feedback vector in the unoptimized JavaScript frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ia32 lithium fix. Created 5 years, 10 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/compiler/x64/code-generator-x64.cc
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
index 973bbd1ef06bb794d153701c380eeae63b2c4057..3387813bf6df589b3ab08d6862ca43086f4246f8 100644
--- a/src/compiler/x64/code-generator-x64.cc
+++ b/src/compiler/x64/code-generator-x64.cc
@@ -1207,8 +1207,13 @@ void CodeGenerator::AssemblePrologue() {
// remaining stack slots.
if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --");
osr_pc_offset_ = __ pc_offset();
- DCHECK(stack_slots >= frame()->GetOsrStackSlotCount());
- stack_slots -= frame()->GetOsrStackSlotCount();
+ int osr_stack_slot_count = frame()->GetOsrStackSlotCount();
+ DCHECK(stack_slots >= osr_stack_slot_count);
+ stack_slots -= osr_stack_slot_count;
+
+ // Full-code javascript functions have a type feedback vector in the frame.
+ // Shift any locals down one slot, and adjust the stack pointer.
+ __ OSRDropVectorFromStack(osr_stack_slot_count, rbx, rax);
}
if (stack_slots > 0) {

Powered by Google App Engine
This is Rietveld 408576698