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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 Register src, | 137 Register src, |
138 Register scratch, | 138 Register scratch, |
139 int lsb, | 139 int lsb, |
140 int width, | 140 int width, |
141 Condition cond = al); | 141 Condition cond = al); |
142 void Bfc(Register dst, Register src, int lsb, int width, Condition cond = al); | 142 void Bfc(Register dst, Register src, int lsb, int width, Condition cond = al); |
143 void Usat(Register dst, int satpos, const Operand& src, | 143 void Usat(Register dst, int satpos, const Operand& src, |
144 Condition cond = al); | 144 Condition cond = al); |
145 | 145 |
146 void Call(Label* target); | 146 void Call(Label* target); |
147 void Push(Register src) { push(src); } | |
148 void Pop(Register dst) { pop(dst); } | |
149 | 147 |
150 // Register move. May do nothing if the registers are identical. | 148 // Register move. May do nothing if the registers are identical. |
151 void Move(Register dst, Handle<Object> value); | 149 void Move(Register dst, Handle<Object> value); |
152 void Move(Register dst, Register src, Condition cond = al); | 150 void Move(Register dst, Register src, Condition cond = al); |
153 void Move(DwVfpRegister dst, DwVfpRegister src); | 151 void Move(DwVfpRegister dst, DwVfpRegister src); |
154 | 152 |
155 // Load an object from the root table. | 153 // Load an object from the root table. |
156 void LoadRoot(Register destination, | 154 void LoadRoot(Register destination, |
157 Heap::RootListIndex index, | 155 Heap::RootListIndex index, |
158 Condition cond = al); | 156 Condition cond = al); |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 Register scratch1, Register scratch2); | 1129 Register scratch1, Register scratch2); |
1132 void DecrementCounter(StatsCounter* counter, int value, | 1130 void DecrementCounter(StatsCounter* counter, int value, |
1133 Register scratch1, Register scratch2); | 1131 Register scratch1, Register scratch2); |
1134 | 1132 |
1135 | 1133 |
1136 // --------------------------------------------------------------------------- | 1134 // --------------------------------------------------------------------------- |
1137 // Debugging | 1135 // Debugging |
1138 | 1136 |
1139 // Calls Abort(msg) if the condition cond is not satisfied. | 1137 // Calls Abort(msg) if the condition cond is not satisfied. |
1140 // Use --debug_code to enable. | 1138 // Use --debug_code to enable. |
1141 void Assert(Condition cond, BailoutReason reason); | 1139 void Assert(Condition cond, const char* msg); |
1142 void AssertFastElements(Register elements); | 1140 void AssertFastElements(Register elements); |
1143 | 1141 |
1144 // Like Assert(), but always enabled. | 1142 // Like Assert(), but always enabled. |
1145 void Check(Condition cond, BailoutReason reason); | 1143 void Check(Condition cond, const char* msg); |
1146 | 1144 |
1147 // Print a message to stdout and abort execution. | 1145 // Print a message to stdout and abort execution. |
1148 void Abort(BailoutReason msg); | 1146 void Abort(const char* msg); |
1149 | 1147 |
1150 // Verify restrictions about code generated in stubs. | 1148 // Verify restrictions about code generated in stubs. |
1151 void set_generating_stub(bool value) { generating_stub_ = value; } | 1149 void set_generating_stub(bool value) { generating_stub_ = value; } |
1152 bool generating_stub() { return generating_stub_; } | 1150 bool generating_stub() { return generating_stub_; } |
1153 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 1151 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
1154 bool allow_stub_calls() { return allow_stub_calls_; } | 1152 bool allow_stub_calls() { return allow_stub_calls_; } |
1155 void set_has_frame(bool value) { has_frame_ = value; } | 1153 void set_has_frame(bool value) { has_frame_ = value; } |
1156 bool has_frame() { return has_frame_; } | 1154 bool has_frame() { return has_frame_; } |
1157 inline bool AllowThisStubCall(CodeStub* stub); | 1155 inline bool AllowThisStubCall(CodeStub* stub); |
1158 | 1156 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1456 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1459 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1457 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1460 #else | 1458 #else |
1461 #define ACCESS_MASM(masm) masm-> | 1459 #define ACCESS_MASM(masm) masm-> |
1462 #endif | 1460 #endif |
1463 | 1461 |
1464 | 1462 |
1465 } } // namespace v8::internal | 1463 } } // namespace v8::internal |
1466 | 1464 |
1467 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1465 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |