Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Unified Diff: src/type-info.cc

Issue 6731089: Fix the bug in the bug fix. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698