| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  *     * Redistributions of source code must retain the above copyright | 8  *     * Redistributions of source code must retain the above copyright | 
| 9  * notice, this list of conditions and the following disclaimer. | 9  * notice, this list of conditions and the following disclaimer. | 
| 10  *     * Redistributions in binary form must reproduce the above | 10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67 namespace WebCore { | 67 namespace WebCore { | 
| 68 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = {
      gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test
     InterfaceWillBeGarbageCollected::derefObject, 0, V8TestInterfaceWillBeGarbageCol
     lected::toEventTarget, 0, V8TestInterfaceWillBeGarbageCollected::installPerConte
     xtEnabledMethods, &V8EventTarget::wrapperTypeInfo, WrapperTypeObjectPrototype, t
     rue }; | 68 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = {
      gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test
     InterfaceWillBeGarbageCollected::derefObject, 0, V8TestInterfaceWillBeGarbageCol
     lected::toEventTarget, 0, V8TestInterfaceWillBeGarbageCollected::installPerConte
     xtEnabledMethods, &V8EventTarget::wrapperTypeInfo, WrapperTypeObjectPrototype, t
     rue }; | 
| 69 | 69 | 
| 70 namespace TestInterfaceWillBeGarbageCollectedV8Internal { | 70 namespace TestInterfaceWillBeGarbageCollectedV8Internal { | 
| 71 | 71 | 
| 72 template <typename T> void V8_USE(T) { } | 72 template <typename T> void V8_USE(T) { } | 
| 73 | 73 | 
| 74 static void attr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
     ) | 74 static void attr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
     ) | 
| 75 { | 75 { | 
| 76     TestInterfaceWillBeGarbageCollected* imp = V8TestInterfaceWillBeGarbageColle
     cted::toNative(info.Holder()); | 76     TestInterfaceWillBeGarbageCollected* imp = V8TestInterfaceWillBeGarbageColle
     cted::toNative(info.Holder()); | 
| 77     v8SetReturnValueFast(info, imp->attr1(), imp); | 77     v8SetReturnValueFast(info, WTF::getPtr(imp->attr1()), imp); | 
| 78 } | 78 } | 
| 79 | 79 | 
| 80 static void attr1AttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
     tyCallbackInfo<v8::Value>& info) | 80 static void attr1AttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
     tyCallbackInfo<v8::Value>& info) | 
| 81 { | 81 { | 
| 82     TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 82     TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 
| 83     TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGetter(info); | 83     TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGetter(info); | 
| 84     TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 84     TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 
| 85 } | 85 } | 
| 86 | 86 | 
| 87 static void attr1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert
     yCallbackInfo<void>& info) | 87 static void attr1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert
     yCallbackInfo<void>& info) | 
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 236 #endif // !ENABLE(OILPAN) | 236 #endif // !ENABLE(OILPAN) | 
| 237 } | 237 } | 
| 238 | 238 | 
| 239 template<> | 239 template<> | 
| 240 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
     ::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 240 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
     ::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 
| 241 { | 241 { | 
| 242     return toV8(impl, creationContext, isolate); | 242     return toV8(impl, creationContext, isolate); | 
| 243 } | 243 } | 
| 244 | 244 | 
| 245 } // namespace WebCore | 245 } // namespace WebCore | 
| OLD | NEW | 
|---|