OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 void CallRuntime(Runtime::Function* f, int num_arguments); | 386 void CallRuntime(Runtime::Function* f, int num_arguments); |
387 | 387 |
388 // Call a runtime function, returning the CodeStub object called. | 388 // Call a runtime function, returning the CodeStub object called. |
389 // Try to generate the stub code if necessary. Do not perform a GC | 389 // Try to generate the stub code if necessary. Do not perform a GC |
390 // but instead return a retry after GC failure. | 390 // but instead return a retry after GC failure. |
391 Object* TryCallRuntime(Runtime::Function* f, int num_arguments); | 391 Object* TryCallRuntime(Runtime::Function* f, int num_arguments); |
392 | 392 |
393 // Convenience function: Same as above, but takes the fid instead. | 393 // Convenience function: Same as above, but takes the fid instead. |
394 void CallRuntime(Runtime::FunctionId id, int num_arguments); | 394 void CallRuntime(Runtime::FunctionId id, int num_arguments); |
395 | 395 |
| 396 // Convenience function: Same as above, but takes the fid instead. |
| 397 Object* TryCallRuntime(Runtime::FunctionId id, int num_arguments); |
| 398 |
396 // Convenience function: call an external reference. | 399 // Convenience function: call an external reference. |
397 void CallExternalReference(ExternalReference ref, int num_arguments); | 400 void CallExternalReference(ExternalReference ref, int num_arguments); |
398 | 401 |
399 // Convenience function: Same as above, but takes the fid instead. | |
400 Object* TryCallRuntime(Runtime::FunctionId id, int num_arguments); | |
401 | |
402 // Tail call of a runtime routine (jump). | 402 // Tail call of a runtime routine (jump). |
403 // Like JumpToExternalReference, but also takes care of passing the number | 403 // Like JumpToExternalReference, but also takes care of passing the number |
404 // of parameters. | 404 // of parameters. |
405 void TailCallExternalReference(const ExternalReference& ext, | 405 void TailCallExternalReference(const ExternalReference& ext, |
406 int num_arguments, | 406 int num_arguments, |
407 int result_size); | 407 int result_size); |
408 | 408 |
409 // Convenience function: tail call a runtime routine (jump). | 409 // Convenience function: tail call a runtime routine (jump). |
410 void TailCallRuntime(Runtime::FunctionId fid, | 410 void TailCallRuntime(Runtime::FunctionId fid, |
411 int num_arguments, | 411 int num_arguments, |
(...skipping 12 matching lines...) Expand all Loading... |
424 // by PrepareCallCFunction. The called function is not allowed to trigger a | 424 // by PrepareCallCFunction. The called function is not allowed to trigger a |
425 // garbage collection, since that might move the code and invalidate the | 425 // garbage collection, since that might move the code and invalidate the |
426 // return address (unless this is somehow accounted for by the called | 426 // return address (unless this is somehow accounted for by the called |
427 // function). | 427 // function). |
428 void CallCFunction(ExternalReference function, int num_arguments); | 428 void CallCFunction(ExternalReference function, int num_arguments); |
429 void CallCFunction(Register function, int num_arguments); | 429 void CallCFunction(Register function, int num_arguments); |
430 | 430 |
431 void PushHandleScope(Register scratch); | 431 void PushHandleScope(Register scratch); |
432 | 432 |
433 // Pops a handle scope using the specified scratch register and | 433 // Pops a handle scope using the specified scratch register and |
434 // ensuring that saved register, it is not no_reg, is left unchanged. | 434 // ensuring that saved register is left unchanged. |
435 void PopHandleScope(Register saved, Register scratch); | 435 void PopHandleScope(Register saved, Register scratch); |
436 | 436 |
437 // As PopHandleScope, but does not perform a GC. Instead, returns a | 437 // As PopHandleScope, but does not perform a GC. Instead, returns a |
438 // retry after GC failure object if GC is necessary. | 438 // retry after GC failure object if GC is necessary. |
439 Object* TryPopHandleScope(Register saved, Register scratch); | 439 Object* TryPopHandleScope(Register saved, Register scratch); |
440 | 440 |
441 // Jump to a runtime routine. | 441 // Jump to a runtime routine. |
442 void JumpToExternalReference(const ExternalReference& ext); | 442 void JumpToExternalReference(const ExternalReference& ext); |
443 | 443 |
444 | 444 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 } \ | 601 } \ |
602 masm-> | 602 masm-> |
603 #else | 603 #else |
604 #define ACCESS_MASM(masm) masm-> | 604 #define ACCESS_MASM(masm) masm-> |
605 #endif | 605 #endif |
606 | 606 |
607 | 607 |
608 } } // namespace v8::internal | 608 } } // namespace v8::internal |
609 | 609 |
610 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 610 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |