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

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

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 } 424 }
425 425
426 inline v8::Handle<v8::Value> v8DateOrNull(double value, v8::Isolate* isolate ) 426 inline v8::Handle<v8::Value> v8DateOrNull(double value, v8::Isolate* isolate )
427 { 427 {
428 ASSERT(isolate); 428 ASSERT(isolate);
429 return std::isfinite(value) ? v8::Date::New(isolate, value) : v8::Handle <v8::Value>::Cast(v8::Null(isolate)); 429 return std::isfinite(value) ? v8::Date::New(isolate, value) : v8::Handle <v8::Value>::Cast(v8::Null(isolate));
430 } 430 }
431 431
432 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver. 432 // FIXME: Remove the special casing for NodeFilter and XPathNSResolver.
433 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*); 433 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*);
434 PassRefPtr<XPathNSResolver> toXPathNSResolver(v8::Handle<v8::Value>, v8::Iso late*); 434 PassRefPtrWillBeRawPtr<XPathNSResolver> toXPathNSResolver(v8::Handle<v8::Val ue>, v8::Isolate*);
435 435
436 template<class T> struct NativeValueTraits; 436 template<class T> struct NativeValueTraits;
437 437
438 template<> 438 template<>
439 struct NativeValueTraits<String> { 439 struct NativeValueTraits<String> {
440 static inline String nativeValue(const v8::Handle<v8::Value>& value, v8: :Isolate* isolate) 440 static inline String nativeValue(const v8::Handle<v8::Value>& value, v8: :Isolate* isolate)
441 { 441 {
442 V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringVal ue, value, String()); 442 V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringVal ue, value, String());
443 return stringValue; 443 return stringValue;
444 } 444 }
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 m_isolate->ClearInterrupt(); 715 m_isolate->ClearInterrupt();
716 } 716 }
717 717
718 private: 718 private:
719 v8::Isolate* m_isolate; 719 v8::Isolate* m_isolate;
720 }; 720 };
721 721
722 } // namespace WebCore 722 } // namespace WebCore
723 723
724 #endif // V8Binding_h 724 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698