Index: src/ic-inl.h |
diff --git a/src/ic-inl.h b/src/ic-inl.h |
index 56cea817600c29748fc0e9cd9e0037d3b70cd20d..b8c7e8d8570d0475249fb92c29440d85d8bdcd52 100644 |
--- a/src/ic-inl.h |
+++ b/src/ic-inl.h |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -83,7 +83,8 @@ void IC::SetTargetAtAddress(Address address, Code* target) { |
Code* old_target = GetTargetAtAddress(address); |
if (old_target->kind() == Code::STORE_IC || |
old_target->kind() == Code::KEYED_STORE_IC) { |
- ASSERT(old_target->extra_ic_state() == target->extra_ic_state()); |
+ ASSERT(Code::GetStrictMode(old_target->extra_ic_state()) == |
+ Code::GetStrictMode(target->extra_ic_state())); |
} |
#endif |
Assembler::set_target_address_at(address, target->instruction_start()); |