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

Side by Side Diff: src/objects.h

Issue 1474083003: [proxies] Implement [[Enumerate]] and [[OwnPropertyKeys]] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: gcmole fix 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 9506 matching lines...) Expand 10 before | Expand all | Expand 10 after
9517 9517
9518 // ES6 9.5.6 9518 // ES6 9.5.6
9519 static bool DefineOwnProperty(Isolate* isolate, Handle<JSProxy> object, 9519 static bool DefineOwnProperty(Isolate* isolate, Handle<JSProxy> object,
9520 Handle<Object> key, PropertyDescriptor* desc, 9520 Handle<Object> key, PropertyDescriptor* desc,
9521 ShouldThrow should_throw); 9521 ShouldThrow should_throw);
9522 9522
9523 // ES6 9.5.10 (when passed SLOPPY) 9523 // ES6 9.5.10 (when passed SLOPPY)
9524 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement( 9524 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement(
9525 Handle<JSProxy> proxy, Handle<Name> name, LanguageMode language_mode); 9525 Handle<JSProxy> proxy, Handle<Name> name, LanguageMode language_mode);
9526 9526
9527 // ES6 9.5.11
9528 static bool Enumerate(Isolate* isolate, Handle<JSReceiver> receiver,
9529 Handle<JSProxy> proxy, KeyAccumulator* accumulator);
9530
9531 // ES6 9.5.12
9532 static bool OwnPropertyKeys(Isolate* isolate, Handle<JSReceiver> receiver,
9533 Handle<JSProxy> proxy, KeyFilter filter,
9534 Enumerability enum_policy,
9535 KeyAccumulator* accumulator);
9536
9527 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithHandler( 9537 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithHandler(
9528 Handle<JSProxy> proxy, 9538 Handle<JSProxy> proxy,
9529 Handle<Object> receiver, 9539 Handle<Object> receiver,
9530 Handle<Name> name); 9540 Handle<Name> name);
9531 9541
9532 // If the handler defines an accessor property with a setter, invoke it. 9542 // If the handler defines an accessor property with a setter, invoke it.
9533 // If it defines an accessor property without a setter, or a data property 9543 // If it defines an accessor property without a setter, or a data property
9534 // that is read-only, fail. In all these cases set '*done' to true. 9544 // that is read-only, fail. In all these cases set '*done' to true.
9535 // Otherwise set it to false, in which case the return value is not 9545 // Otherwise set it to false, in which case the return value is not
9536 // meaningful. 9546 // meaningful.
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
10719 } 10729 }
10720 return value; 10730 return value;
10721 } 10731 }
10722 }; 10732 };
10723 10733
10724 10734
10725 } // NOLINT, false-positive due to second-order macros. 10735 } // NOLINT, false-positive due to second-order macros.
10726 } // NOLINT, false-positive due to second-order macros. 10736 } // NOLINT, false-positive due to second-order macros.
10727 10737
10728 #endif // V8_OBJECTS_H_ 10738 #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