Revision: 20547
Author: [email protected]
Date: Mon Apr 7 12:55:06 2014 UTC
Log: Handlify TypeFeedbackOracle::SetInfo.
[email protected]
Review URL: https://codereview.chromium.org/226623007
http://code.google.com/p/v8/source/detail?r=20547
Modified:
/branches/bleeding_edge/src/type-info.cc
=======================================
--- /branches/bleeding_edge/src/type-info.cc Wed Mar 19 13:39:09 2014 UTC
+++ /branches/bleeding_edge/src/type-info.cc Mon Apr 7 12:55:06 2014 UTC
@@ -492,14 +492,11 @@
void TypeFeedbackOracle::SetInfo(TypeFeedbackId ast_id, Object* target) {
ASSERT(dictionary_->FindEntry(IdToKey(ast_id)) ==
UnseededNumberDictionary::kNotFound);
- MaybeObject* maybe_result = dictionary_->AtNumberPut(IdToKey(ast_id),
target);
- USE(maybe_result);
-#ifdef DEBUG
- Object* result = NULL;
// Dictionary has been allocated with sufficient size for all elements.
- ASSERT(maybe_result->ToObject(&result));
- ASSERT(*dictionary_ == result);
-#endif
+ DisallowHeapAllocation no_need_to_resize_dictionary;
+ HandleScope scope(isolate());
+ isolate()->factory()->DictionaryAtNumberPut(
+ dictionary_, IdToKey(ast_id), handle(target, isolate()));
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.