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

Side by Side Diff: Source/bindings/scripts/deprecated_code_generator_v8.pm

Issue 23450039: Pass isolate to ScriptValue constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestMediaQueryListListener.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
5 # Copyright (C) 2006 Apple Computer, Inc. 5 # Copyright (C) 2006 Apple Computer, Inc.
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc.
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. 10 # Copyright (C) 2012 Ericsson AB. All rights reserved.
(...skipping 5137 matching lines...) Expand 10 before | Expand all | Expand 10 after
5148 return "SerializedScriptValue::create($value, $getIsolate)"; 5148 return "SerializedScriptValue::create($value, $getIsolate)";
5149 } 5149 }
5150 5150
5151 if ($type eq "Dictionary") { 5151 if ($type eq "Dictionary") {
5152 AddToImplIncludes("bindings/v8/Dictionary.h"); 5152 AddToImplIncludes("bindings/v8/Dictionary.h");
5153 return "Dictionary($value, $getIsolate)"; 5153 return "Dictionary($value, $getIsolate)";
5154 } 5154 }
5155 5155
5156 if ($type eq "any" || IsCallbackFunctionType($type)) { 5156 if ($type eq "any" || IsCallbackFunctionType($type)) {
5157 AddToImplIncludes("bindings/v8/ScriptValue.h"); 5157 AddToImplIncludes("bindings/v8/ScriptValue.h");
5158 return "ScriptValue($value)"; 5158 return "ScriptValue($value, $getIsolate)";
5159 } 5159 }
5160 5160
5161 if ($type eq "Promise") { 5161 if ($type eq "Promise") {
5162 AddToImplIncludes("bindings/v8/ScriptPromise.h"); 5162 AddToImplIncludes("bindings/v8/ScriptPromise.h");
5163 return "ScriptPromise($value)"; 5163 return "ScriptPromise($value)";
5164 } 5164 }
5165 5165
5166 if ($type eq "NodeFilter") { 5166 if ($type eq "NodeFilter") {
5167 return "toNodeFilter($value, $getIsolate)"; 5167 return "toNodeFilter($value, $getIsolate)";
5168 } 5168 }
5169 5169
5170 if ($type eq "MediaQueryListListener") { 5170 if ($type eq "MediaQueryListListener") {
5171 AddToImplIncludes("core/css/MediaQueryListListener.h"); 5171 AddToImplIncludes("core/css/MediaQueryListListener.h");
5172 return "MediaQueryListListener::create(" . $value . ")"; 5172 return "MediaQueryListListener::create(ScriptValue(" . $value . ", $getI solate))";
5173 } 5173 }
5174 5174
5175 if ($type eq "EventTarget") { 5175 if ($type eq "EventTarget") {
5176 return "V8DOMWrapper::isDOMWrapper($value) ? toWrapperTypeInfo(v8::Handl e<v8::Object>::Cast($value))->toEventTarget(v8::Handle<v8::Object>::Cast($value) ) : 0"; 5176 return "V8DOMWrapper::isDOMWrapper($value) ? toWrapperTypeInfo(v8::Handl e<v8::Object>::Cast($value))->toEventTarget(v8::Handle<v8::Object>::Cast($value) ) : 0";
5177 } 5177 }
5178 5178
5179 if (IsTypedArrayType($type)) { 5179 if (IsTypedArrayType($type)) {
5180 AddIncludesForType($type); 5180 AddIncludesForType($type);
5181 return "$value->Is${type}() ? V8${type}::toNative(v8::Handle<v8::${type} >::Cast($value)) : 0" 5181 return "$value->Is${type}() ? V8${type}::toNative(v8::Handle<v8::${type} >::Cast($value)) : 0"
5182 } 5182 }
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
6024 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6024 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6025 $found = 1; 6025 $found = 1;
6026 } 6026 }
6027 return 1 if $found; 6027 return 1 if $found;
6028 }, 0); 6028 }, 0);
6029 6029
6030 return $found; 6030 return $found;
6031 } 6031 }
6032 6032
6033 1; 6033 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestMediaQueryListListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698