Reviewers: fschneider,
Message:
TBR=florian
Description:
Fix the bug in the bug fix.
BUG=
TEST=
Please review this at http://codereview.chromium.org/6731089/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/type-info.cc
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
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev