| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 52 } |
| 53 | 53 |
| 54 static size_t length(Uint32Array* array) | 54 static size_t length(Uint32Array* array) |
| 55 { | 55 { |
| 56 return array->length(); | 56 return array->length(); |
| 57 } | 57 } |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 typedef V8TypedArray<Uint32Array> V8Uint32Array; | 60 typedef V8TypedArray<Uint32Array> V8Uint32Array; |
| 61 | 61 |
| 62 template<> | |
| 63 class WrapperTypeTraits<Uint32Array> : public TypedArrayWrapperTraits<Uint32Arra
y> { }; | |
| 64 | |
| 65 | |
| 66 inline v8::Handle<v8::Object> wrap(Uint32Array* impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) | 62 inline v8::Handle<v8::Object> wrap(Uint32Array* impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) |
| 67 { | 63 { |
| 68 return V8TypedArray<Uint32Array>::wrap(impl, creationContext, isolate); | 64 return V8TypedArray<Uint32Array>::wrap(impl, creationContext, isolate); |
| 69 } | 65 } |
| 70 | 66 |
| 71 inline v8::Handle<v8::Value> toV8(Uint32Array* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 67 inline v8::Handle<v8::Value> toV8(Uint32Array* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 72 { | 68 { |
| 73 return V8TypedArray<Uint32Array>::toV8(impl, creationContext, isolate); | 69 return V8TypedArray<Uint32Array>::toV8(impl, creationContext, isolate); |
| 74 } | 70 } |
| 75 | 71 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 106 |
| 111 template<class CallbackInfo, class Wrappable> | 107 template<class CallbackInfo, class Wrappable> |
| 112 inline void v8SetReturnValueFast(const CallbackInfo& info, PassRefPtr<Uint32Arra
y> impl, Wrappable* wrappable) | 108 inline void v8SetReturnValueFast(const CallbackInfo& info, PassRefPtr<Uint32Arra
y> impl, Wrappable* wrappable) |
| 113 { | 109 { |
| 114 v8SetReturnValueFast(info, impl.get(), wrappable); | 110 v8SetReturnValueFast(info, impl.get(), wrappable); |
| 115 } | 111 } |
| 116 | 112 |
| 117 } // namespace WebCore | 113 } // namespace WebCore |
| 118 | 114 |
| 119 #endif | 115 #endif |
| OLD | NEW |