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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 | 1533 |
1534 // Layout description. | 1534 // Layout description. |
1535 static const int kPropertiesOffset = HeapObject::kHeaderSize; | 1535 static const int kPropertiesOffset = HeapObject::kHeaderSize; |
1536 static const int kElementsOffset = kPropertiesOffset + kPointerSize; | 1536 static const int kElementsOffset = kPropertiesOffset + kPointerSize; |
1537 static const int kHeaderSize = kElementsOffset + kPointerSize; | 1537 static const int kHeaderSize = kElementsOffset + kPointerSize; |
1538 | 1538 |
1539 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize); | 1539 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize); |
1540 | 1540 |
1541 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); | 1541 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); |
1542 | 1542 |
| 1543 bool HasSetter(); |
| 1544 |
1543 private: | 1545 private: |
1544 Object* SetElementWithInterceptor(uint32_t index, Object* value); | 1546 Object* SetElementWithInterceptor(uint32_t index, Object* value); |
1545 Object* SetElementWithoutInterceptor(uint32_t index, Object* value); | 1547 Object* SetElementWithoutInterceptor(uint32_t index, Object* value); |
1546 | 1548 |
1547 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); | 1549 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); |
1548 | 1550 |
1549 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); | 1551 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); |
1550 Object* DeletePropertyWithInterceptor(String* name); | 1552 Object* DeletePropertyWithInterceptor(String* name); |
1551 | 1553 |
1552 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); | 1554 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); |
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4975 } else { | 4977 } else { |
4976 value &= ~(1 << bit_position); | 4978 value &= ~(1 << bit_position); |
4977 } | 4979 } |
4978 return value; | 4980 return value; |
4979 } | 4981 } |
4980 }; | 4982 }; |
4981 | 4983 |
4982 } } // namespace v8::internal | 4984 } } // namespace v8::internal |
4983 | 4985 |
4984 #endif // V8_OBJECTS_H_ | 4986 #endif // V8_OBJECTS_H_ |
OLD | NEW |