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

Unified Diff: src/ia32/macro-assembler-ia32.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: Reduced constant in deep recursion test for windows. Created 5 years, 9 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 | « src/ia32/macro-assembler-ia32.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/macro-assembler-ia32.cc
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
index f35d16a3231fc259c00c69921d9c53a7cf13b567..4cfd354b4edda482ee84ff5a1141ae86d6886fa8 100644
--- a/src/ia32/macro-assembler-ia32.cc
+++ b/src/ia32/macro-assembler-ia32.cc
@@ -3227,6 +3227,21 @@ void MacroAssembler::TruncatingDiv(Register dividend, int32_t divisor) {
}
+void MacroAssembler::AdaptUnoptimizedFrameForOsrEntry(
+ int unoptimized_slot_count, Register scratch0, Register scratch1) {
+ if (unoptimized_slot_count > 0) {
+ Label loop_start;
+ lea(scratch0,
+ Operand(ebp, JavaScriptFrameConstants::kFeedbackVectorOffset));
+ bind(&loop_start);
+ mov(scratch1, Operand(scratch0, -1 * kPointerSize));
+ mov(Operand(scratch0, 0), scratch1);
+ sub(scratch0, Immediate(kPointerSize));
+ cmp(scratch0, esp);
+ j(greater, &loop_start);
+ }
+ add(esp, Immediate(kPointerSize));
+}
} } // namespace v8::internal
#endif // V8_TARGET_ARCH_IA32
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698