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

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

Issue 156033003: Oilpan: Remove GarbageCollected::ref/deref (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/V8TestEventTarget.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 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after
4880 return v8::Local<v8::ObjectTemplate>::New(isolate, V8WindowShadowObjectC acheForNonMainWorld); 4880 return v8::Local<v8::ObjectTemplate>::New(isolate, V8WindowShadowObjectC acheForNonMainWorld);
4881 } 4881 }
4882 } 4882 }
4883 4883
4884 END 4884 END
4885 } 4885 }
4886 4886
4887 GenerateSpecialWrap($interface, $v8ClassName); 4887 GenerateSpecialWrap($interface, $v8ClassName);
4888 GenerateToV8Converters($interface, $v8ClassName); 4888 GenerateToV8Converters($interface, $v8ClassName);
4889 4889
4890 $implementation{nameSpaceWebCore}->add(<<END); 4890 $implementation{nameSpaceWebCore}->add("void ${v8ClassName}::derefObject(voi d* object)\n");
4891 void ${v8ClassName}::derefObject(void* object) 4891 $implementation{nameSpaceWebCore}->add("{\n");
4892 { 4892 if (IsWillBeGarbageCollectedType($interface->name)) {
4893 fromInternalPointer(object)->deref(); 4893 $implementation{nameSpaceWebCore}->add("#if !ENABLE(OILPAN)\n");
4894 } 4894 }
4895 4895 $implementation{nameSpaceWebCore}->add(" fromInternalPointer(object)->der ef();\n");
4896 END 4896 if (IsWillBeGarbageCollectedType($interface->name)) {
4897 $implementation{nameSpaceWebCore}->add("#endif\n");
4898 }
4899 $implementation{nameSpaceWebCore}->add("}\n");
4897 4900
4898 $implementation{nameSpaceWebCore}->add(<<END); 4901 $implementation{nameSpaceWebCore}->add(<<END);
4899 template<> 4902 template<>
4900 v8::Handle<v8::Value> toV8NoInline(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 4903 v8::Handle<v8::Value> toV8NoInline(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
4901 { 4904 {
4902 return toV8(impl, creationContext, isolate); 4905 return toV8(impl, creationContext, isolate);
4903 } 4906 }
4904 4907
4905 END 4908 END
4906 } 4909 }
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
6479 if ($parameter->type eq "SerializedScriptValue") { 6482 if ($parameter->type eq "SerializedScriptValue") {
6480 return 1; 6483 return 1;
6481 } elsif (IsIntegerType($parameter->type)) { 6484 } elsif (IsIntegerType($parameter->type)) {
6482 return 1; 6485 return 1;
6483 } 6486 }
6484 } 6487 }
6485 return 0; 6488 return 0;
6486 } 6489 }
6487 6490
6488 1; 6491 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestEventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698