| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 8715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8726 // [byte_length]: length of typed array in bytes. | 8726 // [byte_length]: length of typed array in bytes. |
| 8727 DECL_ACCESSORS(byte_length, Object) | 8727 DECL_ACCESSORS(byte_length, Object) |
| 8728 | 8728 |
| 8729 // [length]: length of typed array in elements. | 8729 // [length]: length of typed array in elements. |
| 8730 DECL_ACCESSORS(length, Object) | 8730 DECL_ACCESSORS(length, Object) |
| 8731 | 8731 |
| 8732 // Casting. | 8732 // Casting. |
| 8733 static inline JSTypedArray* cast(Object* obj); | 8733 static inline JSTypedArray* cast(Object* obj); |
| 8734 | 8734 |
| 8735 ExternalArrayType type(); | 8735 ExternalArrayType type(); |
| 8736 size_t element_size(); |
| 8736 | 8737 |
| 8737 // Dispatched behavior. | 8738 // Dispatched behavior. |
| 8738 DECLARE_PRINTER(JSTypedArray) | 8739 DECLARE_PRINTER(JSTypedArray) |
| 8739 DECLARE_VERIFIER(JSTypedArray) | 8740 DECLARE_VERIFIER(JSTypedArray) |
| 8740 | 8741 |
| 8741 static const int kBufferOffset = JSObject::kHeaderSize; | 8742 static const int kBufferOffset = JSObject::kHeaderSize; |
| 8742 static const int kByteOffsetOffset = kBufferOffset + kPointerSize; | 8743 static const int kByteOffsetOffset = kBufferOffset + kPointerSize; |
| 8743 static const int kByteLengthOffset = kByteOffsetOffset + kPointerSize; | 8744 static const int kByteLengthOffset = kByteOffsetOffset + kPointerSize; |
| 8744 static const int kLengthOffset = kByteLengthOffset + kPointerSize; | 8745 static const int kLengthOffset = kByteLengthOffset + kPointerSize; |
| 8745 static const int kSize = kLengthOffset + kPointerSize; | 8746 static const int kSize = kLengthOffset + kPointerSize; |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9550 } else { | 9551 } else { |
| 9551 value &= ~(1 << bit_position); | 9552 value &= ~(1 << bit_position); |
| 9552 } | 9553 } |
| 9553 return value; | 9554 return value; |
| 9554 } | 9555 } |
| 9555 }; | 9556 }; |
| 9556 | 9557 |
| 9557 } } // namespace v8::internal | 9558 } } // namespace v8::internal |
| 9558 | 9559 |
| 9559 #endif // V8_OBJECTS_H_ | 9560 #endif // V8_OBJECTS_H_ |
| OLD | NEW |