| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
 | 
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
 | 
| index 569639ee1661c822b2f37d83ef15d4c590f149d3..23df60f535d18495925bbe4079cd3e2d00c9545c 100644
 | 
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
 | 
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp
 | 
| @@ -53,311 +53,286 @@ static_assert(
 | 
|  
 | 
|  namespace TestInterfaceGarbageCollectedV8Internal {
 | 
|  
 | 
| -static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    v8::Local<v8::Object> holder = info.Holder();
 | 
| +static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  v8::Local<v8::Object> holder = info.Holder();
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(holder);
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(holder);
 | 
|  
 | 
| -    v8SetReturnValueFast(info, WTF::getPtr(impl->attr1()), impl);
 | 
| +  v8SetReturnValueFast(info, WTF::getPtr(impl->attr1()), impl);
 | 
|  }
 | 
|  
 | 
| -void attr1AttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetter(info);
 | 
| +void attr1AttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetter(info);
 | 
|  }
 | 
|  
 | 
| -static void attr1AttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    v8::Local<v8::Object> holder = info.Holder();
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(holder);
 | 
| +static void attr1AttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  v8::Local<v8::Object> holder = info.Holder();
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(holder);
 | 
|  
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestInterfaceGarbageCollected", "attr1");
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestInterfaceGarbageCollected", "attr1");
 | 
|  
 | 
| -    // Prepare the value to be set.
 | 
| -    TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
 | 
| +  // Prepare the value to be set.
 | 
| +  TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
 | 
|  
 | 
| -    // Type check per: http://heycam.github.io/webidl/#es-interface
 | 
| -    if (!cppValue) {
 | 
| -        exceptionState.throwTypeError("The provided value is not of type 'TestInterfaceGarbageCollected'.");
 | 
| -        return;
 | 
| -    }
 | 
| +  // Type check per: http://heycam.github.io/webidl/#es-interface
 | 
| +  if (!cppValue) {
 | 
| +    exceptionState.throwTypeError("The provided value is not of type 'TestInterfaceGarbageCollected'.");
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    impl->setAttr1(cppValue);
 | 
| +  impl->setAttr1(cppValue);
 | 
|  }
 | 
|  
 | 
| -void attr1AttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    v8::Local<v8::Value> v8Value = info[0];
 | 
| +void attr1AttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  v8::Local<v8::Value> v8Value = info[0];
 | 
|  
 | 
| -    TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetter(v8Value, info);
 | 
| +  TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetter(v8Value, info);
 | 
|  }
 | 
|  
 | 
| -static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    if (UNLIKELY(info.Length() < 1)) {
 | 
| -        V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("func", "TestInterfaceGarbageCollected", ExceptionMessages::notEnoughArguments(1, info.Length())));
 | 
| -        return;
 | 
| -    }
 | 
| +  if (UNLIKELY(info.Length() < 1)) {
 | 
| +    V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("func", "TestInterfaceGarbageCollected", ExceptionMessages::notEnoughArguments(1, info.Length())));
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* arg;
 | 
| -    arg = V8TestInterfaceGarbageCollected::toImplWithTypeCheck(info.GetIsolate(), info[0]);
 | 
| -    if (!arg) {
 | 
| -        V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("func", "TestInterfaceGarbageCollected", "parameter 1 is not of type 'TestInterfaceGarbageCollected'."));
 | 
| +  TestInterfaceGarbageCollected* arg;
 | 
| +  arg = V8TestInterfaceGarbageCollected::toImplWithTypeCheck(info.GetIsolate(), info[0]);
 | 
| +  if (!arg) {
 | 
| +    V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("func", "TestInterfaceGarbageCollected", "parameter 1 is not of type 'TestInterfaceGarbageCollected'."));
 | 
|  
 | 
| -        return;
 | 
| -    }
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    impl->func(arg);
 | 
| +  impl->func(arg);
 | 
|  }
 | 
|  
 | 
| -void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::funcMethod(info);
 | 
| +void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::funcMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "keys");
 | 
