| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95 | 95 | 
| 96     ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestName
     dConstructor", info.Holder(), info.GetIsolate()); | 96     ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestName
     dConstructor", info.Holder(), info.GetIsolate()); | 
| 97     if (UNLIKELY(info.Length() < 1)) { | 97     if (UNLIKELY(info.Length() < 1)) { | 
| 98         exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
     nfo.Length())); | 98         exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
     nfo.Length())); | 
| 99         exceptionState.throwIfNeeded(); | 99         exceptionState.throwIfNeeded(); | 
| 100         return; | 100         return; | 
| 101     } | 101     } | 
| 102     V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, info[0]); | 102     V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, info[0]); | 
| 103     V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, info[1]); | 103     V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, info[1]); | 
| 104     V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNul
     l(info, 2)); | 104     V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNul
     l(info, 2)); | 
| 105 |  | 
| 106     RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstru
     ctor(*document, str1, str2, str3, exceptionState); | 105     RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstru
     ctor(*document, str1, str2, str3, exceptionState); | 
| 107     v8::Handle<v8::Object> wrapper = info.Holder(); | 106     v8::Handle<v8::Object> wrapper = info.Holder(); | 
| 108     if (exceptionState.throwIfNeeded()) | 107     if (exceptionState.throwIfNeeded()) | 
| 109         return; | 108         return; | 
| 110 | 109 | 
| 111     V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas
     e(), &V8TestNamedConstructorConstructor::wrapperTypeInfo, wrapper, info.GetIsola
     te(), WrapperConfiguration::Dependent); | 110     V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas
     e(), &V8TestNamedConstructorConstructor::wrapperTypeInfo, wrapper, info.GetIsola
     te(), WrapperConfiguration::Dependent); | 
| 112     v8SetReturnValue(info, wrapper); | 111     v8SetReturnValue(info, wrapper); | 
| 113 } | 112 } | 
| 114 | 113 | 
| 115 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::domTemplate(
     v8::Isolate* isolate, WrapperWorldType currentWorldType) | 114 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::domTemplate(
     v8::Isolate* isolate, WrapperWorldType currentWorldType) | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 209     fromInternalPointer(object)->deref(); | 208     fromInternalPointer(object)->deref(); | 
| 210 } | 209 } | 
| 211 | 210 | 
| 212 template<> | 211 template<> | 
| 213 v8::Handle<v8::Value> toV8NoInline(TestNamedConstructor* impl, v8::Handle<v8::Ob
     ject> creationContext, v8::Isolate* isolate) | 212 v8::Handle<v8::Value> toV8NoInline(TestNamedConstructor* impl, v8::Handle<v8::Ob
     ject> creationContext, v8::Isolate* isolate) | 
| 214 { | 213 { | 
| 215     return toV8(impl, creationContext, isolate); | 214     return toV8(impl, creationContext, isolate); | 
| 216 } | 215 } | 
| 217 | 216 | 
| 218 } // namespace WebCore | 217 } // namespace WebCore | 
| OLD | NEW | 
|---|