OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void V8ArrayBuffer::refObject(ScriptWrappableBase* internalPointer) | 60 void V8ArrayBuffer::refObject(ScriptWrappableBase* internalPointer) |
61 { | 61 { |
62 fromInternalPointer(internalPointer)->ref(); | 62 fromInternalPointer(internalPointer)->ref(); |
63 } | 63 } |
64 | 64 |
65 void V8ArrayBuffer::derefObject(ScriptWrappableBase* internalPointer) | 65 void V8ArrayBuffer::derefObject(ScriptWrappableBase* internalPointer) |
66 { | 66 { |
67 fromInternalPointer(internalPointer)->deref(); | 67 fromInternalPointer(internalPointer)->deref(); |
68 } | 68 } |
69 | 69 |
70 PersistentNode* V8ArrayBuffer::createPersistentHandle(ScriptWrappableBase* inter
nalPointer) | 70 WrapperPersistentNode* V8ArrayBuffer::createPersistentHandle(ScriptWrappableBase
* internalPointer) |
71 { | 71 { |
72 ASSERT_NOT_REACHED(); | 72 ASSERT_NOT_REACHED(); |
73 return 0; | 73 return 0; |
74 } | 74 } |
75 | 75 |
76 v8::Handle<v8::Object> V8ArrayBuffer::createWrapper(PassRefPtr<ArrayBuffer> impl
, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 76 v8::Handle<v8::Object> V8ArrayBuffer::createWrapper(PassRefPtr<ArrayBuffer> impl
, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
77 { | 77 { |
78 ASSERT(impl.get()); | 78 ASSERT(impl.get()); |
79 ASSERT(!DOMDataStore::containsWrapper<V8ArrayBuffer>(impl.get(), isolate)); | 79 ASSERT(!DOMDataStore::containsWrapper<V8ArrayBuffer>(impl.get(), isolate)); |
80 | 80 |
(...skipping 27 matching lines...) Expand all Loading... |
108 return V8ArrayBuffer::hasInstance(value, isolate) ? V8ArrayBuffer::toNative(
v8::Handle<v8::Object>::Cast(value)) : 0; | 108 return V8ArrayBuffer::hasInstance(value, isolate) ? V8ArrayBuffer::toNative(
v8::Handle<v8::Object>::Cast(value)) : 0; |
109 } | 109 } |
110 | 110 |
111 template<> | 111 template<> |
112 v8::Handle<v8::Value> toV8NoInline(ArrayBuffer* impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) | 112 v8::Handle<v8::Value> toV8NoInline(ArrayBuffer* impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) |
113 { | 113 { |
114 return toV8(impl, creationContext, isolate); | 114 return toV8(impl, creationContext, isolate); |
115 } | 115 } |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
OLD | NEW |