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

Side by Side Diff: src/objects.h

Issue 1226473003: Cleanup API property handling (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/api.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 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 1674 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
1675 Handle<JSReceiver> object, Handle<Name> name); 1675 Handle<JSReceiver> object, Handle<Name> name);
1676 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>, 1676 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>,
1677 Handle<Name> name); 1677 Handle<Name> name);
1678 MUST_USE_RESULT static inline Maybe<bool> HasElement( 1678 MUST_USE_RESULT static inline Maybe<bool> HasElement(
1679 Handle<JSReceiver> object, uint32_t index); 1679 Handle<JSReceiver> object, uint32_t index);
1680 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement( 1680 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement(
1681 Handle<JSReceiver> object, uint32_t index); 1681 Handle<JSReceiver> object, uint32_t index);
1682 1682
1683 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7. 1683 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7.
1684 MUST_USE_RESULT static MaybeHandle<Object> DeletePropertyOrElement(
1685 Handle<JSReceiver> object, Handle<Name> name,
1686 LanguageMode language_mode = SLOPPY);
1684 MUST_USE_RESULT static MaybeHandle<Object> DeleteProperty( 1687 MUST_USE_RESULT static MaybeHandle<Object> DeleteProperty(
1685 Handle<JSReceiver> object, Handle<Name> name, 1688 Handle<JSReceiver> object, Handle<Name> name,
1686 LanguageMode language_mode = SLOPPY); 1689 LanguageMode language_mode = SLOPPY);
1687 MUST_USE_RESULT static MaybeHandle<Object> DeleteProperty( 1690 MUST_USE_RESULT static MaybeHandle<Object> DeleteProperty(
1688 LookupIterator* it, LanguageMode language_mode); 1691 LookupIterator* it, LanguageMode language_mode);
1689 MUST_USE_RESULT static MaybeHandle<Object> DeleteElement( 1692 MUST_USE_RESULT static MaybeHandle<Object> DeleteElement(
1690 Handle<JSReceiver> object, uint32_t index, 1693 Handle<JSReceiver> object, uint32_t index,
1691 LanguageMode language_mode = SLOPPY); 1694 LanguageMode language_mode = SLOPPY);
1692 1695
1693 // Tests for the fast common case for property enumeration. 1696 // Tests for the fast common case for property enumeration.
(...skipping 9120 matching lines...) Expand 10 before | Expand all | Expand 10 after
10814 } else { 10817 } else {
10815 value &= ~(1 << bit_position); 10818 value &= ~(1 << bit_position);
10816 } 10819 }
10817 return value; 10820 return value;
10818 } 10821 }
10819 }; 10822 };
10820 10823
10821 } } // namespace v8::internal 10824 } } // namespace v8::internal
10822 10825
10823 #endif // V8_OBJECTS_H_ 10826 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698