OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/crankshaft/lithium-codegen.h" | 9 #include "src/crankshaft/lithium-codegen.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 Register ToRegister(int index) const; | 247 Register ToRegister(int index) const; |
248 DoubleRegister ToDoubleRegister(int index) const; | 248 DoubleRegister ToDoubleRegister(int index) const; |
249 | 249 |
250 MemOperand BuildSeqStringOperand(Register string, | 250 MemOperand BuildSeqStringOperand(Register string, |
251 LOperand* index, | 251 LOperand* index, |
252 String::Encoding encoding); | 252 String::Encoding encoding); |
253 | 253 |
254 void EmitIntegerMathAbs(LMathAbs* instr); | 254 void EmitIntegerMathAbs(LMathAbs* instr); |
255 void EmitSmiMathAbs(LMathAbs* instr); | 255 void EmitSmiMathAbs(LMathAbs* instr); |
256 | 256 |
257 // Support for recording safepoint and position information. | 257 // Support for recording safepoint information. |
258 void RecordSafepoint(LPointerMap* pointers, | 258 void RecordSafepoint(LPointerMap* pointers, |
259 Safepoint::Kind kind, | 259 Safepoint::Kind kind, |
260 int arguments, | 260 int arguments, |
261 Safepoint::DeoptMode mode); | 261 Safepoint::DeoptMode mode); |
262 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 262 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
263 void RecordSafepoint(Safepoint::DeoptMode mode); | 263 void RecordSafepoint(Safepoint::DeoptMode mode); |
264 void RecordSafepointWithRegisters(LPointerMap* pointers, | 264 void RecordSafepointWithRegisters(LPointerMap* pointers, |
265 int arguments, | 265 int arguments, |
266 Safepoint::DeoptMode mode); | 266 Safepoint::DeoptMode mode); |
267 | 267 |
268 void RecordAndWritePosition(int position) override; | |
269 | |
270 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 268 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
271 void EmitGoto(int block); | 269 void EmitGoto(int block); |
272 | 270 |
273 // EmitBranch expects to be the last instruction of a block. | 271 // EmitBranch expects to be the last instruction of a block. |
274 template<class InstrType> | 272 template<class InstrType> |
275 void EmitBranch(InstrType instr, | 273 void EmitBranch(InstrType instr, |
276 Condition condition, | 274 Condition condition, |
277 Register src1, | 275 Register src1, |
278 const Operand& src2); | 276 const Operand& src2); |
279 template<class InstrType> | 277 template<class InstrType> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 Label entry_; | 419 Label entry_; |
422 Label exit_; | 420 Label exit_; |
423 Label* external_exit_; | 421 Label* external_exit_; |
424 int instruction_index_; | 422 int instruction_index_; |
425 }; | 423 }; |
426 | 424 |
427 } // namespace internal | 425 } // namespace internal |
428 } // namespace v8 | 426 } // namespace v8 |
429 | 427 |
430 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 428 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |