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 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 String* name, | 1586 String* name, |
1587 bool continue_search); | 1587 bool continue_search); |
1588 | 1588 |
1589 // Returns true if most of the elements backing storage is used. | 1589 // Returns true if most of the elements backing storage is used. |
1590 bool HasDenseElements(); | 1590 bool HasDenseElements(); |
1591 | 1591 |
1592 Object* DefineGetterSetter(String* name, PropertyAttributes attributes); | 1592 Object* DefineGetterSetter(String* name, PropertyAttributes attributes); |
1593 | 1593 |
1594 void LookupInDescriptor(String* name, LookupResult* result); | 1594 void LookupInDescriptor(String* name, LookupResult* result); |
1595 | 1595 |
1596 // Attempts to get property with a named interceptor getter. Returns | 1596 // Attempts to get property with a named interceptor getter. |
1597 // |true| and stores result into |result| if succesful, otherwise | 1597 // Sets |attributes| to ABSENT if interceptor didn't return anything |
1598 // returns |false| | 1598 Object* GetPropertyWithInterceptorProper(JSObject* receiver, |
1599 bool GetPropertyWithInterceptorProper(JSObject* receiver, | 1599 String* name, |
1600 String* name, | 1600 PropertyAttributes* attributes); |
1601 PropertyAttributes* attributes, | |
1602 Object** result); | |
1603 | 1601 |
1604 DISALLOW_IMPLICIT_CONSTRUCTORS(JSObject); | 1602 DISALLOW_IMPLICIT_CONSTRUCTORS(JSObject); |
1605 }; | 1603 }; |
1606 | 1604 |
1607 | 1605 |
1608 // Abstract super class arrays. It provides length behavior. | 1606 // Abstract super class arrays. It provides length behavior. |
1609 class Array: public HeapObject { | 1607 class Array: public HeapObject { |
1610 public: | 1608 public: |
1611 // [length]: length of the array. | 1609 // [length]: length of the array. |
1612 inline int length(); | 1610 inline int length(); |
(...skipping 2902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4515 } else { | 4513 } else { |
4516 value &= ~(1 << bit_position); | 4514 value &= ~(1 << bit_position); |
4517 } | 4515 } |
4518 return value; | 4516 return value; |
4519 } | 4517 } |
4520 }; | 4518 }; |
4521 | 4519 |
4522 } } // namespace v8::internal | 4520 } } // namespace v8::internal |
4523 | 4521 |
4524 #endif // V8_OBJECTS_H_ | 4522 #endif // V8_OBJECTS_H_ |
OLD | NEW |