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

Side by Side Diff: src/objects.h

Issue 1402973002: Move some code from Runtime_GetPrototype into a new Object::GetPrototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 Handle<Object> value); 1279 Handle<Object> value);
1280 1280
1281 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( 1281 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement(
1282 Isolate* isolate, Handle<Object> object, uint32_t index, 1282 Isolate* isolate, Handle<Object> object, uint32_t index,
1283 LanguageMode language_mode = SLOPPY); 1283 LanguageMode language_mode = SLOPPY);
1284 1284
1285 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( 1285 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement(
1286 Isolate* isolate, Handle<Object> object, uint32_t index, 1286 Isolate* isolate, Handle<Object> object, uint32_t index,
1287 Handle<Object> value, LanguageMode language_mode); 1287 Handle<Object> value, LanguageMode language_mode);
1288 1288
1289 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( 1289 // Get the first non-hidden prototype.
1290 Isolate* isolate, Handle<Object> receiver); 1290 static inline Handle<Object> GetPrototype(Isolate* isolate,
1291 Handle<Object> receiver);
1292 static inline Handle<Object> GetPrototypeWithAccess(Isolate* isolate,
1293 Handle<Object> receiver);
1291 1294
1292 bool HasInPrototypeChain(Isolate* isolate, Object* object); 1295 bool HasInPrototypeChain(Isolate* isolate, Object* object);
1293 1296
1294 // Returns the permanent hash code associated with this object. May return 1297 // Returns the permanent hash code associated with this object. May return
1295 // undefined if not yet created. 1298 // undefined if not yet created.
1296 Object* GetHash(); 1299 Object* GetHash();
1297 1300
1298 // Returns undefined for JSObjects, but returns the hash code for simple 1301 // Returns undefined for JSObjects, but returns the hash code for simple
1299 // objects. This avoids a double lookup in the cases where we know we will 1302 // objects. This avoids a double lookup in the cases where we know we will
1300 // add the hash to the JSObject if it does not already exist. 1303 // add the hash to the JSObject if it does not already exist.
(...skipping 9379 matching lines...) Expand 10 before | Expand all | Expand 10 after
10680 Handle<FixedArray> keys_; 10683 Handle<FixedArray> keys_;
10681 Handle<OrderedHashSet> set_; 10684 Handle<OrderedHashSet> set_;
10682 int length_; 10685 int length_;
10683 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10686 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10684 }; 10687 };
10685 10688
10686 } // NOLINT, false-positive due to second-order macros. 10689 } // NOLINT, false-positive due to second-order macros.
10687 } // NOLINT, false-positive due to second-order macros. 10690 } // NOLINT, false-positive due to second-order macros.
10688 10691
10689 #endif // V8_OBJECTS_H_ 10692 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698