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

Side by Side Diff: src/api.h

Issue 1092923002: Remove support for externally backed elements from the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_API_H_ 5 #ifndef V8_API_H_
6 #define V8_API_H_ 6 #define V8_API_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "include/v8-testing.h" 10 #include "include/v8-testing.h"
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 333
334 // Implementations of ToLocal 334 // Implementations of ToLocal
335 335
336 #define MAKE_TO_LOCAL(Name, From, To) \ 336 #define MAKE_TO_LOCAL(Name, From, To) \
337 Local<v8::To> Utils::Name(v8::internal::Handle<v8::internal::From> obj) { \ 337 Local<v8::To> Utils::Name(v8::internal::Handle<v8::internal::From> obj) { \
338 return Convert<v8::internal::From, v8::To>(obj); \ 338 return Convert<v8::internal::From, v8::To>(obj); \
339 } 339 }
340 340
341 341
342 #define MAKE_TO_LOCAL_TYPED_ARRAY(Type, typeName, TYPE, ctype, size) \ 342 #define MAKE_TO_LOCAL_TYPED_ARRAY(Type, typeName, TYPE, ctype, size) \
343 Local<v8::Type##Array> Utils::ToLocal##Type##Array( \ 343 Local<v8::Type##Array> Utils::ToLocal##Type##Array( \
344 v8::internal::Handle<v8::internal::JSTypedArray> obj) { \ 344 v8::internal::Handle<v8::internal::JSTypedArray> obj) { \
345 DCHECK(obj->type() == kExternal##Type##Array); \ 345 DCHECK(obj->type() == v8::internal::kExternal##Type##Array); \
346 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \ 346 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \
347 } 347 }
348 348
349 349
350 MAKE_TO_LOCAL(ToLocal, Context, Context) 350 MAKE_TO_LOCAL(ToLocal, Context, Context)
351 MAKE_TO_LOCAL(ToLocal, Object, Value) 351 MAKE_TO_LOCAL(ToLocal, Object, Value)
352 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) 352 MAKE_TO_LOCAL(ToLocal, JSFunction, Function)
353 MAKE_TO_LOCAL(ToLocal, Name, Name) 353 MAKE_TO_LOCAL(ToLocal, Name, Name)
354 MAKE_TO_LOCAL(ToLocal, String, String) 354 MAKE_TO_LOCAL(ToLocal, String, String)
355 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) 355 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 stress_type_ = stress_type; 701 stress_type_ = stress_type;
702 } 702 }
703 703
704 private: 704 private:
705 static v8::Testing::StressType stress_type_; 705 static v8::Testing::StressType stress_type_;
706 }; 706 };
707 707
708 } } // namespace v8::internal 708 } } // namespace v8::internal
709 709
710 #endif // V8_API_H_ 710 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698