OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 static inline Local<Function> ToLocal( | 174 static inline Local<Function> ToLocal( |
175 v8::internal::Handle<v8::internal::JSFunction> obj); | 175 v8::internal::Handle<v8::internal::JSFunction> obj); |
176 static inline Local<String> ToLocal( | 176 static inline Local<String> ToLocal( |
177 v8::internal::Handle<v8::internal::String> obj); | 177 v8::internal::Handle<v8::internal::String> obj); |
178 static inline Local<Object> ToLocal( | 178 static inline Local<Object> ToLocal( |
179 v8::internal::Handle<v8::internal::JSObject> obj); | 179 v8::internal::Handle<v8::internal::JSObject> obj); |
180 static inline Local<Array> ToLocal( | 180 static inline Local<Array> ToLocal( |
181 v8::internal::Handle<v8::internal::JSArray> obj); | 181 v8::internal::Handle<v8::internal::JSArray> obj); |
182 static inline Local<External> ToLocal( | 182 static inline Local<External> ToLocal( |
183 v8::internal::Handle<v8::internal::Proxy> obj); | 183 v8::internal::Handle<v8::internal::Proxy> obj); |
184 static inline Local<External> ToLocal( | |
185 v8::internal::Handle<v8::internal::Smi> obj); | |
186 static inline Local<Message> MessageToLocal( | 184 static inline Local<Message> MessageToLocal( |
187 v8::internal::Handle<v8::internal::Object> obj); | 185 v8::internal::Handle<v8::internal::Object> obj); |
188 static inline Local<Number> NumberToLocal( | 186 static inline Local<Number> NumberToLocal( |
189 v8::internal::Handle<v8::internal::Object> obj); | 187 v8::internal::Handle<v8::internal::Object> obj); |
190 static inline Local<Integer> IntegerToLocal( | 188 static inline Local<Integer> IntegerToLocal( |
191 v8::internal::Handle<v8::internal::Object> obj); | 189 v8::internal::Handle<v8::internal::Object> obj); |
192 static inline Local<Uint32> Uint32ToLocal( | 190 static inline Local<Uint32> Uint32ToLocal( |
193 v8::internal::Handle<v8::internal::Object> obj); | 191 v8::internal::Handle<v8::internal::Object> obj); |
194 static inline Local<FunctionTemplate> ToLocal( | 192 static inline Local<FunctionTemplate> ToLocal( |
195 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); | 193 v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 return Local<To>(reinterpret_cast<To*>(obj.location())); \ | 249 return Local<To>(reinterpret_cast<To*>(obj.location())); \ |
252 } | 250 } |
253 | 251 |
254 MAKE_TO_LOCAL(ToLocal, Context, Context) | 252 MAKE_TO_LOCAL(ToLocal, Context, Context) |
255 MAKE_TO_LOCAL(ToLocal, Object, Value) | 253 MAKE_TO_LOCAL(ToLocal, Object, Value) |
256 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) | 254 MAKE_TO_LOCAL(ToLocal, JSFunction, Function) |
257 MAKE_TO_LOCAL(ToLocal, String, String) | 255 MAKE_TO_LOCAL(ToLocal, String, String) |
258 MAKE_TO_LOCAL(ToLocal, JSObject, Object) | 256 MAKE_TO_LOCAL(ToLocal, JSObject, Object) |
259 MAKE_TO_LOCAL(ToLocal, JSArray, Array) | 257 MAKE_TO_LOCAL(ToLocal, JSArray, Array) |
260 MAKE_TO_LOCAL(ToLocal, Proxy, External) | 258 MAKE_TO_LOCAL(ToLocal, Proxy, External) |
261 MAKE_TO_LOCAL(ToLocal, Smi, External) | |
262 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) | 259 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) |
263 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) | 260 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) |
264 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) | 261 MAKE_TO_LOCAL(ToLocal, SignatureInfo, Signature) |
265 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) | 262 MAKE_TO_LOCAL(ToLocal, TypeSwitchInfo, TypeSwitch) |
266 MAKE_TO_LOCAL(MessageToLocal, Object, Message) | 263 MAKE_TO_LOCAL(MessageToLocal, Object, Message) |
267 MAKE_TO_LOCAL(NumberToLocal, Object, Number) | 264 MAKE_TO_LOCAL(NumberToLocal, Object, Number) |
268 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) | 265 MAKE_TO_LOCAL(IntegerToLocal, Object, Integer) |
269 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) | 266 MAKE_TO_LOCAL(Uint32ToLocal, Object, Uint32) |
270 | 267 |
271 #undef MAKE_TO_LOCAL | 268 #undef MAKE_TO_LOCAL |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 #ifdef DEBUG | 445 #ifdef DEBUG |
449 v8::ImplementationUtilities::ZapHandleRange( | 446 v8::ImplementationUtilities::ZapHandleRange( |
450 reinterpret_cast<void**>(spare), | 447 reinterpret_cast<void**>(spare), |
451 reinterpret_cast<void**>(&spare[kHandleBlockSize])); | 448 reinterpret_cast<void**>(&spare[kHandleBlockSize])); |
452 #endif | 449 #endif |
453 } | 450 } |
454 | 451 |
455 } } // namespace v8::internal | 452 } } // namespace v8::internal |
456 | 453 |
457 #endif // V8_API_H_ | 454 #endif // V8_API_H_ |
OLD | NEW |