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 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 | 1524 |
1525 // Layout description. | 1525 // Layout description. |
1526 static const int kPropertiesOffset = HeapObject::kHeaderSize; | 1526 static const int kPropertiesOffset = HeapObject::kHeaderSize; |
1527 static const int kElementsOffset = kPropertiesOffset + kPointerSize; | 1527 static const int kElementsOffset = kPropertiesOffset + kPointerSize; |
1528 static const int kHeaderSize = kElementsOffset + kPointerSize; | 1528 static const int kHeaderSize = kElementsOffset + kPointerSize; |
1529 | 1529 |
1530 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); | 1530 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); |
1531 | 1531 |
1532 private: | 1532 private: |
1533 Object* SetElementWithInterceptor(uint32_t index, Object* value); | 1533 Object* SetElementWithInterceptor(uint32_t index, Object* value); |
1534 Object* SetElementPostInterceptor(uint32_t index, Object* value); | 1534 Object* SetElementWithoutInterceptor(uint32_t index, Object* value); |
1535 | 1535 |
1536 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); | 1536 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); |
1537 | 1537 |
1538 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); | 1538 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); |
1539 Object* DeletePropertyWithInterceptor(String* name); | 1539 Object* DeletePropertyWithInterceptor(String* name); |
1540 | 1540 |
1541 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); | 1541 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); |
1542 Object* DeleteElementWithInterceptor(uint32_t index); | 1542 Object* DeleteElementWithInterceptor(uint32_t index); |
1543 | 1543 |
1544 PropertyAttributes GetPropertyAttributePostInterceptor(JSObject* receiver, | 1544 PropertyAttributes GetPropertyAttributePostInterceptor(JSObject* receiver, |
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4460 } else { | 4460 } else { |
4461 value &= ~(1 << bit_position); | 4461 value &= ~(1 << bit_position); |
4462 } | 4462 } |
4463 return value; | 4463 return value; |
4464 } | 4464 } |
4465 }; | 4465 }; |
4466 | 4466 |
4467 } } // namespace v8::internal | 4467 } } // namespace v8::internal |
4468 | 4468 |
4469 #endif // V8_OBJECTS_H_ | 4469 #endif // V8_OBJECTS_H_ |
OLD | NEW |