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