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

Side by Side Diff: Source/bindings/v8/V8Binding.h

Issue 285213003: Oilpan: move Node traversal objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Drop nullptr type conversions Created 6 years, 7 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
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698