OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390_LITHIUM_CODEGEN_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ |
6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_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/s390/lithium-gap-resolver-s390.h" | 10 #include "src/crankshaft/s390/lithium-gap-resolver-s390.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 DoubleRegister ToDoubleRegister(int index) const; | 221 DoubleRegister ToDoubleRegister(int index) const; |
222 | 222 |
223 MemOperand BuildSeqStringOperand(Register string, LOperand* index, | 223 MemOperand BuildSeqStringOperand(Register string, LOperand* index, |
224 String::Encoding encoding); | 224 String::Encoding encoding); |
225 | 225 |
226 void EmitMathAbs(LMathAbs* instr); | 226 void EmitMathAbs(LMathAbs* instr); |
227 #if V8_TARGET_ARCH_S390X | 227 #if V8_TARGET_ARCH_S390X |
228 void EmitInteger32MathAbs(LMathAbs* instr); | 228 void EmitInteger32MathAbs(LMathAbs* instr); |
229 #endif | 229 #endif |
230 | 230 |
231 // Support for recording safepoint and position information. | 231 // Support for recording safepoint information. |
232 void RecordSafepoint(LPointerMap* pointers, Safepoint::Kind kind, | 232 void RecordSafepoint(LPointerMap* pointers, Safepoint::Kind kind, |
233 int arguments, Safepoint::DeoptMode mode); | 233 int arguments, Safepoint::DeoptMode mode); |
234 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 234 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
235 void RecordSafepoint(Safepoint::DeoptMode mode); | 235 void RecordSafepoint(Safepoint::DeoptMode mode); |
236 void RecordSafepointWithRegisters(LPointerMap* pointers, int arguments, | 236 void RecordSafepointWithRegisters(LPointerMap* pointers, int arguments, |
237 Safepoint::DeoptMode mode); | 237 Safepoint::DeoptMode mode); |
238 | 238 |
239 void RecordAndWritePosition(int position) override; | |
240 | |
241 static Condition TokenToCondition(Token::Value op); | 239 static Condition TokenToCondition(Token::Value op); |
242 void EmitGoto(int block); | 240 void EmitGoto(int block); |
243 | 241 |
244 // EmitBranch expects to be the last instruction of a block. | 242 // EmitBranch expects to be the last instruction of a block. |
245 template <class InstrType> | 243 template <class InstrType> |
246 void EmitBranch(InstrType instr, Condition condition); | 244 void EmitBranch(InstrType instr, Condition condition); |
247 template <class InstrType> | 245 template <class InstrType> |
248 void EmitTrueBranch(InstrType instr, Condition condition); | 246 void EmitTrueBranch(InstrType instr, Condition condition); |
249 template <class InstrType> | 247 template <class InstrType> |
250 void EmitFalseBranch(InstrType instr, Condition condition); | 248 void EmitFalseBranch(InstrType instr, Condition condition); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 LCodeGen* codegen_; | 347 LCodeGen* codegen_; |
350 Label entry_; | 348 Label entry_; |
351 Label exit_; | 349 Label exit_; |
352 Label* external_exit_; | 350 Label* external_exit_; |
353 int instruction_index_; | 351 int instruction_index_; |
354 }; | 352 }; |
355 } // namespace internal | 353 } // namespace internal |
356 } // namespace v8 | 354 } // namespace v8 |
357 | 355 |
358 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ | 356 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ |
OLD | NEW |