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

Side by Side Diff: Source/bindings/templates/union.cpp

Issue 954683002: InlinedVisitor: Migrate bindings to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "{{header_filename}}" 8 #include "{{header_filename}}"
9 9
10 {% macro assign_and_return_if_hasinstance(member) %} 10 {% macro assign_and_return_if_hasinstance(member) %}
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 {{container.cpp_class}} {{container.cpp_class}}::from{{member.type_name}}({{memb er.rvalue_cpp_type}} value) 50 {{container.cpp_class}} {{container.cpp_class}}::from{{member.type_name}}({{memb er.rvalue_cpp_type}} value)
51 { 51 {
52 {{container.cpp_class}} container; 52 {{container.cpp_class}} container;
53 container.set{{member.type_name}}(value); 53 container.set{{member.type_name}}(value);
54 return container; 54 return container;
55 } 55 }
56 56
57 {% endfor %} 57 {% endfor %}
58 {% if container.needs_trace %} 58 {% if container.needs_trace %}
59 void {{container.cpp_class}}::trace(Visitor* visitor) 59 DEFINE_TRACE({{container.cpp_class}})
60 { 60 {
61 {% for member in container.members if member.is_traceable %} 61 {% for member in container.members if member.is_traceable %}
62 visitor->trace(m_{{member.cpp_name}}); 62 visitor->trace(m_{{member.cpp_name}});
63 {% endfor %} 63 {% endfor %}
64 } 64 }
65 65
66 {% endif %} 66 {% endif %}
67 void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value > v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState) 67 void V8{{container.cpp_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value > v8Value, {{container.cpp_class}}& impl, ExceptionState& exceptionState)
68 { 68 {
69 if (v8Value.IsEmpty()) 69 if (v8Value.IsEmpty())
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue( const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& excepti onState) 189 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue( const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& excepti onState)
190 { 190 {
191 {{container.cpp_class}} impl; 191 {{container.cpp_class}} impl;
192 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState); 192 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState);
193 return impl; 193 return impl;
194 } 194 }
195 195
196 {% endfor %} 196 {% endfor %}
197 } // namespace blink 197 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698