| OLD | NEW |
| 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_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 v8::Handle<v8::Object> wrapper = info.Holder(); | 98 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 99 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2>(impl.r
elease(), &V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, isolate, Wrapp
erConfiguration::Independent); | 99 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2>(impl.r
elease(), &V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, isolate, Wrapp
erConfiguration::Independent); |
| 100 v8SetReturnValue(info, wrapper); | 100 v8SetReturnValue(info, wrapper); |
| 101 } | 101 } |
| 102 | 102 |
| 103 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 103 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 104 { | 104 { |
| 105 v8::Isolate* isolate = info.GetIsolate(); | 105 v8::Isolate* isolate = info.GetIsolate(); |
| 106 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor2", info.Holder(), isolate); | 106 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor2", info.Holder(), isolate); |
| 107 switch (info.Length()) { | 107 switch (std::min(6, info.Length())) { |
| 108 case 1: | 108 case 1: |
| 109 if (info[0]->IsObject()) { | 109 if (info[0]->IsObject()) { |
| 110 TestInterfaceConstructor2V8Internal::constructor2(info); | 110 TestInterfaceConstructor2V8Internal::constructor2(info); |
| 111 return; | 111 return; |
| 112 } | 112 } |
| 113 if (true) { | 113 if (true) { |
| 114 TestInterfaceConstructor2V8Internal::constructor1(info); | 114 TestInterfaceConstructor2V8Internal::constructor1(info); |
| 115 return; | 115 return; |
| 116 } | 116 } |
| 117 break; | 117 break; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 fromInternalPointer(object)->deref(); | 245 fromInternalPointer(object)->deref(); |
| 246 } | 246 } |
| 247 | 247 |
| 248 template<> | 248 template<> |
| 249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 250 { | 250 { |
| 251 return toV8(impl, creationContext, isolate); | 251 return toV8(impl, creationContext, isolate); |
| 252 } | 252 } |
| 253 | 253 |
| 254 } // namespace WebCore | 254 } // namespace WebCore |
| OLD | NEW |