OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1420 Object* GetPropertyPostInterceptor(JSObject* receiver, | 1420 Object* GetPropertyPostInterceptor(JSObject* receiver, |
1421 String* name, | 1421 String* name, |
1422 PropertyAttributes* attributes); | 1422 PropertyAttributes* attributes); |
1423 Object* GetLazyProperty(Object* receiver, | 1423 Object* GetLazyProperty(Object* receiver, |
1424 LookupResult* result, | 1424 LookupResult* result, |
1425 String* name, | 1425 String* name, |
1426 PropertyAttributes* attributes); | 1426 PropertyAttributes* attributes); |
1427 | 1427 |
1428 // Tells whether this object needs to be loaded. | 1428 // Tells whether this object needs to be loaded. |
1429 inline bool IsLoaded(); | 1429 inline bool IsLoaded(); |
| 1430 |
| 1431 // Returns true if this is an instance of an api function and has |
| 1432 // been modified since it was created. May give false positives. |
| 1433 bool IsDirty(); |
1430 | 1434 |
1431 bool HasProperty(String* name) { | 1435 bool HasProperty(String* name) { |
1432 return GetPropertyAttribute(name) != ABSENT; | 1436 return GetPropertyAttribute(name) != ABSENT; |
1433 } | 1437 } |
1434 | 1438 |
1435 // Can cause a GC if it hits an interceptor. | 1439 // Can cause a GC if it hits an interceptor. |
1436 bool HasLocalProperty(String* name) { | 1440 bool HasLocalProperty(String* name) { |
1437 return GetLocalPropertyAttribute(name) != ABSENT; | 1441 return GetLocalPropertyAttribute(name) != ABSENT; |
1438 } | 1442 } |
1439 | 1443 |
(...skipping 3423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4863 } else { | 4867 } else { |
4864 value &= ~(1 << bit_position); | 4868 value &= ~(1 << bit_position); |
4865 } | 4869 } |
4866 return value; | 4870 return value; |
4867 } | 4871 } |
4868 }; | 4872 }; |
4869 | 4873 |
4870 } } // namespace v8::internal | 4874 } } // namespace v8::internal |
4871 | 4875 |
4872 #endif // V8_OBJECTS_H_ | 4876 #endif // V8_OBJECTS_H_ |
OLD | NEW |