OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 V(Template, TemplateInfo) \ | 163 V(Template, TemplateInfo) \ |
164 V(FunctionTemplate, FunctionTemplateInfo) \ | 164 V(FunctionTemplate, FunctionTemplateInfo) \ |
165 V(ObjectTemplate, ObjectTemplateInfo) \ | 165 V(ObjectTemplate, ObjectTemplateInfo) \ |
166 V(Signature, SignatureInfo) \ | 166 V(Signature, SignatureInfo) \ |
167 V(AccessorSignature, FunctionTemplateInfo) \ | 167 V(AccessorSignature, FunctionTemplateInfo) \ |
168 V(TypeSwitch, TypeSwitchInfo) \ | 168 V(TypeSwitch, TypeSwitchInfo) \ |
169 V(Data, Object) \ | 169 V(Data, Object) \ |
170 V(RegExp, JSRegExp) \ | 170 V(RegExp, JSRegExp) \ |
171 V(Object, JSObject) \ | 171 V(Object, JSObject) \ |
172 V(Array, JSArray) \ | 172 V(Array, JSArray) \ |
| 173 V(ArrayBuffer, JSArrayBuffer) \ |
173 V(String, String) \ | 174 V(String, String) \ |
174 V(Symbol, Symbol) \ | 175 V(Symbol, Symbol) \ |
175 V(Script, Object) \ | 176 V(Script, Object) \ |
176 V(Function, JSFunction) \ | 177 V(Function, JSFunction) \ |
177 V(Message, JSObject) \ | 178 V(Message, JSObject) \ |
178 V(Context, Context) \ | 179 V(Context, Context) \ |
179 V(External, Foreign) \ | 180 V(External, Foreign) \ |
180 V(StackTrace, JSArray) \ | 181 V(StackTrace, JSArray) \ |
181 V(StackFrame, JSObject) \ | 182 V(StackFrame, JSObject) \ |
182 V(DeclaredAccessorDescriptor, DeclaredAccessorDescriptor) | 183 V(DeclaredAccessorDescriptor, DeclaredAccessorDescriptor) |
(...skipping 15 matching lines...) Expand all Loading... |
198 static inline Local<String> ToLocal( | 199 static inline Local<String> ToLocal( |
199 v8::internal::Handle<v8::internal::String> obj); | 200 v8::internal::Handle<v8::internal::String> obj); |
200 static inline Local<Symbol> ToLocal( | 201 static inline Local<Symbol> ToLocal( |
201 v8::internal::Handle<v8::internal::Symbol> obj); | 202 v8::internal::Handle<v8::internal::Symbol> obj); |
202 static inline Local<RegExp> ToLocal( | 203 static inline Local<RegExp> ToLocal( |
203 v8::internal::Handle<v8::internal::JSRegExp> obj); | 204 v8::internal::Handle<v8::internal::JSRegExp> obj); |
204 static inline Local<Object> ToLocal( | 205 static inline Local<Object> ToLocal( |
205 v8::internal::Handle<v8::internal::JSObject> obj); | 206 v8::internal::Handle<v8::internal::JSObject> obj); |
206 static inline Local<Array> ToLocal( | 207 static inline Local<Array> ToLocal( |
207 v8::internal::Handle<v8::internal::JSArray> obj); | 208 v8::internal::Handle<v8::internal::JSArray> obj); |
| 209 static inline Local<ArrayBuffer> ToLocal( |
| 210 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); |
208 static inline Local<Message> MessageToLocal( | 211 static inline Local<Message> MessageToLocal( |
209 v8::internal::Handle<v8::internal::Object> obj); | 212 v8::internal::Handle<v8::internal::Object> obj); |
210 static inline Local<StackTrace> StackTraceToLocal( | 213 static inline Local<StackTrace> StackTraceToLocal( |
211 v8::internal::Handle<v8::internal::JSArray> obj); | 214 v8::internal::Handle<v8::internal::JSArray> obj); |
212 static inline Local<StackFrame> StackFrameToLocal( | 215 static inline Local<StackFrame> StackFrameToLocal( |
213 v8::internal::Handle<v8::internal::JSObject> obj); | 216 v8::internal::Handle<v8::internal::JSObject> obj); |
214 static inline Local<Number> NumberToLocal( | 217 static inline Local<Number> NumberToLocal( |
215 v8::internal::Handle<v8::internal::Object> obj); | 218 v8::internal::Handle<v8::internal::Object> obj); |
216 static inline Local<Integer> IntegerToLocal( | 219 static inline Local<Integer> IntegerToLocal( |
217 v8::internal::Handle<v8::internal::Object> obj); | 220 v8::internal::Handle<v8::internal::Object> obj); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 } | 271 } |
269 | 272 |
270 MAKE_TO_LOCAL(ToLocal, Context, Context) | 273 MAKE_TO_LOCAL(ToLocal, Context, Context) |
271 MAKE_TO_LOCAL(ToLocal, Object, Value) | 274 MAKE_TO_LOCAL(ToLocal, Object, Value) |
272 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) | 275 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) |
273 MAKE_TO_LOCAL(ToLocal, String, String) | 276 MAKE_TO_LOCAL(ToLocal, String, String) |
274 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) | 277 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) |
275 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) | 278 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) |
276 MAKE_TO_LOCAL(ToLocal, JSObject, Object) | 279 MAKE_TO_LOCAL(ToLocal, JSObject, Object) |
277 MAKE_TO_LOCAL(ToLocal, JSArray, Array) | 280 MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
| 281 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) |
278 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 282 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
279 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 283 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
280 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) | 284 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) |
281 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) | 285 MAKE_TO_LOCAL(AccessorSignatureToLocal, FunctionTemplateInfo, AccessorSignature) |
282 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) | 286 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) |
283 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 287 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
284 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) | 288 MAKE_TO_LOCAL(StackTraceToLocal, JSArray, StackTrace) |
285 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) | 289 MAKE_TO_LOCAL(StackFrameToLocal, JSObject, StackFrame) |
286 MAKE_TO_LOCAL(NumberToLocal, Object, Number) | 290 MAKE_TO_LOCAL(NumberToLocal, Object, Number) |
287 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) | 291 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 stress_type_ = stress_type; | 600 stress_type_ = stress_type; |
597 } | 601 } |
598 | 602 |
599 private: | 603 private: |
600 static v8::Testing::StressType stress_type_; | 604 static v8::Testing::StressType stress_type_; |
601 }; | 605 }; |
602 | 606 |
603 } } // namespace v8::internal | 607 } } // namespace v8::internal |
604 | 608 |
605 #endif // V8_API_H_ | 609 #endif // V8_API_H_ |
OLD | NEW |