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

Side by Side Diff: src/objects.h

Issue 1481383003: [runtime] [proxy] Adding [[SetPrototypeOf]] trap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: using new proxy method 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 9482 matching lines...) Expand 10 before | Expand all | Expand 10 after
9493 9493
9494 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); 9494 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy);
9495 9495
9496 DECLARE_CAST(JSProxy) 9496 DECLARE_CAST(JSProxy)
9497 9497
9498 bool IsRevoked(); 9498 bool IsRevoked();
9499 9499
9500 // ES6 9.5.1 9500 // ES6 9.5.1
9501 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver); 9501 static MaybeHandle<Object> GetPrototype(Handle<JSProxy> receiver);
9502 9502
9503 // ES6 9.5.2
9504 MUST_USE_RESULT static Maybe<bool> SetPrototype(Handle<JSProxy> proxy,
9505 Handle<Object> value,
9506 bool from_javascript,
9507 ShouldThrow should_throw);
9503 // ES6 9.5.3 9508 // ES6 9.5.3
9504 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy); 9509 MUST_USE_RESULT static Maybe<bool> IsExtensible(Handle<JSProxy> proxy);
9505 9510
9506 // ES6 9.5.4 (when passed DONT_THROW) 9511 // ES6 9.5.4 (when passed DONT_THROW)
9507 MUST_USE_RESULT static Maybe<bool> PreventExtensions( 9512 MUST_USE_RESULT static Maybe<bool> PreventExtensions(
9508 Handle<JSProxy> proxy, ShouldThrow should_throw); 9513 Handle<JSProxy> proxy, ShouldThrow should_throw);
9509 9514
9510 // ES6 9.5.5 9515 // ES6 9.5.5
9511 static bool GetOwnPropertyDescriptor(LookupIterator* it, 9516 static bool GetOwnPropertyDescriptor(LookupIterator* it,
9512 PropertyDescriptor* desc); 9517 PropertyDescriptor* desc);
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
10704 } 10709 }
10705 return value; 10710 return value;
10706 } 10711 }
10707 }; 10712 };
10708 10713
10709 10714
10710 } // NOLINT, false-positive due to second-order macros. 10715 } // NOLINT, false-positive due to second-order macros.
10711 } // NOLINT, false-positive due to second-order macros. 10716 } // NOLINT, false-positive due to second-order macros.
10712 10717
10713 #endif // V8_OBJECTS_H_ 10718 #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