OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 void PrepareCallCFunction(int num_arguments, Register scratch); | 677 void PrepareCallCFunction(int num_arguments, Register scratch); |
678 | 678 |
679 // Calls a C function and cleans up the space for arguments allocated | 679 // Calls a C function and cleans up the space for arguments allocated |
680 // by PrepareCallCFunction. The called function is not allowed to trigger a | 680 // by PrepareCallCFunction. The called function is not allowed to trigger a |
681 // garbage collection, since that might move the code and invalidate the | 681 // garbage collection, since that might move the code and invalidate the |
682 // return address (unless this is somehow accounted for by the called | 682 // return address (unless this is somehow accounted for by the called |
683 // function). | 683 // function). |
684 void CallCFunction(ExternalReference function, int num_arguments); | 684 void CallCFunction(ExternalReference function, int num_arguments); |
685 void CallCFunction(Register function, int num_arguments); | 685 void CallCFunction(Register function, int num_arguments); |
686 | 686 |
| 687 void GetCFunctionDoubleResult(const DoubleRegister dst); |
| 688 |
687 // Calls an API function. Allocates HandleScope, extracts returned value | 689 // Calls an API function. Allocates HandleScope, extracts returned value |
688 // from handle and propagates exceptions. Restores context. | 690 // from handle and propagates exceptions. Restores context. |
689 // stack_space - space to be unwound on exit (includes the call js | 691 // stack_space - space to be unwound on exit (includes the call js |
690 // arguments space and the additional space allocated for the fast call). | 692 // arguments space and the additional space allocated for the fast call). |
691 MaybeObject* TryCallApiFunctionAndReturn(ApiFunction* function, | 693 MaybeObject* TryCallApiFunctionAndReturn(ApiFunction* function, |
692 int stack_space); | 694 int stack_space); |
693 | 695 |
694 // Jump to a runtime routine. | 696 // Jump to a runtime routine. |
695 void JumpToExternalReference(const ExternalReference& builtin); | 697 void JumpToExternalReference(const ExternalReference& builtin); |
696 | 698 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 965 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
964 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 966 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
965 #else | 967 #else |
966 #define ACCESS_MASM(masm) masm-> | 968 #define ACCESS_MASM(masm) masm-> |
967 #endif | 969 #endif |
968 | 970 |
969 | 971 |
970 } } // namespace v8::internal | 972 } } // namespace v8::internal |
971 | 973 |
972 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 974 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |