diff options
Diffstat (limited to 'Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp')
-rw-r--r-- | Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp b/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp index e2c8e96ec..9bb99ac3e 100644 --- a/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp +++ b/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp @@ -21,10 +21,10 @@ #include "config.h" #include "V8TestException.h" +#include "BindingState.h" #include "ContextFeatures.h" #include "RuntimeEnabledFeatures.h" #include "V8Binding.h" -#include "V8BindingState.h" #include "V8DOMWrapper.h" #include "V8IsolatedContext.h" #include "V8Proxy.h" @@ -47,7 +47,7 @@ static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8 } // namespace TestExceptionV8Internal -static const BatchedAttribute TestExceptionAttrs[] = { +static const V8DOMConfiguration::BatchedAttribute TestExceptionAttrs[] = { // Attribute 'name' (Type: 'readonly attribute' ExtAttr: '') {"name", TestExceptionV8Internal::nameAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, }; @@ -57,7 +57,7 @@ static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestExceptionTemplate(v8: desc->ReadOnlyPrototype(); v8::Local<v8::Signature> defaultSignature; - defaultSignature = configureTemplate(desc, "TestException", v8::Persistent<v8::FunctionTemplate>(), V8TestException::internalFieldCount, + defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestException", v8::Persistent<v8::FunctionTemplate>(), V8TestException::internalFieldCount, TestExceptionAttrs, WTF_ARRAY_LENGTH(TestExceptionAttrs), 0, 0); UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. @@ -70,8 +70,8 @@ static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestExceptionTemplate(v8: v8::Persistent<v8::FunctionTemplate> V8TestException::GetRawTemplate() { - V8BindingPerIsolateData* data = V8BindingPerIsolateData::current(); - V8BindingPerIsolateData::TemplateMap::iterator result = data->rawTemplateMap().find(&info); + V8PerIsolateData* data = V8PerIsolateData::current(); + V8PerIsolateData::TemplateMap::iterator result = data->rawTemplateMap().find(&info); if (result != data->rawTemplateMap().end()) return result->second; @@ -83,8 +83,8 @@ v8::Persistent<v8::FunctionTemplate> V8TestException::GetRawTemplate() v8::Persistent<v8::FunctionTemplate> V8TestException::GetTemplate() { - V8BindingPerIsolateData* data = V8BindingPerIsolateData::current(); - V8BindingPerIsolateData::TemplateMap::iterator result = data->templateMap().find(&info); + V8PerIsolateData* data = V8PerIsolateData::current(); + V8PerIsolateData::TemplateMap::iterator result = data->templateMap().find(&info); if (result != data->templateMap().end()) return result->second; @@ -108,12 +108,9 @@ v8::Handle<v8::Object> V8TestException::wrapSlow(PassRefPtr<TestException> impl, wrapper = V8DOMWrapper::instantiateV8Object(proxy, &info, impl.get()); if (UNLIKELY(wrapper.IsEmpty())) return wrapper; - - v8::Persistent<v8::Object> wrapperHandle = v8::Persistent<v8::Object>::New(wrapper); - + v8::Persistent<v8::Object> wrapperHandle = V8DOMWrapper::setJSWrapperForDOMObject(impl, wrapper, isolate); if (!hasDependentLifetime) wrapperHandle.MarkIndependent(); - V8DOMWrapper::setJSWrapperForDOMObject(impl, wrapperHandle, isolate); return wrapper; } |