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

Unified Diff: src/objects.h

Issue 1932163002: Reland of move more dead code after Object.observe removal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: don't throw on error Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/v8natives.js ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index b144c9cf8187ed44f8b33da6b1b676c928a1c125..f2b5139f9bc24cd1841fcfb952d4db93a00432c5 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1130,6 +1130,10 @@ class Object {
MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject(
Isolate* isolate, Handle<Object> object, Handle<Context> context);
+ // ES6 section 9.2.1.2, OrdinaryCallBindThis for sloppy callee.
+ MUST_USE_RESULT static MaybeHandle<JSReceiver> ConvertReceiver(
+ Isolate* isolate, Handle<Object> object);
+
// ES6 section 7.1.14 ToPropertyKey
MUST_USE_RESULT static inline MaybeHandle<Name> ToName(Isolate* isolate,
Handle<Object> input);
@@ -1157,6 +1161,10 @@ class Object {
MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate,
Handle<Object> input);
+ // ES6 section 7.1.14 ToPropertyKey
+ MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey(
+ Isolate* isolate, Handle<Object> value);
+
// ES6 section 7.1.15 ToLength
MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate,
Handle<Object> input);
@@ -2179,13 +2187,6 @@ class JSObject: public JSReceiver {
MUST_USE_RESULT static Maybe<PropertyAttributes>
GetPropertyAttributesWithFailedAccessCheck(LookupIterator* it);
- // Retrieves an AccessorPair property from the given object. Might return
- // undefined if the property doesn't exist or is of a different kind.
- MUST_USE_RESULT static MaybeHandle<Object> GetAccessor(
- Handle<JSObject> object,
- Handle<Name> name,
- AccessorComponent component);
-
// Defines an AccessorPair property on the given object.
// TODO(mstarzinger): Rename to SetAccessor().
static MaybeHandle<Object> DefineAccessor(Handle<JSObject> object,
@@ -2299,15 +2300,6 @@ class JSObject: public JSReceiver {
void CollectOwnPropertyNames(KeyAccumulator* keys,
PropertyFilter filter = ALL_PROPERTIES);
- // Returns the number of properties on this object filtering out properties
- // with the specified attributes (ignoring interceptors).
- // TODO(jkummerow): Deprecated, only used by Object.observe.
- int NumberOfOwnElements(PropertyFilter filter);
- // Returns the number of elements on this object filtering out elements
- // with the specified attributes (ignoring interceptors).
- // TODO(jkummerow): Deprecated, only used by Object.observe.
- int GetOwnElementKeys(FixedArray* storage, PropertyFilter filter);
-
static void CollectOwnElementKeys(Handle<JSObject> object,
KeyAccumulator* keys,
PropertyFilter filter);
@@ -3490,22 +3482,15 @@ class Dictionary: public HashTable<Derived, Shape, Key> {
// Returns the number of elements in the dictionary filtering out properties
// with the specified attributes.
- // TODO(jkummerow): Deprecated, only used by Object.observe.
int NumberOfElementsFilterAttributes(PropertyFilter filter);
// Returns the number of enumerable elements in the dictionary.
- // TODO(jkummerow): Deprecated, only used by Object.observe.
int NumberOfEnumElements() {
return NumberOfElementsFilterAttributes(ENUMERABLE_STRINGS);
}
enum SortMode { UNSORTED, SORTED };
- // Fill in details for properties into storage.
- // Returns the number of properties added.
- // TODO(jkummerow): Deprecated, only used by Object.observe.
- int CopyKeysTo(FixedArray* storage, int index, PropertyFilter filter,
- SortMode sort_mode);
// Collect the keys into the given KeyAccumulator, in ascending chronological
// order of property creation.
static void CollectKeysTo(Handle<Dictionary<Derived, Shape, Key> > dictionary,
« 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