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

Unified Diff: src/json-stringifier.h

Issue 314953006: Implement LookupIterator designed to replace LookupResult (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Adding to BUILD.gn Created 6 years, 6 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 | « src/ic.cc ('k') | src/lookup.h » ('j') | src/lookup.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-stringifier.h
diff --git a/src/json-stringifier.h b/src/json-stringifier.h
index 23927b162edc09514d3cadb77efa3a604ed5fb32..03461d723532a4b1c6d3d9438a6695498ad1ea83 100644
--- a/src/json-stringifier.h
+++ b/src/json-stringifier.h
@@ -338,15 +338,9 @@ void BasicJsonStringifier::Append_(const Char* chars) {
MaybeHandle<Object> BasicJsonStringifier::ApplyToJsonFunction(
Handle<Object> object, Handle<Object> key) {
- LookupResult lookup(isolate_);
- JSObject::cast(*object)->LookupRealNamedProperty(tojson_string_, &lookup);
- if (!lookup.IsProperty()) return object;
- PropertyAttributes attr;
+ LookupIterator it(object, tojson_string_, LookupIterator::SKIP_INTERCEPTOR);
Handle<Object> fun;
- ASSIGN_RETURN_ON_EXCEPTION(
- isolate_, fun,
- Object::GetProperty(object, object, &lookup, tojson_string_, &attr),
- Object);
+ ASSIGN_RETURN_ON_EXCEPTION(isolate_, fun, Object::GetProperty(&it), Object);
if (!fun->IsJSFunction()) return object;
// Call toJSON function.
« no previous file with comments | « src/ic.cc ('k') | src/lookup.h » ('j') | src/lookup.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698