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

Side by Side Diff: src/objects.h

Issue 1491743010: Reland of [proxies] Make Object.prototype.isPrototypeOf work with proxies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 LanguageMode language_mode = SLOPPY); 1298 LanguageMode language_mode = SLOPPY);
1299 1299
1300 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( 1300 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement(
1301 Isolate* isolate, Handle<Object> object, uint32_t index, 1301 Isolate* isolate, Handle<Object> object, uint32_t index,
1302 Handle<Object> value, LanguageMode language_mode); 1302 Handle<Object> value, LanguageMode language_mode);
1303 1303
1304 // Get the first non-hidden prototype. 1304 // Get the first non-hidden prototype.
1305 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, 1305 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate,
1306 Handle<Object> receiver); 1306 Handle<Object> receiver);
1307 1307
1308 bool HasInPrototypeChain(Isolate* isolate, Object* object); 1308 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain(Isolate* isolate,
1309 Handle<Object> object,
1310 Handle<Object> proto);
1309 1311
1310 // Returns the permanent hash code associated with this object. May return 1312 // Returns the permanent hash code associated with this object. May return
1311 // undefined if not yet created. 1313 // undefined if not yet created.
1312 Object* GetHash(); 1314 Object* GetHash();
1313 1315
1314 // Returns undefined for JSObjects, but returns the hash code for simple 1316 // Returns undefined for JSObjects, but returns the hash code for simple
1315 // objects. This avoids a double lookup in the cases where we know we will 1317 // objects. This avoids a double lookup in the cases where we know we will
1316 // add the hash to the JSObject if it does not already exist. 1318 // add the hash to the JSObject if it does not already exist.
1317 Object* GetSimpleHash(); 1319 Object* GetSimpleHash();
1318 1320
(...skipping 9397 matching lines...) Expand 10 before | Expand all | Expand 10 after
10716 } 10718 }
10717 return value; 10719 return value;
10718 } 10720 }
10719 }; 10721 };
10720 10722
10721 10723
10722 } // NOLINT, false-positive due to second-order macros. 10724 } // NOLINT, false-positive due to second-order macros.
10723 } // NOLINT, false-positive due to second-order macros. 10725 } // NOLINT, false-positive due to second-order macros.
10724 10726
10725 #endif // V8_OBJECTS_H_ 10727 #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