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

Unified Diff: src/lookup.h

Issue 1238533003: Use the LookupIterator to transition to elements accessors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disallow defining accessors on typed arrays Created 5 years, 5 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 | src/lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lookup.h
diff --git a/src/lookup.h b/src/lookup.h
index 20a4b73fb0d4f22e32e1c18edcd0153c8c367e13..6221d6741d2d7d687536662a25a960d974aeb9fa 100644
--- a/src/lookup.h
+++ b/src/lookup.h
@@ -168,7 +168,7 @@ class LookupIterator final BASE_EMBEDDED {
Handle<Name> GetName() {
if (name_.is_null()) {
DCHECK(IsElement());
- name_ = isolate_->factory()->Uint32ToString(index_);
+ name_ = factory()->Uint32ToString(index_);
}
return name_;
}
@@ -183,6 +183,7 @@ class LookupIterator final BASE_EMBEDDED {
state_ = NOT_FOUND;
}
+ Heap* heap() const { return isolate_->heap(); }
Factory* factory() const { return isolate_->factory(); }
Handle<Object> GetReceiver() const { return receiver_; }
Handle<JSObject> GetStoreTarget() const;
« no previous file with comments | « no previous file | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698