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_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" | 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 Representation key_representation, | 232 Representation key_representation, |
233 ElementsKind elements_kind, | 233 ElementsKind elements_kind, |
234 uint32_t base_offset); | 234 uint32_t base_offset); |
235 | 235 |
236 Operand BuildSeqStringOperand(Register string, | 236 Operand BuildSeqStringOperand(Register string, |
237 LOperand* index, | 237 LOperand* index, |
238 String::Encoding encoding); | 238 String::Encoding encoding); |
239 | 239 |
240 void EmitIntegerMathAbs(LMathAbs* instr); | 240 void EmitIntegerMathAbs(LMathAbs* instr); |
241 | 241 |
242 // Support for recording safepoint and position information. | 242 // Support for recording safepoint information. |
243 void RecordSafepoint(LPointerMap* pointers, | 243 void RecordSafepoint(LPointerMap* pointers, |
244 Safepoint::Kind kind, | 244 Safepoint::Kind kind, |
245 int arguments, | 245 int arguments, |
246 Safepoint::DeoptMode mode); | 246 Safepoint::DeoptMode mode); |
247 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 247 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
248 void RecordSafepoint(Safepoint::DeoptMode mode); | 248 void RecordSafepoint(Safepoint::DeoptMode mode); |
249 void RecordSafepointWithRegisters(LPointerMap* pointers, | 249 void RecordSafepointWithRegisters(LPointerMap* pointers, |
250 int arguments, | 250 int arguments, |
251 Safepoint::DeoptMode mode); | 251 Safepoint::DeoptMode mode); |
252 | 252 |
253 void RecordAndWritePosition(int position) override; | |
254 | |
255 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 253 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
256 void EmitGoto(int block); | 254 void EmitGoto(int block); |
257 | 255 |
258 // EmitBranch expects to be the last instruction of a block. | 256 // EmitBranch expects to be the last instruction of a block. |
259 template<class InstrType> | 257 template<class InstrType> |
260 void EmitBranch(InstrType instr, Condition cc); | 258 void EmitBranch(InstrType instr, Condition cc); |
261 template <class InstrType> | 259 template <class InstrType> |
262 void EmitTrueBranch(InstrType instr, Condition cc); | 260 void EmitTrueBranch(InstrType instr, Condition cc); |
263 template <class InstrType> | 261 template <class InstrType> |
264 void EmitFalseBranch(InstrType instr, Condition cc); | 262 void EmitFalseBranch(InstrType instr, Condition cc); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 Label exit_; | 383 Label exit_; |
386 Label* external_exit_; | 384 Label* external_exit_; |
387 Label done_; | 385 Label done_; |
388 int instruction_index_; | 386 int instruction_index_; |
389 }; | 387 }; |
390 | 388 |
391 } // namespace internal | 389 } // namespace internal |
392 } // namespace v8 | 390 } // namespace v8 |
393 | 391 |
394 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 392 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |