| OLD | NEW |
| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 V(Int16Array, JSTypedArray) \ | 160 V(Int16Array, JSTypedArray) \ |
| 161 V(Uint32Array, JSTypedArray) \ | 161 V(Uint32Array, JSTypedArray) \ |
| 162 V(Int32Array, JSTypedArray) \ | 162 V(Int32Array, JSTypedArray) \ |
| 163 V(Float32Array, JSTypedArray) \ | 163 V(Float32Array, JSTypedArray) \ |
| 164 V(Float64Array, JSTypedArray) \ | 164 V(Float64Array, JSTypedArray) \ |
| 165 V(DataView, JSDataView) \ | 165 V(DataView, JSDataView) \ |
| 166 V(SharedArrayBuffer, JSArrayBuffer) \ | 166 V(SharedArrayBuffer, JSArrayBuffer) \ |
| 167 V(Name, Name) \ | 167 V(Name, Name) \ |
| 168 V(String, String) \ | 168 V(String, String) \ |
| 169 V(Symbol, Symbol) \ | 169 V(Symbol, Symbol) \ |
| 170 V(Float32x4, Float32x4) \ |
| 170 V(Script, JSFunction) \ | 171 V(Script, JSFunction) \ |
| 171 V(UnboundScript, SharedFunctionInfo) \ | 172 V(UnboundScript, SharedFunctionInfo) \ |
| 172 V(Function, JSFunction) \ | 173 V(Function, JSFunction) \ |
| 173 V(Message, JSMessageObject) \ | 174 V(Message, JSMessageObject) \ |
| 174 V(Context, Context) \ | 175 V(Context, Context) \ |
| 175 V(External, Object) \ | 176 V(External, Object) \ |
| 176 V(StackTrace, JSArray) \ | 177 V(StackTrace, JSArray) \ |
| 177 V(StackFrame, JSObject) \ | 178 V(StackFrame, JSObject) \ |
| 178 V(NativeWeakMap, JSWeakMap) | 179 V(NativeWeakMap, JSWeakMap) |
| 179 | 180 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 194 static inline Local<Value> ToLocal( | 195 static inline Local<Value> ToLocal( |
| 195 v8::internal::Handle<v8::internal::Object> obj); | 196 v8::internal::Handle<v8::internal::Object> obj); |
| 196 static inline Local<Function> ToLocal( | 197 static inline Local<Function> ToLocal( |
| 197 v8::internal::Handle<v8::internal::JSFunction> obj); | 198 v8::internal::Handle<v8::internal::JSFunction> obj); |
| 198 static inline Local<Name> ToLocal( | 199 static inline Local<Name> ToLocal( |
| 199 v8::internal::Handle<v8::internal::Name> obj); | 200 v8::internal::Handle<v8::internal::Name> obj); |
| 200 static inline Local<String> ToLocal( | 201 static inline Local<String> ToLocal( |
| 201 v8::internal::Handle<v8::internal::String> obj); | 202 v8::internal::Handle<v8::internal::String> obj); |
| 202 static inline Local<Symbol> ToLocal( | 203 static inline Local<Symbol> ToLocal( |
| 203 v8::internal::Handle<v8::internal::Symbol> obj); | 204 v8::internal::Handle<v8::internal::Symbol> obj); |
| 205 static inline Local<Float32x4> ToLocal( |
| 206 v8::internal::Handle<v8::internal::Float32x4> obj); |
| 204 static inline Local<RegExp> ToLocal( | 207 static inline Local<RegExp> ToLocal( |
| 205 v8::internal::Handle<v8::internal::JSRegExp> obj); | 208 v8::internal::Handle<v8::internal::JSRegExp> obj); |
| 206 static inline Local<Object> ToLocal( | 209 static inline Local<Object> ToLocal( |
| 207 v8::internal::Handle<v8::internal::JSObject> obj); | 210 v8::internal::Handle<v8::internal::JSObject> obj); |
| 208 static inline Local<Array> ToLocal( | 211 static inline Local<Array> ToLocal( |
| 209 v8::internal::Handle<v8::internal::JSArray> obj); | 212 v8::internal::Handle<v8::internal::JSArray> obj); |
| 210 static inline Local<Map> ToLocal( | 213 static inline Local<Map> ToLocal( |
| 211 v8::internal::Handle<v8::internal::JSMap> obj); | 214 v8::internal::Handle<v8::internal::JSMap> obj); |
| 212 static inline Local<Set> ToLocal( | 215 static inline Local<Set> ToLocal( |
| 213 v8::internal::Handle<v8::internal::JSSet> obj); | 216 v8::internal::Handle<v8::internal::JSSet> obj); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \ | 361 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \ |
| 359 } | 362 } |
| 360 | 363 |
| 361 | 364 |
| 362 MAKE_TO_LOCAL(ToLocal, Context, Context) | 365 MAKE_TO_LOCAL(ToLocal, Context, Context) |
| 363 MAKE_TO_LOCAL(ToLocal, Object, Value) | 366 MAKE_TO_LOCAL(ToLocal, Object, Value) |
| 364 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) | 367 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) |
| 365 MAKE_TO_LOCAL(ToLocal, Name, Name) | 368 MAKE_TO_LOCAL(ToLocal, Name, Name) |
| 366 MAKE_TO_LOCAL(ToLocal, String, String) | 369 MAKE_TO_LOCAL(ToLocal, String, String) |
| 367 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) | 370 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) |
| 371 MAKE_TO_LOCAL(ToLocal, Float32x4, Float32x4) |
| 368 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) | 372 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) |
| 369 MAKE_TO_LOCAL(ToLocal, JSObject, Object) | 373 MAKE_TO_LOCAL(ToLocal, JSObject, Object) |
| 370 MAKE_TO_LOCAL(ToLocal, JSArray, Array) | 374 MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
| 371 MAKE_TO_LOCAL(ToLocal, JSMap, Map) | 375 MAKE_TO_LOCAL(ToLocal, JSMap, Map) |
| 372 MAKE_TO_LOCAL(ToLocal, JSSet, Set) | 376 MAKE_TO_LOCAL(ToLocal, JSSet, Set) |
| 373 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) | 377 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
| 374 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) | 378 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) |
| 375 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) | 379 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) |
| 376 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) | 380 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) |
| 377 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) | 381 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 stress_type_ = stress_type; | 720 stress_type_ = stress_type; |
| 717 } | 721 } |
| 718 | 722 |
| 719 private: | 723 private: |
| 720 static v8::Testing::StressType stress_type_; | 724 static v8::Testing::StressType stress_type_; |
| 721 }; | 725 }; |
| 722 | 726 |
| 723 } } // namespace v8::internal | 727 } } // namespace v8::internal |
| 724 | 728 |
| 725 #endif // V8_API_H_ | 729 #endif // V8_API_H_ |
| OLD | NEW |