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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 void Lookup(String* name, LookupResult* result); | 1342 void Lookup(String* name, LookupResult* result); |
1343 | 1343 |
1344 // The following lookup functions skip interceptors. | 1344 // The following lookup functions skip interceptors. |
1345 void LocalLookupRealNamedProperty(String* name, LookupResult* result); | 1345 void LocalLookupRealNamedProperty(String* name, LookupResult* result); |
1346 void LookupRealNamedProperty(String* name, LookupResult* result); | 1346 void LookupRealNamedProperty(String* name, LookupResult* result); |
1347 void LookupRealNamedPropertyInPrototypes(String* name, LookupResult* result); | 1347 void LookupRealNamedPropertyInPrototypes(String* name, LookupResult* result); |
1348 void LookupCallbackSetterInPrototypes(String* name, LookupResult* result); | 1348 void LookupCallbackSetterInPrototypes(String* name, LookupResult* result); |
1349 Object* LookupCallbackSetterInPrototypes(uint32_t index); | 1349 Object* LookupCallbackSetterInPrototypes(uint32_t index); |
1350 void LookupCallback(String* name, LookupResult* result); | 1350 void LookupCallback(String* name, LookupResult* result); |
1351 | 1351 |
1352 inline Smi* InterceptorPropertyLookupHint(String* name); | |
1353 Object* GetInterceptorPropertyWithLookupHint(JSObject* receiver, | |
1354 Smi* lookup_hint, | |
1355 String* name, | |
1356 PropertyAttributes* attributes); | |
1357 static const int kLookupInHolder = -1; | |
1358 static const int kLookupInPrototype = -2; | |
1359 | |
1360 // Returns the number of properties on this object filtering out properties | 1352 // Returns the number of properties on this object filtering out properties |
1361 // with the specified attributes (ignoring interceptors). | 1353 // with the specified attributes (ignoring interceptors). |
1362 int NumberOfLocalProperties(PropertyAttributes filter); | 1354 int NumberOfLocalProperties(PropertyAttributes filter); |
1363 // Returns the number of enumerable properties (ignoring interceptors). | 1355 // Returns the number of enumerable properties (ignoring interceptors). |
1364 int NumberOfEnumProperties(); | 1356 int NumberOfEnumProperties(); |
1365 // Fill in details for properties into storage starting at the specified | 1357 // Fill in details for properties into storage starting at the specified |
1366 // index. | 1358 // index. |
1367 void GetLocalPropertyNames(FixedArray* storage, int index); | 1359 void GetLocalPropertyNames(FixedArray* storage, int index); |
1368 | 1360 |
1369 // Returns the number of properties on this object filtering out properties | 1361 // Returns the number of properties on this object filtering out properties |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1541 String* name, | 1533 String* name, |
1542 bool continue_search); | 1534 bool continue_search); |
1543 | 1535 |
1544 // Returns true if most of the elements backing storage is used. | 1536 // Returns true if most of the elements backing storage is used. |
1545 bool HasDenseElements(); | 1537 bool HasDenseElements(); |
1546 | 1538 |
1547 Object* DefineGetterSetter(String* name, PropertyAttributes attributes); | 1539 Object* DefineGetterSetter(String* name, PropertyAttributes attributes); |
1548 | 1540 |
1549 void LookupInDescriptor(String* name, LookupResult* result); | 1541 void LookupInDescriptor(String* name, LookupResult* result); |
1550 | 1542 |
1551 // Attempts to get property with a named interceptor getter. Returns | |
1552 // |true| and stores result into |result| if succesful, otherwise | |
1553 // returns |false| | |
1554 bool GetPropertyWithInterceptorProper(JSObject* receiver, | |
1555 String* name, | |
1556 PropertyAttributes* attributes, | |
1557 Object** result); | |
1558 | |
1559 DISALLOW_IMPLICIT_CONSTRUCTORS(JSObject); | 1543 DISALLOW_IMPLICIT_CONSTRUCTORS(JSObject); |
1560 }; | 1544 }; |
1561 | 1545 |
1562 | 1546 |
1563 // Abstract super class arrays. It provides length behavior. | 1547 // Abstract super class arrays. It provides length behavior. |
1564 class Array: public HeapObject { | 1548 class Array: public HeapObject { |
1565 public: | 1549 public: |
1566 // [length]: length of the array. | 1550 // [length]: length of the array. |
1567 inline int length(); | 1551 inline int length(); |
1568 inline void set_length(int value); | 1552 inline void set_length(int value); |
(...skipping 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4424 } else { | 4408 } else { |
4425 value &= ~(1 << bit_position); | 4409 value &= ~(1 << bit_position); |
4426 } | 4410 } |
4427 return value; | 4411 return value; |
4428 } | 4412 } |
4429 }; | 4413 }; |
4430 | 4414 |
4431 } } // namespace v8::internal | 4415 } } // namespace v8::internal |
4432 | 4416 |
4433 #endif // V8_OBJECTS_H_ | 4417 #endif // V8_OBJECTS_H_ |
OLD | NEW |