| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 // Needs a scratch register to do some arithmetic. This register will be | 565 // Needs a scratch register to do some arithmetic. This register will be |
| 566 // trashed. | 566 // trashed. |
| 567 void PrepareCallCFunction(int num_arguments, Register scratch); | 567 void PrepareCallCFunction(int num_arguments, Register scratch); |
| 568 | 568 |
| 569 // Calls a C function and cleans up the space for arguments allocated | 569 // Calls a C function and cleans up the space for arguments allocated |
| 570 // by PrepareCallCFunction. The called function is not allowed to trigger a | 570 // by PrepareCallCFunction. The called function is not allowed to trigger a |
| 571 // garbage collection, since that might move the code and invalidate the | 571 // garbage collection, since that might move the code and invalidate the |
| 572 // return address (unless this is somehow accounted for by the called | 572 // return address (unless this is somehow accounted for by the called |
| 573 // function). | 573 // function). |
| 574 void CallCFunction(ExternalReference function, int num_arguments); | 574 void CallCFunction(ExternalReference function, int num_arguments); |
| 575 void CallCFunction(Register function, int num_arguments); | 575 void CallCFunction(Register function, Register scratch, int num_arguments); |
| 576 | 576 |
| 577 // Jump to a runtime routine. | 577 // Jump to a runtime routine. |
| 578 void JumpToExternalReference(const ExternalReference& builtin); | 578 void JumpToExternalReference(const ExternalReference& builtin); |
| 579 | 579 |
| 580 // Invoke specified builtin JavaScript function. Adds an entry to | 580 // Invoke specified builtin JavaScript function. Adds an entry to |
| 581 // the unresolved list if the name does not resolve. | 581 // the unresolved list if the name does not resolve. |
| 582 void InvokeBuiltin(Builtins::JavaScript id, InvokeJSFlags flags); | 582 void InvokeBuiltin(Builtins::JavaScript id, InvokeJSFlags flags); |
| 583 | 583 |
| 584 // Store the code object for the given builtin in the target register and | 584 // Store the code object for the given builtin in the target register and |
| 585 // setup the function in r1. | 585 // setup the function in r1. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 Label* failure); | 663 Label* failure); |
| 664 | 664 |
| 665 // Check if instance type is sequential ASCII string and jump to label if | 665 // Check if instance type is sequential ASCII string and jump to label if |
| 666 // it is not. | 666 // it is not. |
| 667 void JumpIfInstanceTypeIsNotSequentialAscii(Register type, | 667 void JumpIfInstanceTypeIsNotSequentialAscii(Register type, |
| 668 Register scratch, | 668 Register scratch, |
| 669 Label* failure); | 669 Label* failure); |
| 670 | 670 |
| 671 | 671 |
| 672 private: | 672 private: |
| 673 void CallCFunctionHelper(Register function, |
| 674 ExternalReference function_reference, |
| 675 Register scratch, |
| 676 int num_arguments); |
| 677 |
| 673 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 678 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
| 674 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 679 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
| 675 | 680 |
| 676 // Helper functions for generating invokes. | 681 // Helper functions for generating invokes. |
| 677 void InvokePrologue(const ParameterCount& expected, | 682 void InvokePrologue(const ParameterCount& expected, |
| 678 const ParameterCount& actual, | 683 const ParameterCount& actual, |
| 679 Handle<Code> code_constant, | 684 Handle<Code> code_constant, |
| 680 Register code_reg, | 685 Register code_reg, |
| 681 Label* done, | 686 Label* done, |
| 682 InvokeFlag flag); | 687 InvokeFlag flag); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 741 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 737 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 742 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 738 #else | 743 #else |
| 739 #define ACCESS_MASM(masm) masm-> | 744 #define ACCESS_MASM(masm) masm-> |
| 740 #endif | 745 #endif |
| 741 | 746 |
| 742 | 747 |
| 743 } } // namespace v8::internal | 748 } } // namespace v8::internal |
| 744 | 749 |
| 745 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 750 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |