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_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_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/mips/lithium-gap-resolver-mips.h" | 10 #include "src/crankshaft/mips/lithium-gap-resolver-mips.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 Register ToRegister(int index) const; | 245 Register ToRegister(int index) const; |
246 DoubleRegister ToDoubleRegister(int index) const; | 246 DoubleRegister ToDoubleRegister(int index) const; |
247 | 247 |
248 MemOperand BuildSeqStringOperand(Register string, | 248 MemOperand BuildSeqStringOperand(Register string, |
249 LOperand* index, | 249 LOperand* index, |
250 String::Encoding encoding); | 250 String::Encoding encoding); |
251 | 251 |
252 void EmitIntegerMathAbs(LMathAbs* instr); | 252 void EmitIntegerMathAbs(LMathAbs* instr); |
253 | 253 |
254 // Support for recording safepoint and position information. | 254 // Support for recording safepoint information. |
255 void RecordSafepoint(LPointerMap* pointers, | 255 void RecordSafepoint(LPointerMap* pointers, |
256 Safepoint::Kind kind, | 256 Safepoint::Kind kind, |
257 int arguments, | 257 int arguments, |
258 Safepoint::DeoptMode mode); | 258 Safepoint::DeoptMode mode); |
259 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 259 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
260 void RecordSafepoint(Safepoint::DeoptMode mode); | 260 void RecordSafepoint(Safepoint::DeoptMode mode); |
261 void RecordSafepointWithRegisters(LPointerMap* pointers, | 261 void RecordSafepointWithRegisters(LPointerMap* pointers, |
262 int arguments, | 262 int arguments, |
263 Safepoint::DeoptMode mode); | 263 Safepoint::DeoptMode mode); |
264 | 264 |
265 void RecordAndWritePosition(int position) override; | |
266 | |
267 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 265 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
268 void EmitGoto(int block); | 266 void EmitGoto(int block); |
269 | 267 |
270 // EmitBranch expects to be the last instruction of a block. | 268 // EmitBranch expects to be the last instruction of a block. |
271 template<class InstrType> | 269 template<class InstrType> |
272 void EmitBranch(InstrType instr, | 270 void EmitBranch(InstrType instr, |
273 Condition condition, | 271 Condition condition, |
274 Register src1, | 272 Register src1, |
275 const Operand& src2); | 273 const Operand& src2); |
276 template<class InstrType> | 274 template<class InstrType> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 Label entry_; | 416 Label entry_; |
419 Label exit_; | 417 Label exit_; |
420 Label* external_exit_; | 418 Label* external_exit_; |
421 int instruction_index_; | 419 int instruction_index_; |
422 }; | 420 }; |
423 | 421 |
424 } // namespace internal | 422 } // namespace internal |
425 } // namespace v8 | 423 } // namespace v8 |
426 | 424 |
427 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 425 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |