Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: Source/bindings/core/v8/custom/V8ArrayBufferCustom.cpp

Issue 525353002: [oilpan]: optimize the way we allocate persistent handles in wrappers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698