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

Side by Side Diff: src/objects.h

Issue 1408163005: [es6] Partially implement Reflect.getOwnPropertyDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/builtins.cc ('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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 static bool OrdinaryDefineOwnProperty(Isolate* isolate, 1886 static bool OrdinaryDefineOwnProperty(Isolate* isolate,
1887 Handle<JSObject> object, 1887 Handle<JSObject> object,
1888 Handle<Object> key, 1888 Handle<Object> key,
1889 PropertyDescriptor* desc, 1889 PropertyDescriptor* desc,
1890 ShouldThrow should_throw); 1890 ShouldThrow should_throw);
1891 static bool OrdinaryDefineOwnProperty(LookupIterator* it, 1891 static bool OrdinaryDefineOwnProperty(LookupIterator* it,
1892 PropertyDescriptor* desc, 1892 PropertyDescriptor* desc,
1893 ShouldThrow should_throw); 1893 ShouldThrow should_throw);
1894 1894
1895 static bool GetOwnPropertyDescriptor(Isolate* isolate, 1895 static bool GetOwnPropertyDescriptor(Isolate* isolate,
1896 Handle<JSObject> object, 1896 Handle<JSReceiver> object,
1897 Handle<Object> key, 1897 Handle<Object> key,
1898 PropertyDescriptor* desc); 1898 PropertyDescriptor* desc);
1899 static bool GetOwnPropertyDescriptor(LookupIterator* it, 1899 static bool GetOwnPropertyDescriptor(LookupIterator* it,
1900 PropertyDescriptor* desc); 1900 PropertyDescriptor* desc);
1901 1901
1902 // Disallow further properties to be added to the object. This is 1902 // Disallow further properties to be added to the object. This is
1903 // ES6's [[PreventExtensions]] when passed DONT_THROW. 1903 // ES6's [[PreventExtensions]] when passed DONT_THROW.
1904 MUST_USE_RESULT static Maybe<bool> PreventExtensions( 1904 MUST_USE_RESULT static Maybe<bool> PreventExtensions(
1905 Handle<JSReceiver> object, ShouldThrow should_throw); 1905 Handle<JSReceiver> object, ShouldThrow should_throw);
1906 1906
(...skipping 8931 matching lines...) Expand 10 before | Expand all | Expand 10 after
10838 // (elements + properties) in the current level. 10838 // (elements + properties) in the current level.
10839 int levelLength_ = 0; 10839 int levelLength_ = 0;
10840 10840
10841 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10841 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10842 }; 10842 };
10843 10843
10844 } // NOLINT, false-positive due to second-order macros. 10844 } // NOLINT, false-positive due to second-order macros.
10845 } // NOLINT, false-positive due to second-order macros. 10845 } // NOLINT, false-positive due to second-order macros.
10846 10846
10847 #endif // V8_OBJECTS_H_ 10847 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698