| +static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "keys");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    Iterator* result = impl->keysForBinding(scriptState, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValue(info, result);
 | 
| +  Iterator* result = impl->keysForBinding(scriptState, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValue(info, result);
 | 
|  }
 | 
|  
 | 
| -void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::keysMethod(info);
 | 
| +void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::keysMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "values");
 | 
| +static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "values");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    Iterator* result = impl->valuesForBinding(scriptState, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValue(info, result);
 | 
| +  Iterator* result = impl->valuesForBinding(scriptState, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValue(info, result);
 | 
|  }
 | 
|  
 | 
| -void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::valuesMethod(info);
 | 
| +void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::valuesMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "entries");
 | 
| +static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "entries");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    Iterator* result = impl->entriesForBinding(scriptState, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValue(info, result);
 | 
| +  Iterator* result = impl->entriesForBinding(scriptState, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValue(info, result);
 | 
|  }
 | 
|  
 | 
| -void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::entriesMethod(info);
 | 
| +void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::entriesMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "forEach");
 | 
| +static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "forEach");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    if (UNLIKELY(info.Length() < 1)) {
 | 
| -        exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| -        return;
 | 
| -    }
 | 
| +  if (UNLIKELY(info.Length() < 1)) {
 | 
| +    exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    ScriptValue callback;
 | 
| -    ScriptValue thisArg;
 | 
| -    if (!info[0]->IsFunction()) {
 | 
| -        exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
 | 
| +  ScriptValue callback;
 | 
| +  ScriptValue thisArg;
 | 
| +  if (!info[0]->IsFunction()) {
 | 
| +    exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
 | 
|  
 | 
| -        return;
 | 
| -    }
 | 
| -    callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
 | 
| +    return;
 | 
| +  }
 | 
| +  callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
 | 
|  
 | 
| -    thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]);
 | 
| +  thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]);
 | 
|  
 | 
| -    impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()), callback, thisArg, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| +  impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()), callback, thisArg, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
|  }
 | 
|  
 | 
| -void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::forEachMethod(info);
 | 
| +void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::forEachMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "has");
 | 
| +static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "has");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    if (UNLIKELY(info.Length() < 1)) {
 | 
| -        exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| -        return;
 | 
| -    }
 | 
| +  if (UNLIKELY(info.Length() < 1)) {
 | 
| +    exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    V8StringResource<> value;
 | 
| -    value = info[0];
 | 
| -    if (!value.prepare())
 | 
| -        return;
 | 
| +  V8StringResource<> value;
 | 
| +  value = info[0];
 | 
| +  if (!value.prepare())
 | 
| +    return;
 | 
|  
 | 
| -    bool result = impl->hasForBinding(scriptState, value, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValueBool(info, result);
 | 
| +  bool result = impl->hasForBinding(scriptState, value, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValueBool(info, result);
 | 
|  }
 | 
|  
 | 
| -void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::hasMethod(info);
 | 
| +void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::hasMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void addMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "add");
 | 
| +static void addMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "add");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    if (UNLIKELY(info.Length() < 1)) {
 | 
| -        exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| -        return;
 | 
| -    }
 | 
| +  if (UNLIKELY(info.Length() < 1)) {
 | 
| +    exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    V8StringResource<> value;
 | 
| -    value = info[0];
 | 
| -    if (!value.prepare())
 | 
| -        return;
 | 
| +  V8StringResource<> value;
 | 
| +  value = info[0];
 | 
| +  if (!value.prepare())
 | 
| +    return;
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* result = impl->addForBinding(scriptState, value, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValue(info, result);
 | 
| +  TestInterfaceGarbageCollected* result = impl->addForBinding(scriptState, value, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValue(info, result);
 | 
|  }
 | 
|  
 | 
| -void addMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::addMethod(info);
 | 
| +void addMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::addMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void clearMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "clear");
 | 
| +static void clearMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "clear");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    impl->clearForBinding(scriptState, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| +  impl->clearForBinding(scriptState, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
|  }
 | 
|  
 | 
| -void clearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::clearMethod(info);
 | 
| +void clearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::clearMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "delete");
 | 
