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

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: Rebase. 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.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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 Handle<Object> value); 1283 Handle<Object> value);
1284 1284
1285 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( 1285 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement(
1286 Isolate* isolate, Handle<Object> object, uint32_t index, 1286 Isolate* isolate, Handle<Object> object, uint32_t index,
1287 LanguageMode language_mode = SLOPPY); 1287 LanguageMode language_mode = SLOPPY);
1288 1288
1289 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( 1289 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement(
1290 Isolate* isolate, Handle<Object> object, uint32_t index, 1290 Isolate* isolate, Handle<Object> object, uint32_t index,
1291 Handle<Object> value, LanguageMode language_mode); 1291 Handle<Object> value, LanguageMode language_mode);
1292 1292
1293 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( 1293 // Get the first non-hidden prototype.
1294 Isolate* isolate, Handle<Object> receiver); 1294 static inline Handle<Object> GetPrototype(Isolate* isolate,
1295 Handle<Object> receiver);
1295 1296
1296 bool HasInPrototypeChain(Isolate* isolate, Object* object); 1297 bool HasInPrototypeChain(Isolate* isolate, Object* object);
1297 1298
1298 // Returns the permanent hash code associated with this object. May return 1299 // Returns the permanent hash code associated with this object. May return
1299 // undefined if not yet created. 1300 // undefined if not yet created.
1300 Object* GetHash(); 1301 Object* GetHash();
1301 1302
1302 // Returns undefined for JSObjects, but returns the hash code for simple 1303 // Returns undefined for JSObjects, but returns the hash code for simple
1303 // objects. This avoids a double lookup in the cases where we know we will 1304 // objects. This avoids a double lookup in the cases where we know we will
1304 // add the hash to the JSObject if it does not already exist. 1305 // add the hash to the JSObject if it does not already exist.
(...skipping 9480 matching lines...) Expand 10 before | Expand all | Expand 10 after
10785 // (elements + properties) in the current level. 10786 // (elements + properties) in the current level.
10786 int levelLength_; 10787 int levelLength_;
10787 10788
10788 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10789 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10789 }; 10790 };
10790 10791
10791 } // NOLINT, false-positive due to second-order macros. 10792 } // NOLINT, false-positive due to second-order macros.
10792 } // NOLINT, false-positive due to second-order macros. 10793 } // NOLINT, false-positive due to second-order macros.
10793 10794
10794 #endif // V8_OBJECTS_H_ 10795 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698