| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 class Int32Array final : public IntegralTypedArrayBase<int> { | 34 class Int32Array final : public IntegralTypedArrayBase<int> { |
| 35 public: | 35 public: |
| 36 static inline PassRefPtr<Int32Array> create(unsigned length); | 36 static inline PassRefPtr<Int32Array> create(unsigned length); |
| 37 static inline PassRefPtr<Int32Array> create(const int* array, unsigned lengt
h); | 37 static inline PassRefPtr<Int32Array> create(const int* array, unsigned lengt
h); |
| 38 static inline PassRefPtr<Int32Array> create(PassRefPtr<ArrayBuffer>, unsigne
d byteOffset, unsigned length); | 38 static inline PassRefPtr<Int32Array> create(PassRefPtr<ArrayBuffer>, unsigne
d byteOffset, unsigned length); |
| 39 | 39 |
| 40 using TypedArrayBase<int>::set; | 40 using TypedArrayBase<int>::set; |
| 41 using IntegralTypedArrayBase<int>::set; | 41 using IntegralTypedArrayBase<int>::set; |
| 42 | 42 |
| 43 virtual ViewType type() const override | 43 ViewType type() const override |
| 44 { | 44 { |
| 45 return TypeInt32; | 45 return TypeInt32; |
| 46 } | 46 } |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 inline Int32Array(PassRefPtr<ArrayBuffer>, | 49 inline Int32Array(PassRefPtr<ArrayBuffer>, |
| 50 unsigned byteOffset, | 50 unsigned byteOffset, |
| 51 unsigned length); | 51 unsigned length); |
| 52 // Make constructor visible to superclass. | 52 // Make constructor visible to superclass. |
| 53 friend class TypedArrayBase<int>; | 53 friend class TypedArrayBase<int>; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 71 Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi
gned length) | 71 Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi
gned length) |
| 72 : IntegralTypedArrayBase<int>(buffer, byteOffset, length) | 72 : IntegralTypedArrayBase<int>(buffer, byteOffset, length) |
| 73 { | 73 { |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace WTF | 76 } // namespace WTF |
| 77 | 77 |
| 78 using WTF::Int32Array; | 78 using WTF::Int32Array; |
| 79 | 79 |
| 80 #endif // Int32Array_h | 80 #endif // Int32Array_h |
| OLD | NEW |