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 7991007: Search prototypes for accessor setters if interceptor returns empty value. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Initialize 'found'. Created 9 years, 2 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1980 uint32_t index, 1980 uint32_t index,
1981 Object* value, 1981 Object* value,
1982 StrictModeFlag strict_mode, 1982 StrictModeFlag strict_mode,
1983 bool check_prototype); 1983 bool check_prototype);
1984 MUST_USE_RESULT MaybeObject* SetElementWithoutInterceptor( 1984 MUST_USE_RESULT MaybeObject* SetElementWithoutInterceptor(
1985 uint32_t index, 1985 uint32_t index,
1986 Object* value, 1986 Object* value,
1987 StrictModeFlag strict_mode, 1987 StrictModeFlag strict_mode,
1988 bool check_prototype); 1988 bool check_prototype);
1989 1989
1990 // Searches the prototype chain for a callback setter and sets the property
1991 // with the setter if it finds one. The '*found' flag indicates whether
1992 // a setter was found or not.
1993 // This function can cause GC and can return a failure result with
1994 // '*found==true'.
1995 MUST_USE_RESULT MaybeObject* SetPropertyWithCallbackSetterInPrototypes(
1996 String* name,
1997 Object* value,
1998 PropertyAttributes attributes,
1999 bool* found,
2000 StrictModeFlag strict_mode);
2001
1990 MUST_USE_RESULT MaybeObject* DeletePropertyPostInterceptor(String* name, 2002 MUST_USE_RESULT MaybeObject* DeletePropertyPostInterceptor(String* name,
1991 DeleteMode mode); 2003 DeleteMode mode);
1992 MUST_USE_RESULT MaybeObject* DeletePropertyWithInterceptor(String* name); 2004 MUST_USE_RESULT MaybeObject* DeletePropertyWithInterceptor(String* name);
1993 2005
1994 MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index); 2006 MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index);
1995 2007
1996 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index); 2008 MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index);
1997 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index, 2009 MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index,
1998 DeleteMode mode); 2010 DeleteMode mode);
1999 2011
(...skipping 5531 matching lines...) Expand 10 before | Expand all | Expand 10 after
7531 } else { 7543 } else {
7532 value &= ~(1 << bit_position); 7544 value &= ~(1 << bit_position);
7533 } 7545 }
7534 return value; 7546 return value;
7535 } 7547 }
7536 }; 7548 };
7537 7549
7538 } } // namespace v8::internal 7550 } } // namespace v8::internal
7539 7551
7540 #endif // V8_OBJECTS_H_ 7552 #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