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

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

Issue 350293004: Oilpan: fix build after r177060 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 }; 261 };
262 262
263 template <typename T, size_t inlineCapacity, typename Allocator> 263 template <typename T, size_t inlineCapacity, typename Allocator>
264 struct V8ValueTraits<WTF::Vector<T, inlineCapacity, Allocator> > { 264 struct V8ValueTraits<WTF::Vector<T, inlineCapacity, Allocator> > {
265 static v8::Handle<v8::Value> toV8Value(const Vector<T, inlineCapacity, Alloc ator>& value, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 265 static v8::Handle<v8::Value> toV8Value(const Vector<T, inlineCapacity, Alloc ator>& value, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
266 { 266 {
267 return v8ArrayNoInline(value, creationContext, isolate); 267 return v8ArrayNoInline(value, creationContext, isolate);
268 } 268 }
269 }; 269 };
270 270
271 template <typename T, size_t inlineCapacity>
272 struct V8ValueTraits<HeapVector<T, inlineCapacity> > {
273 static v8::Handle<v8::Value> toV8Value(const HeapVector<T, inlineCapacity>& value, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
274 {
275 return v8ArrayNoInline(value, creationContext, isolate);
276 }
277 };
278
271 template<> 279 template<>
272 struct V8ValueTraits<String> { 280 struct V8ValueTraits<String> {
273 static inline v8::Handle<v8::Value> toV8Value(const String& value, v8::Handl e<v8::Object>, v8::Isolate* isolate) 281 static inline v8::Handle<v8::Value> toV8Value(const String& value, v8::Handl e<v8::Object>, v8::Isolate* isolate)
274 { 282 {
275 return v8String(isolate, value); 283 return v8String(isolate, value);
276 } 284 }
277 }; 285 };
278 286
279 template<> 287 template<>
280 struct V8ValueTraits<AtomicString> { 288 struct V8ValueTraits<AtomicString> {
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 m_block.Reset(); 996 m_block.Reset();
989 } 997 }
990 998
991 private: 999 private:
992 v8::TryCatch& m_block; 1000 v8::TryCatch& m_block;
993 }; 1001 };
994 1002
995 } // namespace WebCore 1003 } // namespace WebCore
996 1004
997 #endif // V8Binding_h 1005 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698