Index: src/ic/ia32/stub-cache-ia32.cc |
diff --git a/src/ic/ia32/stub-cache-ia32.cc b/src/ic/ia32/stub-cache-ia32.cc |
index c1f7c9ad314d634f0be45fc457f79f4ff91a2e01..ee391ef5509584d4aa979f373032380bddb7dad9 100644 |
--- a/src/ic/ia32/stub-cache-ia32.cc |
+++ b/src/ic/ia32/stub-cache-ia32.cc |
@@ -8,6 +8,7 @@ |
#include "src/codegen.h" |
#include "src/ic/stub-cache.h" |
+#include "src/interface-descriptors.h" |
namespace v8 { |
namespace internal { |
@@ -56,6 +57,13 @@ static void ProbeTable(Isolate* isolate, MacroAssembler* masm, |
} |
#endif |
+ if (FLAG_vector_ics) { |
+ // The vector and slot were pushed onto the stack before starting the |
+ // probe, and need to be restored for the miss handler. |
+ __ pop(VectorLoadICDescriptor::VectorRegister()); |
+ __ pop(VectorLoadICDescriptor::SlotRegister()); |
+ } |
+ |
if (leave_frame) __ leave(); |
// Jump to the first instruction in the code stub. |