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

Side by Side Diff: src/objects.h

Issue 1421033002: [es6] Partially implement Reflect.defineProperty. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address a comment and rebase. 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 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 1872
1873 MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate, 1873 MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate,
1874 Handle<Object> object, 1874 Handle<Object> object,
1875 Handle<Object> name, 1875 Handle<Object> name,
1876 Handle<Object> attributes); 1876 Handle<Object> attributes);
1877 MUST_USE_RESULT static Object* DefineProperties(Isolate* isolate, 1877 MUST_USE_RESULT static Object* DefineProperties(Isolate* isolate,
1878 Handle<Object> object, 1878 Handle<Object> object,
1879 Handle<Object> properties); 1879 Handle<Object> properties);
1880 1880
1881 // "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation. 1881 // "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation.
1882 static bool DefineOwnProperty(Isolate* isolate, Handle<JSObject> object, 1882 static bool DefineOwnProperty(Isolate* isolate, Handle<JSReceiver> object,
1883 Handle<Object> key, PropertyDescriptor* desc, 1883 Handle<Object> key, PropertyDescriptor* desc,
1884 ShouldThrow should_throw); 1884 ShouldThrow should_throw);
1885 1885
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,
(...skipping 8945 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