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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/json-stringifier.h ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 Isolate* isolate, 1498 Isolate* isolate,
1499 Handle<Object> object, 1499 Handle<Object> object,
1500 uint32_t index); 1500 uint32_t index);
1501 1501
1502 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( 1502 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver(
1503 Isolate* isolate, 1503 Isolate* isolate,
1504 Handle<Object> object, 1504 Handle<Object> object,
1505 Handle<Object> receiver, 1505 Handle<Object> receiver,
1506 uint32_t index); 1506 uint32_t index);
1507 1507
1508 // Return the object's prototype (might be Heap::null_value()). 1508 // Return the object's prototype (might be Heap::null_value()). Please use a
1509 // PrototypeIterator instead.
1510 //
1511 // TODO(jochen): Make these private.
1509 Object* GetPrototype(Isolate* isolate); 1512 Object* GetPrototype(Isolate* isolate);
1510 static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object); 1513 static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object);
1511 1514
1512 // Returns the permanent hash code associated with this object. May return 1515 // Returns the permanent hash code associated with this object. May return
1513 // undefined if not yet created. 1516 // undefined if not yet created.
1514 Object* GetHash(); 1517 Object* GetHash();
1515 1518
1516 // Returns the permanent hash code associated with this object depending on 1519 // Returns the permanent hash code associated with this object depending on
1517 // the actual object type. May create and store a hash code if needed and none 1520 // the actual object type. May create and store a hash code if needed and none
1518 // exists. 1521 // exists.
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 Handle<JSReceiver> object, 1964 Handle<JSReceiver> object,
1962 Handle<Name> name); 1965 Handle<Name> name);
1963 1966
1964 static inline PropertyAttributes GetElementAttribute( 1967 static inline PropertyAttributes GetElementAttribute(
1965 Handle<JSReceiver> object, 1968 Handle<JSReceiver> object,
1966 uint32_t index); 1969 uint32_t index);
1967 static inline PropertyAttributes GetOwnElementAttribute( 1970 static inline PropertyAttributes GetOwnElementAttribute(
1968 Handle<JSReceiver> object, 1971 Handle<JSReceiver> object,
1969 uint32_t index); 1972 uint32_t index);
1970 1973
1971 // Return the object's prototype (might be Heap::null_value()). 1974 // Return the object's prototype (might be Heap::null_value()). Use a
1975 // PrototypeIterator instead.
1976 //
1977 // TODO(jochen): Make this method private.
1972 inline Object* GetPrototype(); 1978 inline Object* GetPrototype();
1973 1979
1974 // Return the constructor function (may be Heap::null_value()). 1980 // Return the constructor function (may be Heap::null_value()).
1975 inline Object* GetConstructor(); 1981 inline Object* GetConstructor();
1976 1982
1977 // Retrieves a permanent object identity hash code. The undefined value might 1983 // Retrieves a permanent object identity hash code. The undefined value might
1978 // be returned in case no hash was created yet. 1984 // be returned in case no hash was created yet.
1979 inline Object* GetIdentityHash(); 1985 inline Object* GetIdentityHash();
1980 1986
1981 // Retrieves a permanent object identity hash code. May create and store a 1987 // Retrieves a permanent object identity hash code. May create and store a
(...skipping 9162 matching lines...) Expand 10 before | Expand all | Expand 10 after
11144 } else { 11150 } else {
11145 value &= ~(1 << bit_position); 11151 value &= ~(1 << bit_position);
11146 } 11152 }
11147 return value; 11153 return value;
11148 } 11154 }
11149 }; 11155 };
11150 11156
11151 } } // namespace v8::internal 11157 } } // namespace v8::internal
11152 11158
11153 #endif // V8_OBJECTS_H_ 11159 #endif // V8_OBJECTS_H_
OLDNEW
« 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