| +static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "delete");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    if (UNLIKELY(info.Length() < 1)) {
 | 
| -        exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| -        return;
 | 
| -    }
 | 
| +  if (UNLIKELY(info.Length() < 1)) {
 | 
| +    exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    V8StringResource<> value;
 | 
| -    value = info[0];
 | 
| -    if (!value.prepare())
 | 
| -        return;
 | 
| +  V8StringResource<> value;
 | 
| +  value = info[0];
 | 
| +  if (!value.prepare())
 | 
| +    return;
 | 
|  
 | 
| -    bool result = impl->deleteForBinding(scriptState, value, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValueBool(info, result);
 | 
| +  bool result = impl->deleteForBinding(scriptState, value, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValueBool(info, result);
 | 
|  }
 | 
|  
 | 
| -void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::deleteMethod(info);
 | 
| +void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::deleteMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "iterator");
 | 
| +static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterfaceGarbageCollected", "iterator");
 | 
|  
 | 
| -    TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
| +  TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImpl(info.Holder());
 | 
|  
 | 
| -    ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
| +  ScriptState* scriptState = ScriptState::forReceiverObject(info);
 | 
|  
 | 
| -    Iterator* result = impl->iterator(scriptState, exceptionState);
 | 
| -    if (exceptionState.hadException()) {
 | 
| -        return;
 | 
| -    }
 | 
| -    v8SetReturnValue(info, result);
 | 
| +  Iterator* result = impl->iterator(scriptState, exceptionState);
 | 
| +  if (exceptionState.hadException()) {
 | 
| +    return;
 | 
| +  }
 | 
| +  v8SetReturnValue(info, result);
 | 
|  }
 | 
|  
 | 
| -void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    TestInterfaceGarbageCollectedV8Internal::iteratorMethod(info);
 | 
| +void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  TestInterfaceGarbageCollectedV8Internal::iteratorMethod(info);
 | 
|  }
 | 
|  
 | 
| -static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    if (UNLIKELY(info.Length() < 1)) {
 | 
| -        V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceGarbageCollected", ExceptionMessages::notEnoughArguments(1, info.Length())));
 | 
| -        return;
 | 
| -    }
 | 
| -
 | 
| -    V8StringResource<> str;
 | 
| -    str = info[0];
 | 
| -    if (!str.prepare())
 | 
| -        return;
 | 
| -
 | 
| -    TestInterfaceGarbageCollected* impl = TestInterfaceGarbageCollected::create(str);
 | 
| -    v8::Local<v8::Object> wrapper = info.Holder();
 | 
| -    wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper);
 | 
| -    v8SetReturnValue(info, wrapper);
 | 
| +static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  if (UNLIKELY(info.Length() < 1)) {
 | 
| +    V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceGarbageCollected", ExceptionMessages::notEnoughArguments(1, info.Length())));
 | 
| +    return;
 | 
| +  }
 | 
| +
 | 
| +  V8StringResource<> str;
 | 
| +  str = info[0];
 | 
| +  if (!str.prepare())
 | 
| +    return;
 | 
| +
 | 
| +  TestInterfaceGarbageCollected* impl = TestInterfaceGarbageCollected::create(str);
 | 
| +  v8::Local<v8::Object> wrapper = info.Holder();
 | 
| +  wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper);
 | 
| +  v8SetReturnValue(info, wrapper);
 | 
|  }
 | 
|  
 | 
|  } // namespace TestInterfaceGarbageCollectedV8Internal
 | 
| @@ -378,60 +353,54 @@ const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
 | 
|      {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
 | 
|  };
 | 
|  
 | 
| -void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
 | 
| -{
 | 
| -    if (!info.IsConstructCall()) {
 | 
| -        V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::constructorNotCallableAsFunction("TestInterfaceGarbageCollected"));
 | 
| -        return;
 | 
| -    }
 | 
| +void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
 | 
| +  if (!info.IsConstructCall()) {
 | 
| +    V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::constructorNotCallableAsFunction("TestInterfaceGarbageCollected"));
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExistingObject) {
 | 
| -        v8SetReturnValue(info, info.Holder());
 | 
| -        return;
 | 
| -    }
 | 
