| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Jump, Call, and Ret pseudo instructions implementing inter-working. | 99 // Jump, Call, and Ret pseudo instructions implementing inter-working. |
| 100 void Jump(Register target, Condition cond = al); | 100 void Jump(Register target, Condition cond = al); |
| 101 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al); | 101 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al); |
| 102 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 102 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
| 103 int CallSize(Register target, Condition cond = al); | 103 int CallSize(Register target, Condition cond = al); |
| 104 void Call(Register target, Condition cond = al); | 104 void Call(Register target, Condition cond = al); |
| 105 int CallSize(byte* target, RelocInfo::Mode rmode, Condition cond = al); | 105 int CallSize(byte* target, RelocInfo::Mode rmode, Condition cond = al); |
| 106 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al); | 106 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al); |
| 107 int CallSize(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 107 int CallSize(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
| 108 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 108 void Call(Handle<Code> code, |
| 109 RelocInfo::Mode rmode, |
| 110 Condition cond = al); |
| 111 void CallWithAstId(Handle<Code> code, |
| 112 RelocInfo::Mode rmode, |
| 113 unsigned ast_id, |
| 114 Condition cond = al); |
| 109 void Ret(Condition cond = al); | 115 void Ret(Condition cond = al); |
| 110 | 116 |
| 111 // Emit code to discard a non-negative number of pointer-sized elements | 117 // Emit code to discard a non-negative number of pointer-sized elements |
| 112 // from the stack, clobbering only the sp register. | 118 // from the stack, clobbering only the sp register. |
| 113 void Drop(int count, Condition cond = al); | 119 void Drop(int count, Condition cond = al); |
| 114 | 120 |
| 115 void Ret(int drop, Condition cond = al); | 121 void Ret(int drop, Condition cond = al); |
| 116 | 122 |
| 117 // Swap two registers. If the scratch register is omitted then a slightly | 123 // Swap two registers. If the scratch register is omitted then a slightly |
| 118 // less efficient form using xor instead of mov is emitted. | 124 // less efficient form using xor instead of mov is emitted. |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 | 957 |
| 952 | 958 |
| 953 private: | 959 private: |
| 954 void CallCFunctionHelper(Register function, | 960 void CallCFunctionHelper(Register function, |
| 955 ExternalReference function_reference, | 961 ExternalReference function_reference, |
| 956 Register scratch, | 962 Register scratch, |
| 957 int num_arguments); | 963 int num_arguments); |
| 958 | 964 |
| 959 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 965 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
| 960 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 966 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); |
| 961 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); | 967 void Call(intptr_t target, |
| 968 RelocInfo::Mode rmode, |
| 969 Condition cond = al); |
| 962 | 970 |
| 963 // Helper functions for generating invokes. | 971 // Helper functions for generating invokes. |
| 964 void InvokePrologue(const ParameterCount& expected, | 972 void InvokePrologue(const ParameterCount& expected, |
| 965 const ParameterCount& actual, | 973 const ParameterCount& actual, |
| 966 Handle<Code> code_constant, | 974 Handle<Code> code_constant, |
| 967 Register code_reg, | 975 Register code_reg, |
| 968 Label* done, | 976 Label* done, |
| 969 InvokeFlag flag, | 977 InvokeFlag flag, |
| 970 CallWrapper* call_wrapper = NULL); | 978 CallWrapper* call_wrapper = NULL); |
| 971 | 979 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1070 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1063 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1071 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1064 #else | 1072 #else |
| 1065 #define ACCESS_MASM(masm) masm-> | 1073 #define ACCESS_MASM(masm) masm-> |
| 1066 #endif | 1074 #endif |
| 1067 | 1075 |
| 1068 | 1076 |
| 1069 } } // namespace v8::internal | 1077 } } // namespace v8::internal |
| 1070 | 1078 |
| 1071 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1079 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |