OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 return std::numeric_limits<double>::quiet_NaN(); | 539 return std::numeric_limits<double>::quiet_NaN(); |
540 } | 540 } |
541 | 541 |
542 inline v8::Handle<v8::Value> v8DateOrNaN(double value, v8::Isolate* isolate) | 542 inline v8::Handle<v8::Value> v8DateOrNaN(double value, v8::Isolate* isolate) |
543 { | 543 { |
544 ASSERT(isolate); | 544 ASSERT(isolate); |
545 return v8::Date::New(isolate, std::isfinite(value) ? value : std::numeric_li
mits<double>::quiet_NaN()); | 545 return v8::Date::New(isolate, std::isfinite(value) ? value : std::numeric_li
mits<double>::quiet_NaN()); |
546 } | 546 } |
547 | 547 |
548 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. | 548 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. |
549 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*); | 549 PassRefPtrWillBeRawPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isola
te*); |
550 PassRefPtrWillBeRawPtr<XPathNSResolver> toXPathNSResolver(v8::Handle<v8::Value>,
v8::Isolate*); | 550 PassRefPtrWillBeRawPtr<XPathNSResolver> toXPathNSResolver(v8::Handle<v8::Value>,
v8::Isolate*); |
551 | 551 |
552 template<class T> struct NativeValueTraits; | 552 template<class T> struct NativeValueTraits; |
553 | 553 |
554 template<> | 554 template<> |
555 struct NativeValueTraits<String> { | 555 struct NativeValueTraits<String> { |
556 static inline String nativeValue(const v8::Handle<v8::Value>& value, v8::Iso
late* isolate) | 556 static inline String nativeValue(const v8::Handle<v8::Value>& value, v8::Iso
late* isolate) |
557 { | 557 { |
558 TOSTRING_DEFAULT(V8StringResource<>, stringValue, value, String()); | 558 TOSTRING_DEFAULT(V8StringResource<>, stringValue, value, String()); |
559 return stringValue; | 559 return stringValue; |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 RefPtr<ScriptState> m_scriptState; | 944 RefPtr<ScriptState> m_scriptState; |
945 }; | 945 }; |
946 | 946 |
947 void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& script
Id, String& resourceName, int& lineNumber); | 947 void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& script
Id, String& resourceName, int& lineNumber); |
948 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext*, v8::Handle<v8::Function>, v8::Isolate*); | 948 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext*, v8::Handle<v8::Function>, v8::Isolate*); |
949 | 949 |
950 | 950 |
951 } // namespace WebCore | 951 } // namespace WebCore |
952 | 952 |
953 #endif // V8Binding_h | 953 #endif // V8Binding_h |
OLD | NEW |