Lines Matching refs:R
27 template <typename R>
29 static R Cast(uintptr_t r) { return reinterpret_cast<R>(r); } in Cast()
34 *(static_cast<Object* volatile*>(0)) = static_cast<R>(0); in Representation()
116 template <typename R>
118 static uintptr_t Cast(R r) { return static_cast<uintptr_t>(r); }
176 template <typename R, typename F>
177 R DoCall(F* f) {
179 return ReturnValueTraits<R>::Cast(CallSimulator(FUNCTION_ADDR(f), args));
181 template <typename R, typename F, typename P1>
182 R DoCall(F* f, P1 p1) {
185 return ReturnValueTraits<R>::Cast(CallSimulator(FUNCTION_ADDR(f), args));
187 template <typename R, typename F, typename P1, typename P2>
188 R DoCall(F* f, P1 p1, P2 p2) {
192 return ReturnValueTraits<R>::Cast(CallSimulator(FUNCTION_ADDR(f), args));
194 template <typename R, typename F, typename P1, typename P2, typename P3>
195 R DoCall(F* f, P1 p1, P2 p2, P3 p3) {
199 return ReturnValueTraits<R>::Cast(CallSimulator(FUNCTION_ADDR(f), args));
201 template <typename R, typename F, typename P1, typename P2, typename P3,
203 R DoCall(F* f, P1 p1, P2 p2, P3 p3, P4 p4) {
208 return ReturnValueTraits<R>::Cast(CallSimulator(FUNCTION_ADDR(f), args));
216 template <typename R, typename F>
217 R DoCall(F* f) {
218 return ReturnValueTraits<R>::Cast(CallSimulator(FUNCTION_ADDR(f)));
220 template <typename R, typename F, typename P1>
221 R DoCall(F* f, P1 p1) {
222 return ReturnValueTraits<R>::Cast(
225 template <typename R, typename F, typename P1, typename P2>
226 R DoCall(F* f, P1 p1, P2 p2) {
227 return ReturnValueTraits<R>::Cast(
231 template <typename R, typename F, typename P1, typename P2, typename P3>
232 R DoCall(F* f, P1 p1, P2 p2, P3 p3) {
233 return ReturnValueTraits<R>::Cast(CallSimulator(
237 template <typename R, typename F, typename P1, typename P2, typename P3,
239 R DoCall(F* f, P1 p1, P2 p2, P3 p3, P4 p4) {
240 return ReturnValueTraits<R>::Cast(CallSimulator(
246 template <typename R, typename F>
247 R DoCall(F* f) {
250 template <typename R, typename F, typename P1>
251 R DoCall(F* f, P1 p1) {
254 template <typename R, typename F, typename P1, typename P2>
255 R DoCall(F* f, P1 p1, P2 p2) {
258 template <typename R, typename F, typename P1, typename P2, typename P3>
259 R DoCall(F* f, P1 p1, P2 p2, P3 p3) {
262 template <typename R, typename F, typename P1, typename P2, typename P3,
264 R DoCall(F* f, P1 p1, P2 p2, P3 p3, P4 p4) {
318 template <typename R>
319 R Call0() {
320 typedef R V8_CDECL FType();
322 return DoCall<R>(FUNCTION_CAST<FType*>(Generate()));
325 template <typename R, typename P1>
326 R Call1(P1 p1) {
327 typedef R V8_CDECL FType(P1);
329 return DoCall<R>(FUNCTION_CAST<FType*>(Generate()), p1);
332 template <typename R, typename P1, typename P2>
333 R Call2(P1 p1, P2 p2) {
334 typedef R V8_CDECL FType(P1, P2);
336 return DoCall<R>(FUNCTION_CAST<FType*>(Generate()), p1, p2);
339 template <typename R, typename P1, typename P2, typename P3>
340 R Call3(P1 p1, P2 p2, P3 p3) {
341 typedef R V8_CDECL FType(P1, P2, P3);
343 return DoCall<R>(FUNCTION_CAST<FType*>(Generate()), p1, p2, p3);
346 template <typename R, typename P1, typename P2, typename P3, typename P4>
347 R Call4(P1 p1, P2 p2, P3 p3, P4 p4) {
348 typedef R V8_CDECL FType(P1, P2, P3, P4);
350 return DoCall<R>(FUNCTION_CAST<FType*>(Generate()), p1, p2, p3, p4);
353 template <typename R, typename C>
360 template <typename R, typename C>
363 R Call() { return helper()->template Call0<R>(); }
366 R Call(P1 p1) {
367 return helper()->template Call1<R>(p1);
371 R Call(P1 p1, P2 p2) {
372 return helper()->template Call2<R>(p1, p2);
376 R Call(P1 p1, P2 p2, P3 p3) {
377 return helper()->template Call3<R>(p1, p2, p3);
381 R Call(P1 p1, P2 p2, P3 p3, P4 p4) {
382 return helper()->template Call4<R>(p1, p2, p3, p4);