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

Side by Side Diff: src/objects.h

Issue 5861006: Change Object.defineProperty to accept undefined as getters and setters and t... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 InterceptorInfo* GetNamedInterceptor(); 1361 InterceptorInfo* GetNamedInterceptor();
1362 InterceptorInfo* GetIndexedInterceptor(); 1362 InterceptorInfo* GetIndexedInterceptor();
1363 1363
1364 inline PropertyAttributes GetPropertyAttribute(String* name); 1364 inline PropertyAttributes GetPropertyAttribute(String* name);
1365 PropertyAttributes GetPropertyAttributeWithReceiver(JSObject* receiver, 1365 PropertyAttributes GetPropertyAttributeWithReceiver(JSObject* receiver,
1366 String* name); 1366 String* name);
1367 PropertyAttributes GetLocalPropertyAttribute(String* name); 1367 PropertyAttributes GetLocalPropertyAttribute(String* name);
1368 1368
1369 MUST_USE_RESULT MaybeObject* DefineAccessor(String* name, 1369 MUST_USE_RESULT MaybeObject* DefineAccessor(String* name,
1370 bool is_getter, 1370 bool is_getter,
1371 JSFunction* fun, 1371 Object* fun,
1372 PropertyAttributes attributes); 1372 PropertyAttributes attributes);
1373 Object* LookupAccessor(String* name, bool is_getter); 1373 Object* LookupAccessor(String* name, bool is_getter);
1374 1374
1375 MUST_USE_RESULT MaybeObject* DefineAccessor(AccessorInfo* info); 1375 MUST_USE_RESULT MaybeObject* DefineAccessor(AccessorInfo* info);
1376 1376
1377 // Used from Object::GetProperty(). 1377 // Used from Object::GetProperty().
1378 MaybeObject* GetPropertyWithFailedAccessCheck( 1378 MaybeObject* GetPropertyWithFailedAccessCheck(
1379 Object* receiver, 1379 Object* receiver,
1380 LookupResult* result, 1380 LookupResult* result,
1381 String* name, 1381 String* name,
(...skipping 4737 matching lines...) Expand 10 before | Expand all | Expand 10 after
6119 } else { 6119 } else {
6120 value &= ~(1 << bit_position); 6120 value &= ~(1 << bit_position);
6121 } 6121 }
6122 return value; 6122 return value;
6123 } 6123 }
6124 }; 6124 };
6125 6125
6126 } } // namespace v8::internal 6126 } } // namespace v8::internal
6127 6127
6128 #endif // V8_OBJECTS_H_ 6128 #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