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

Side by Side Diff: src/objects.h

Issue 24176002: Handlify JSReceiver::SetPropertyWithDefinedSetter method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 PropertyAttributes attributes, 1957 PropertyAttributes attributes,
1958 StrictModeFlag strict_mode, 1958 StrictModeFlag strict_mode,
1959 StoreFromKeyed store_mode = 1959 StoreFromKeyed store_mode =
1960 MAY_BE_STORE_FROM_KEYED); 1960 MAY_BE_STORE_FROM_KEYED);
1961 static Handle<Object> SetElement(Handle<JSReceiver> object, 1961 static Handle<Object> SetElement(Handle<JSReceiver> object,
1962 uint32_t index, 1962 uint32_t index,
1963 Handle<Object> value, 1963 Handle<Object> value,
1964 PropertyAttributes attributes, 1964 PropertyAttributes attributes,
1965 StrictModeFlag strict_mode); 1965 StrictModeFlag strict_mode);
1966 1966
1967 MUST_USE_RESULT MaybeObject* SetPropertyWithDefinedSetter(JSReceiver* setter,
1968 Object* value);
1969
1970 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 1967 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
1971 static inline bool HasProperty(Handle<JSReceiver> object, Handle<Name> name); 1968 static inline bool HasProperty(Handle<JSReceiver> object, Handle<Name> name);
1972 static inline bool HasLocalProperty(Handle<JSReceiver>, Handle<Name> name); 1969 static inline bool HasLocalProperty(Handle<JSReceiver>, Handle<Name> name);
1973 static inline bool HasElement(Handle<JSReceiver> object, uint32_t index); 1970 static inline bool HasElement(Handle<JSReceiver> object, uint32_t index);
1974 static inline bool HasLocalElement(Handle<JSReceiver> object, uint32_t index); 1971 static inline bool HasLocalElement(Handle<JSReceiver> object, uint32_t index);
1975 1972
1976 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7. 1973 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7.
1977 static Handle<Object> DeleteProperty(Handle<JSReceiver> object, 1974 static Handle<Object> DeleteProperty(Handle<JSReceiver> object,
1978 Handle<Name> name, 1975 Handle<Name> name,
1979 DeleteMode mode = NORMAL_DELETION); 1976 DeleteMode mode = NORMAL_DELETION);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 2008
2012 // Lookup a property. If found, the result is valid and has 2009 // Lookup a property. If found, the result is valid and has
2013 // detailed information. 2010 // detailed information.
2014 void LocalLookup(Name* name, LookupResult* result, 2011 void LocalLookup(Name* name, LookupResult* result,
2015 bool search_hidden_prototypes = false); 2012 bool search_hidden_prototypes = false);
2016 void Lookup(Name* name, LookupResult* result); 2013 void Lookup(Name* name, LookupResult* result);
2017 2014
2018 protected: 2015 protected:
2019 Smi* GenerateIdentityHash(); 2016 Smi* GenerateIdentityHash();
2020 2017
2018 static Handle<Object> SetPropertyWithDefinedSetter(Handle<JSReceiver> object,
2019 Handle<JSReceiver> setter,
2020 Handle<Object> value);
2021
2021 private: 2022 private:
2022 PropertyAttributes GetPropertyAttributeForResult(JSReceiver* receiver, 2023 PropertyAttributes GetPropertyAttributeForResult(JSReceiver* receiver,
2023 LookupResult* result, 2024 LookupResult* result,
2024 Name* name, 2025 Name* name,
2025 bool continue_search); 2026 bool continue_search);
2026 2027
2027 static Handle<Object> SetProperty(Handle<JSReceiver> receiver, 2028 static Handle<Object> SetProperty(Handle<JSReceiver> receiver,
2028 LookupResult* result, 2029 LookupResult* result,
2029 Handle<Name> key, 2030 Handle<Name> key,
2030 Handle<Object> value, 2031 Handle<Object> value,
(...skipping 8216 matching lines...) Expand 10 before | Expand all | Expand 10 after
10247 } else { 10248 } else {
10248 value &= ~(1 << bit_position); 10249 value &= ~(1 << bit_position);
10249 } 10250 }
10250 return value; 10251 return value;
10251 } 10252 }
10252 }; 10253 };
10253 10254
10254 } } // namespace v8::internal 10255 } } // namespace v8::internal
10255 10256
10256 #endif // V8_OBJECTS_H_ 10257 #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