Index: Source/bindings/tests/results/V8TestSpecialOperationsAnonymous.cpp |
diff --git a/Source/bindings/tests/results/V8TestSpecialOperationsAnonymous.cpp b/Source/bindings/tests/results/V8TestSpecialOperationsAnonymous.cpp |
index af9e437acf2b57a31831d4bef0d032d0cda54075..0f5de25b2be5a7a868e7404fe091d80b6dcd6e42 100644 |
--- a/Source/bindings/tests/results/V8TestSpecialOperationsAnonymous.cpp |
+++ b/Source/bindings/tests/results/V8TestSpecialOperationsAnonymous.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 "V8TestSpecialOperationsAnonymous.h" |
@@ -56,10 +30,6 @@ static void initializeScriptWrappableForInterface(TestSpecialOperationsAnonymous |
} // 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::TestSpecialOperationsAnonymous* object) |
{ |
WebCore::initializeScriptWrappableForInterface(object); |
@@ -205,14 +175,15 @@ static void namedPropertyDeleterCallback(v8::Local<v8::String> name, const v8::P |
static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) |
{ |
TestSpecialOperationsAnonymous* impl = V8TestSpecialOperationsAnonymous::toNative(info.Holder()); |
+ v8::Isolate* isolate = info.GetIsolate(); |
Vector<String> names; |
- ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestSpecialOperationsAnonymous", info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestSpecialOperationsAnonymous", info.Holder(), isolate); |
impl->namedPropertyEnumerator(names, exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |
- v8::Handle<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size()); |
+ v8::Handle<v8::Array> v8names = v8::Array::New(isolate, names.size()); |
for (size_t i = 0; i < names.size(); ++i) |
- v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIsolate(), names[i])); |
+ v8names->Set(v8::Integer::New(isolate, i), v8String(isolate, names[i])); |
v8SetReturnValue(info, v8names); |
} |