OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 String* name, | 1255 String* name, |
1256 PropertyAttributes* attributes); | 1256 PropertyAttributes* attributes); |
1257 | 1257 |
1258 // Tells whether this object needs to be loaded. | 1258 // Tells whether this object needs to be loaded. |
1259 inline bool IsLoaded(); | 1259 inline bool IsLoaded(); |
1260 | 1260 |
1261 bool HasProperty(String* name) { | 1261 bool HasProperty(String* name) { |
1262 return GetPropertyAttribute(name) != ABSENT; | 1262 return GetPropertyAttribute(name) != ABSENT; |
1263 } | 1263 } |
1264 | 1264 |
| 1265 // Can cause a GC if it hits an interceptor. |
1265 bool HasLocalProperty(String* name) { | 1266 bool HasLocalProperty(String* name) { |
1266 return GetLocalPropertyAttribute(name) != ABSENT; | 1267 return GetLocalPropertyAttribute(name) != ABSENT; |
1267 } | 1268 } |
1268 | 1269 |
1269 Object* DeleteProperty(String* name); | 1270 Object* DeleteProperty(String* name); |
1270 Object* DeleteElement(uint32_t index); | 1271 Object* DeleteElement(uint32_t index); |
1271 Object* DeleteLazyProperty(LookupResult* result, String* name); | 1272 Object* DeleteLazyProperty(LookupResult* result, String* name); |
1272 | 1273 |
1273 // Tests for the fast common case for property enumeration. | 1274 // Tests for the fast common case for property enumeration. |
1274 bool IsSimpleEnum(); | 1275 bool IsSimpleEnum(); |
(...skipping 3101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4376 } else { | 4377 } else { |
4377 value &= ~(1 << bit_position); | 4378 value &= ~(1 << bit_position); |
4378 } | 4379 } |
4379 return value; | 4380 return value; |
4380 } | 4381 } |
4381 }; | 4382 }; |
4382 | 4383 |
4383 } } // namespace v8::internal | 4384 } } // namespace v8::internal |
4384 | 4385 |
4385 #endif // V8_OBJECTS_H_ | 4386 #endif // V8_OBJECTS_H_ |
OLD | NEW |