| Index: Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp b/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp
|
| index 8a30bdf5bedbfe86a38021a0538735eb0a6a8c13..55c423ee85e7ba929a503180c55ee77d0782f491 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp
|
| @@ -1,34 +1,8 @@
|
| -/*
|
| - * Copyright (C) 2013 Google Inc. All rights reserved.
|
| - *
|
| - * Redistribution and use in source and binary forms, with or without
|
| - * modification, are permitted provided that the following conditions are
|
| - * met:
|
| - *
|
| - * * Redistributions of source code must retain the above copyright
|
| - * notice, this list of conditions and the following disclaimer.
|
| - * * Redistributions in binary form must reproduce the above
|
| - * copyright notice, this list of conditions and the following disclaimer
|
| - * in the documentation and/or other materials provided with the
|
| - * distribution.
|
| - * * Neither the name of Google Inc. nor the names of its
|
| - * contributors may be used to endorse or promote products derived from
|
| - * this software without specific prior written permission.
|
| - *
|
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| - */
|
| -
|
| -// This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
|
|
|
| #include "config.h"
|
| #include "V8TestInterfaceEventConstructor.h"
|
| @@ -63,10 +37,6 @@ static void initializeScriptWrappableForInterface(TestInterfaceEventConstructor*
|
|
|
| } // namespace WebCore
|
|
|
| -// In ScriptWrappable::init, the use of a local function declaration has an issue on Windows:
|
| -// the local declaration does not pick up the surrounding namespace. Therefore, we provide this function
|
| -// in the global namespace.
|
| -// (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/feedback/details/664619/the-namespace-of-local-function-declarations-in-c)
|
| void webCoreInitializeScriptWrappableForInterface(WebCore::TestInterfaceEventConstructor* object)
|
| {
|
| WebCore::initializeScriptWrappableForInterface(object);
|
| @@ -266,7 +236,8 @@ static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
|
|
|
| static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceEventConstructor", info.Holder(), info.GetIsolate());
|
| + v8::Isolate* isolate = info.GetIsolate();
|
| + ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceEventConstructor", info.Holder(), isolate);
|
| if (info.Length() < 1) {
|
| exceptionState.throwTypeError("An event name must be provided.");
|
| exceptionState.throwIfNeeded();
|
| @@ -277,25 +248,25 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute;
|
| TestInterfaceEventConstructorInit eventInit;
|
| if (info.Length() >= 2) {
|
| - V8TRYCATCH_VOID(Dictionary, options, Dictionary(info[1], info.GetIsolate()));
|
| + V8TRYCATCH_VOID(Dictionary, options, Dictionary(info[1], isolate));
|
| if (!initializeTestInterfaceEventConstructor(eventInit, options, exceptionState, info)) {
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| options.get("initializedByEventConstructorReadonlyAnyAttribute", initializedByEventConstructorReadonlyAnyAttribute);
|
| if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty())
|
| - V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8AtomicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute"), initializedByEventConstructorReadonlyAnyAttribute);
|
| + V8HiddenValue::setHiddenValue(isolate, info.Holder(), v8AtomicString(isolate, "initializedByEventConstructorReadonlyAnyAttribute"), initializedByEventConstructorReadonlyAnyAttribute);
|
| }
|
| RefPtr<TestInterfaceEventConstructor> event = TestInterfaceEventConstructor::create(type, eventInit, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| - if (DOMWrapperWorld::current(info.GetIsolate())->isIsolatedWorld()) {
|
| + if (DOMWrapperWorld::current(isolate)->isIsolatedWorld()) {
|
| if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty())
|
| - event->setSerializedInitializedByEventConstructorReadonlyAnyAttribute(SerializedScriptValue::createAndSwallowExceptions(initializedByEventConstructorReadonlyAnyAttribute, info.GetIsolate()));
|
| + event->setSerializedInitializedByEventConstructorReadonlyAnyAttribute(SerializedScriptValue::createAndSwallowExceptions(initializedByEventConstructorReadonlyAnyAttribute, isolate));
|
| }
|
|
|
| v8::Handle<v8::Object> wrapper = info.Holder();
|
| - V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(event.release(), &V8TestInterfaceEventConstructor::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Independent);
|
| + V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(event.release(), &V8TestInterfaceEventConstructor::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
|
| v8SetReturnValue(info, wrapper);
|
| }
|
|
|
|
|