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

Unified Diff: Source/bindings/v8/V8Binding.h

Issue 178363010: Two version of toRefPtrNativeArray Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8Binding.h
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
index 8ed1af04d5c637e5d6bd52f3ee0848e79b6def86..adc29db283e64695b7affdaf85a7e9edd0facd98 100644
--- a/Source/bindings/v8/V8Binding.h
+++ b/Source/bindings/v8/V8Binding.h
@@ -496,9 +496,9 @@ namespace WebCore {
}
template <class T, class V8T>
- WillBeHeapVector<RefPtrWillBeMember<T> > toRefPtrWillBeMemberNativeArrayUnchecked(v8::Local<v8::Value> v8Value, uint32_t length, v8::Isolate* isolate, bool* success = 0)
+ HeapVector<Member<T> > toRefPtrNativeArrayUnchecked(v8::Local<v8::Value> v8Value, uint32_t length, v8::Isolate* isolate, bool* success = 0)
{
- WillBeHeapVector<RefPtrWillBeMember<T> > result;
+ HeapVector<Member<T> > result;
result.reserveInitialCapacity(length);
v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast(v8Value);
for (uint32_t i = 0; i < length; ++i) {
@@ -511,7 +511,7 @@ namespace WebCore {
if (success)
*success = false;
throwTypeError("Invalid Array element type", isolate);
- return WillBeHeapVector<RefPtrWillBeMember<T> >();
+ return HeapVector<Member<T> >();
}
}
return result;
@@ -538,7 +538,7 @@ namespace WebCore {
}
template <class T, class V8T>
- WillBeHeapVector<RefPtrWillBeMember<T> > toRefPtrWillBeMemberNativeArray(v8::Handle<v8::Value> value, int argumentIndex, v8::Isolate* isolate, bool* success = 0)
+ HeapVector<Member<T> > toRefPtrNativeArray(v8::Handle<v8::Value> value, int argumentIndex, v8::Isolate* isolate, bool* success = 0)
{
if (success)
*success = true;
@@ -549,10 +549,10 @@ namespace WebCore {
length = v8::Local<v8::Array>::Cast(v8Value)->Length();
} else if (toV8Sequence(value, length, isolate).IsEmpty()) {
throwTypeError(ExceptionMessages::notAnArrayTypeArgumentOrValue(argumentIndex), isolate);
- return WillBeHeapVector<RefPtrWillBeMember<T> >();
+ return HeapVector<Member<T> >();
}
- return toRefPtrWillBeMemberNativeArrayUnchecked<T, V8T>(v8Value, length, isolate, success);
+ return toRefPtrNativeArrayUnchecked<T, V8T>(v8Value, length, isolate, success);
}
template <class T, class V8T>
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698