| +  if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExistingObject) {
 | 
| +    v8SetReturnValue(info, info.Holder());
 | 
| +    return;
 | 
| +  }
 | 
|  
 | 
| -    TestInterfaceGarbageCollectedV8Internal::constructor(info);
 | 
| +  TestInterfaceGarbageCollectedV8Internal::constructor(info);
 | 
|  }
 | 
|  
 | 
| -static void installV8TestInterfaceGarbageCollectedTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate)
 | 
| -{
 | 
| -    // Initialize the interface object's template.
 | 
| -    V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceGarbageCollected::wrapperTypeInfo.interfaceName, V8EventTarget::domTemplate(isolate, world), V8TestInterfaceGarbageCollected::internalFieldCount);
 | 
| -    interfaceTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructorCallback);
 | 
| -    interfaceTemplate->SetLength(1);
 | 
| -    v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
 | 
| -    ALLOW_UNUSED_LOCAL(signature);
 | 
| -    v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTemplate();
 | 
| -    ALLOW_UNUSED_LOCAL(instanceTemplate);
 | 
| -    v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate();
 | 
| -    ALLOW_UNUSED_LOCAL(prototypeTemplate);
 | 
| -    // Register DOM constants, attributes and operations.
 | 
| -    V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedAccessors));
 | 
| -    V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedMethods));
 | 
| -
 | 
| -    // Iterator (@@iterator)
 | 
| -    const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV8Internal::iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype };
 | 
| -    V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature, symbolKeyedIteratorConfiguration);
 | 
| +static void installV8TestInterfaceGarbageCollectedTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
 | 
| +  // Initialize the interface object's template.
 | 
| +  V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceGarbageCollected::wrapperTypeInfo.interfaceName, V8EventTarget::domTemplate(isolate, world), V8TestInterfaceGarbageCollected::internalFieldCount);
 | 
| +  interfaceTemplate->SetCallHandler(V8TestInterfaceGarbageCollected::constructorCallback);
 | 
| +  interfaceTemplate->SetLength(1);
 | 
| +  v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
 | 
| +  ALLOW_UNUSED_LOCAL(signature);
 | 
| +  v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTemplate();
 | 
| +  ALLOW_UNUSED_LOCAL(instanceTemplate);
 | 
| +  v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate();
 | 
| +  ALLOW_UNUSED_LOCAL(prototypeTemplate);
 | 
| +  // Register DOM constants, attributes and operations.
 | 
| +  V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedAccessors));
 | 
| +  V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterfaceGarbageCollectedMethods, WTF_ARRAY_LENGTH(V8TestInterfaceGarbageCollectedMethods));
 | 
| +
 | 
| +  // Iterator (@@iterator)
 | 
| +  const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceGarbageCollectedV8Internal::iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype };
 | 
| +  V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature, symbolKeyedIteratorConfiguration);
 | 
|  }
 | 
|  
 | 
| -v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world)
 | 
| -{
 | 
| -    return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate);
 | 
| +v8::Local<v8::FunctionTemplate> V8TestInterfaceGarbageCollected::domTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world) {
 | 
| +  return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceGarbageCollectedTemplate);
 | 
|  }
 | 
|  
 | 
| -bool V8TestInterfaceGarbageCollected::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
 | 
| -{
 | 
| -    return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value);
 | 
| +bool V8TestInterfaceGarbageCollected::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
 | 
| +  return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value);
 | 
|  }
 | 
|  
 | 
| -v8::Local<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
 | 
| -{
 | 
| -    return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperTypeInfo, v8Value);
 | 
| +v8::Local<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
 | 
| +  return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperTypeInfo, v8Value);
 | 
|  }
 | 
|  
 | 
| -TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
 | 
| -{
 | 
| -    return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr;
 | 
| +TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
 | 
| +  return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr;
 | 
|  }
 | 
|  
 | 
| -} // namespace blink
 | 
| +}  // namespace blink
 | 
| 
 |