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

Side by Side Diff: src/objects.h

Issue 22806004: Remove dead JSReceiver::SetElement method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 MUST_USE_RESULT MaybeObject* SetPropertyWithDefinedSetter(JSReceiver* setter, 1973 MUST_USE_RESULT MaybeObject* SetPropertyWithDefinedSetter(JSReceiver* setter,
1974 Object* value); 1974 Object* value);
1975 1975
1976 static Handle<Object> DeleteProperty(Handle<JSReceiver> object, 1976 static Handle<Object> DeleteProperty(Handle<JSReceiver> object,
1977 Handle<Name> name, 1977 Handle<Name> name,
1978 DeleteMode mode = NORMAL_DELETION); 1978 DeleteMode mode = NORMAL_DELETION);
1979 static Handle<Object> DeleteElement(Handle<JSReceiver> object, 1979 static Handle<Object> DeleteElement(Handle<JSReceiver> object,
1980 uint32_t index, 1980 uint32_t index,
1981 DeleteMode mode); 1981 DeleteMode mode);
1982 1982
1983 // Set the index'th array element.
1984 // Can cause GC, or return failure if GC is required.
1985 MUST_USE_RESULT MaybeObject* SetElement(uint32_t index,
1986 Object* value,
1987 PropertyAttributes attributes,
1988 StrictModeFlag strict_mode,
1989 bool check_prototype);
1990
1991 // Tests for the fast common case for property enumeration. 1983 // Tests for the fast common case for property enumeration.
1992 bool IsSimpleEnum(); 1984 bool IsSimpleEnum();
1993 1985
1994 // Returns the class name ([[Class]] property in the specification). 1986 // Returns the class name ([[Class]] property in the specification).
1995 String* class_name(); 1987 String* class_name();
1996 1988
1997 // Returns the constructor name (the name (possibly, inferred name) of the 1989 // Returns the constructor name (the name (possibly, inferred name) of the
1998 // function that was used to instantiate the object). 1990 // function that was used to instantiate the object).
1999 String* constructor_name(); 1991 String* constructor_name();
2000 1992
(...skipping 7032 matching lines...) Expand 10 before | Expand all | Expand 10 after
9033 MUST_USE_RESULT MaybeObject* GetElementWithHandler( 9025 MUST_USE_RESULT MaybeObject* GetElementWithHandler(
9034 Object* receiver, 9026 Object* receiver,
9035 uint32_t index); 9027 uint32_t index);
9036 9028
9037 MUST_USE_RESULT MaybeObject* SetPropertyWithHandler( 9029 MUST_USE_RESULT MaybeObject* SetPropertyWithHandler(
9038 JSReceiver* receiver, 9030 JSReceiver* receiver,
9039 Name* name, 9031 Name* name,
9040 Object* value, 9032 Object* value,
9041 PropertyAttributes attributes, 9033 PropertyAttributes attributes,
9042 StrictModeFlag strict_mode); 9034 StrictModeFlag strict_mode);
9043 MUST_USE_RESULT MaybeObject* SetElementWithHandler(
9044 JSReceiver* receiver,
9045 uint32_t index,
9046 Object* value,
9047 StrictModeFlag strict_mode);
9048 9035
9049 // If the handler defines an accessor property with a setter, invoke it. 9036 // If the handler defines an accessor property with a setter, invoke it.
9050 // If it defines an accessor property without a setter, or a data property 9037 // If it defines an accessor property without a setter, or a data property
9051 // that is read-only, throw. In all these cases set '*done' to true, 9038 // that is read-only, throw. In all these cases set '*done' to true,
9052 // otherwise set it to false. 9039 // otherwise set it to false.
9053 MUST_USE_RESULT MaybeObject* SetPropertyViaPrototypesWithHandler( 9040 MUST_USE_RESULT MaybeObject* SetPropertyViaPrototypesWithHandler(
9054 JSReceiver* receiver, 9041 JSReceiver* receiver,
9055 Name* name, 9042 Name* name,
9056 Object* value, 9043 Object* value,
9057 PropertyAttributes attributes, 9044 PropertyAttributes attributes,
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
10171 } else { 10158 } else {
10172 value &= ~(1 << bit_position); 10159 value &= ~(1 << bit_position);
10173 } 10160 }
10174 return value; 10161 return value;
10175 } 10162 }
10176 }; 10163 };
10177 10164
10178 } } // namespace v8::internal 10165 } } // namespace v8::internal
10179 10166
10180 #endif // V8_OBJECTS_H_ 10167 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698