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

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

Issue 23637014: Have V8HiddenPropertyName static functions take an isolate in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/v8/CustomElementConstructorBuilder.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 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate ())); 2714 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate ()));
2715 if (!fill${implClassName}Init(eventInit, options)) 2715 if (!fill${implClassName}Init(eventInit, options))
2716 return; 2716 return;
2717 END 2717 END
2718 2718
2719 # Store 'any'-typed properties on the wrapper to avoid leaking them between isolated worlds. 2719 # Store 'any'-typed properties on the wrapper to avoid leaking them between isolated worlds.
2720 foreach my $attrName (@anyAttributeNames) { 2720 foreach my $attrName (@anyAttributeNames) {
2721 $implementation{nameSpaceInternal}->add(<<END); 2721 $implementation{nameSpaceInternal}->add(<<END);
2722 options.get("${attrName}", ${attrName}); 2722 options.get("${attrName}", ${attrName});
2723 if (!${attrName}.IsEmpty()) 2723 if (!${attrName}.IsEmpty())
2724 args.Holder()->SetHiddenValue(V8HiddenPropertyName::${attrName}(), $ {attrName}); 2724 args.Holder()->SetHiddenValue(V8HiddenPropertyName::${attrName}(args .GetIsolate()), ${attrName});
2725 END 2725 END
2726 } 2726 }
2727 2727
2728 $implementation{nameSpaceInternal}->add(<<END); 2728 $implementation{nameSpaceInternal}->add(<<END);
2729 } 2729 }
2730 2730
2731 RefPtr<${implClassName}> event = ${implClassName}::create(type, eventInit); 2731 RefPtr<${implClassName}> event = ${implClassName}::create(type, eventInit);
2732 END 2732 END
2733 2733
2734 if (@serializableAnyAttributeNames) { 2734 if (@serializableAnyAttributeNames) {
(...skipping 3340 matching lines...) Expand 10 before | Expand all | Expand 10 after
6075 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6075 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6076 $found = 1; 6076 $found = 1;
6077 } 6077 }
6078 return 1 if $found; 6078 return 1 if $found;
6079 }, 0); 6079 }, 0);
6080 6080
6081 return $found; 6081 return $found;
6082 } 6082 }
6083 6083
6084 1; 6084 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/v8/CustomElementConstructorBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698