OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 | 1148 |
1149 // Store the function for the given builtin in the target register. | 1149 // Store the function for the given builtin in the target register. |
1150 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 1150 void GetBuiltinFunction(Register target, Builtins::JavaScript id); |
1151 | 1151 |
1152 Handle<Object> CodeObject() { | 1152 Handle<Object> CodeObject() { |
1153 ASSERT(!code_object_.is_null()); | 1153 ASSERT(!code_object_.is_null()); |
1154 return code_object_; | 1154 return code_object_; |
1155 } | 1155 } |
1156 | 1156 |
1157 | 1157 |
1158 // Emit code for a flooring division by a constant. The dividend register is | |
1159 // unchanged and ip gets clobbered. Dividend and result must be different. | |
1160 void FlooringDiv(Register result, Register dividend, int32_t divisor); | |
1161 | |
1162 // --------------------------------------------------------------------------- | 1158 // --------------------------------------------------------------------------- |
1163 // StatsCounter support | 1159 // StatsCounter support |
1164 | 1160 |
1165 void SetCounter(StatsCounter* counter, int value, | 1161 void SetCounter(StatsCounter* counter, int value, |
1166 Register scratch1, Register scratch2); | 1162 Register scratch1, Register scratch2); |
1167 void IncrementCounter(StatsCounter* counter, int value, | 1163 void IncrementCounter(StatsCounter* counter, int value, |
1168 Register scratch1, Register scratch2); | 1164 Register scratch1, Register scratch2); |
1169 void DecrementCounter(StatsCounter* counter, int value, | 1165 void DecrementCounter(StatsCounter* counter, int value, |
1170 Register scratch1, Register scratch2); | 1166 Register scratch1, Register scratch2); |
1171 | 1167 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1528 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1533 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1529 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1534 #else | 1530 #else |
1535 #define ACCESS_MASM(masm) masm-> | 1531 #define ACCESS_MASM(masm) masm-> |
1536 #endif | 1532 #endif |
1537 | 1533 |
1538 | 1534 |
1539 } } // namespace v8::internal | 1535 } } // namespace v8::internal |
1540 | 1536 |
1541 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1537 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |