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

Side by Side Diff: src/objects.h

Issue 1558433002: [runtime] Migrate Object.create to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Camillos comment. Created 4 years, 11 months 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/js/v8natives.js ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 MUST_USE_RESULT static Maybe<bool> DeleteProperty(LookupIterator* it, 1829 MUST_USE_RESULT static Maybe<bool> DeleteProperty(LookupIterator* it,
1830 LanguageMode language_mode); 1830 LanguageMode language_mode);
1831 MUST_USE_RESULT static Maybe<bool> DeleteElement( 1831 MUST_USE_RESULT static Maybe<bool> DeleteElement(
1832 Handle<JSReceiver> object, uint32_t index, 1832 Handle<JSReceiver> object, uint32_t index,
1833 LanguageMode language_mode = SLOPPY); 1833 LanguageMode language_mode = SLOPPY);
1834 1834
1835 MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate, 1835 MUST_USE_RESULT static Object* DefineProperty(Isolate* isolate,
1836 Handle<Object> object, 1836 Handle<Object> object,
1837 Handle<Object> name, 1837 Handle<Object> name,
1838 Handle<Object> attributes); 1838 Handle<Object> attributes);
1839 MUST_USE_RESULT static Object* DefineProperties(Isolate* isolate, 1839 MUST_USE_RESULT static MaybeHandle<Object> DefineProperties(
1840 Handle<Object> object, 1840 Isolate* isolate, Handle<Object> object, Handle<Object> properties);
1841 Handle<Object> properties);
1842 1841
1843 // "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation. 1842 // "virtual" dispatcher to the correct [[DefineOwnProperty]] implementation.
1844 MUST_USE_RESULT static Maybe<bool> DefineOwnProperty( 1843 MUST_USE_RESULT static Maybe<bool> DefineOwnProperty(
1845 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key, 1844 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> key,
1846 PropertyDescriptor* desc, ShouldThrow should_throw); 1845 PropertyDescriptor* desc, ShouldThrow should_throw);
1847 1846
1848 // ES6 7.3.4 (when passed DONT_THROW) 1847 // ES6 7.3.4 (when passed DONT_THROW)
1849 MUST_USE_RESULT static Maybe<bool> CreateDataProperty( 1848 MUST_USE_RESULT static Maybe<bool> CreateDataProperty(
1850 LookupIterator* it, Handle<Object> value, ShouldThrow should_throw); 1849 LookupIterator* it, Handle<Object> value, ShouldThrow should_throw);
1851 1850
(...skipping 8868 matching lines...) Expand 10 before | Expand all | Expand 10 after
10720 } 10719 }
10721 return value; 10720 return value;
10722 } 10721 }
10723 }; 10722 };
10724 10723
10725 10724
10726 } // NOLINT, false-positive due to second-order macros. 10725 } // NOLINT, false-positive due to second-order macros.
10727 } // NOLINT, false-positive due to second-order macros. 10726 } // NOLINT, false-positive due to second-order macros.
10728 10727
10729 #endif // V8_OBJECTS_H_ 10728 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/v8natives.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698