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

Unified Diff: src/objects.h

Issue 348313002: Introduce a PrototypeIterator template and use it all over the place (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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/json-stringifier.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 5240a70c205357020f940dedfe6ca71f71209f83..69b4b1573afe9c92c46685893375cf0c7314117b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1505,7 +1505,10 @@ class Object {
Handle<Object> receiver,
uint32_t index);
- // Return the object's prototype (might be Heap::null_value()).
+ // Return the object's prototype (might be Heap::null_value()). Please use a
+ // PrototypeIterator instead.
+ //
+ // TODO(jochen): Make these private.
Object* GetPrototype(Isolate* isolate);
static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object);
@@ -1968,7 +1971,10 @@ class JSReceiver: public HeapObject {
Handle<JSReceiver> object,
uint32_t index);
- // Return the object's prototype (might be Heap::null_value()).
+ // Return the object's prototype (might be Heap::null_value()). Use a
+ // PrototypeIterator instead.
+ //
+ // TODO(jochen): Make this method private.
inline Object* GetPrototype();
// Return the constructor function (may be Heap::null_value()).
« no previous file with comments | « src/json-stringifier.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698