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

Side by Side Diff: src/objects.h

Issue 1486553002: [proxies] Use IsRevoked where possible, remove has_handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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 | « src/messages.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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 9479 matching lines...) Expand 10 before | Expand all | Expand 10 after
9490 public: 9490 public:
9491 // [handler]: The handler property. 9491 // [handler]: The handler property.
9492 DECL_ACCESSORS(handler, Object) 9492 DECL_ACCESSORS(handler, Object)
9493 // [target]: The target property. 9493 // [target]: The target property.
9494 DECL_ACCESSORS(target, Object) 9494 DECL_ACCESSORS(target, Object)
9495 // [hash]: The hash code property (undefined if not initialized yet). 9495 // [hash]: The hash code property (undefined if not initialized yet).
9496 DECL_ACCESSORS(hash, Object) 9496 DECL_ACCESSORS(hash, Object)
9497 9497
9498 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); 9498 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy);
9499 9499
9500 inline bool has_handler();
9501
9502 DECLARE_CAST(JSProxy) 9500 DECLARE_CAST(JSProxy)
9503 9501
9504 static bool IsRevoked(Handle<JSProxy> proxy); 9502 bool IsRevoked();
9505 9503
9506 // ES6 9.5.1 9504 // ES6 9.5.1
9507 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); 9505 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver);
9508 9506
9509 // ES6 9.5.3 9507 // ES6 9.5.3
9510 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); 9508 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy);
9511 9509
9512 // ES6 9.5.4 (when passed DONT_THROW) 9510 // ES6 9.5.4 (when passed DONT_THROW)
9513 MUST_USE_RESULT static Maybe<bool> PreventExtensions( 9511 MUST_USE_RESULT static Maybe<bool> PreventExtensions(
9514 Handle<JSProxy> proxy, ShouldThrow should_throw); 9512 Handle<JSProxy> proxy, ShouldThrow should_throw);
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
10718 } 10716 }
10719 return value; 10717 return value;
10720 } 10718 }
10721 }; 10719 };
10722 10720
10723 10721
10724 } // NOLINT, false-positive due to second-order macros. 10722 } // NOLINT, false-positive due to second-order macros.
10725 } // NOLINT, false-positive due to second-order macros. 10723 } // NOLINT, false-positive due to second-order macros.
10726 10724
10727 #endif // V8_OBJECTS_H_ 10725 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698