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

Side by Side Diff: Source/bindings/templates/interface.h

Issue 556823003: Revert "Revert of [oilpan]: optimize the way we allocate persistent handles in wrappers. (patchset … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review feedback Created 6 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
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 #ifndef {{v8_class}}_h 7 #ifndef {{v8_class}}_h
8 #define {{v8_class}}_h 8 #define {{v8_class}}_h
9 9
10 {% filter conditional(conditional_string) %} 10 {% filter conditional(conditional_string) %}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*); 46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*);
47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
48 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) 48 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object)
49 { 49 {
50 return toImpl(blink::toScriptWrappableBase(object)); 50 return toImpl(blink::toScriptWrappableBase(object));
51 } 51 }
52 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value >); 52 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value >);
53 static const WrapperTypeInfo wrapperTypeInfo; 53 static const WrapperTypeInfo wrapperTypeInfo;
54 static void refObject(ScriptWrappableBase* internalPointer); 54 static void refObject(ScriptWrappableBase* internalPointer);
55 static void derefObject(ScriptWrappableBase* internalPointer); 55 static void derefObject(ScriptWrappableBase* internalPointer);
56 static PersistentNode* createPersistentHandle(ScriptWrappableBase* internalP ointer); 56 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in ternalPointer);
57 {% if has_visit_dom_wrapper %} 57 {% if has_visit_dom_wrapper %}
58 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8:: Persistent<v8::Object>&, v8::Isolate*); 58 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8:: Persistent<v8::Object>&, v8::Isolate*);
59 {% endif %} 59 {% endif %}
60 {% if is_active_dom_object %} 60 {% if is_active_dom_object %}
61 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 61 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
62 {% endif %} 62 {% endif %}
63 {% if is_event_target %} 63 {% if is_event_target %}
64 static EventTarget* toEventTarget(v8::Handle<v8::Object>); 64 static EventTarget* toEventTarget(v8::Handle<v8::Object>);
65 {% endif %} 65 {% endif %}
66 {% if interface_name == 'Window' %} 66 {% if interface_name == 'Window' %}
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 285 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
286 } 286 }
287 287
288 {% if has_event_constructor %} 288 {% if has_event_constructor %}
289 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 289 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
290 290
291 {% endif %} 291 {% endif %}
292 } // namespace blink 292 } // namespace blink
293 {% endfilter %} 293 {% endfilter %}
294 #endif // {{v8_class}}_h 294 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8TypedArrayCustom.h ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698