Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 43d162c84ae8ea593debafc9851844fff6a54fc5..579e268baddc13aa2b103ad7c846bed3d7ee9369 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -999,7 +999,7 @@ bool IC::UpdatePolymorphicIC(State state, |
Handle<String> name, |
Handle<Code> code, |
StrictModeFlag strict_mode) { |
- if (code->type() == Code::NORMAL) return false; |
+ if (code->kind() != Code::HANDLER) return false; |
if (target()->ic_state() == MONOMORPHIC && |
target()->type() == Code::NORMAL) { |
return false; |