Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 4fd38fa45253098e4fa68d0c1450fdb4c286cc90..b1ab6c411e6d44aed2ec6880d95a174b69969f12 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -357,12 +357,13 @@ ZoneMapList* TypeFeedbackOracle::CollectReceiverTypes(int position, |
void TypeFeedbackOracle::SetInfo(int position, Object* target) { |
MaybeObject* maybe_result = dictionary_->AtNumberPut(position, target); |
- Object* result; |
USE(maybe_result); |
- USE(result); |
+#ifdef DEBUG |
+ Object* result; |
// Dictionary has been allocated with sufficient size for all elements. |
ASSERT(maybe_result->ToObject(&result)); |
ASSERT(*dictionary_ == result); |
+#endif |
} |