OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
7 | 7 |
8 #include "src/crankshaft/arm64/lithium-arm64.h" | 8 #include "src/crankshaft/arm64/lithium-arm64.h" |
9 | 9 |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // Emits optimized code for %_IsString(x). Preserves input register. | 192 // Emits optimized code for %_IsString(x). Preserves input register. |
193 // Returns the condition on which a final split to | 193 // Returns the condition on which a final split to |
194 // true and false label should be made, to optimize fallthrough. | 194 // true and false label should be made, to optimize fallthrough. |
195 Condition EmitIsString(Register input, Register temp1, Label* is_not_string, | 195 Condition EmitIsString(Register input, Register temp1, Label* is_not_string, |
196 SmiCheck check_needed); | 196 SmiCheck check_needed); |
197 | 197 |
198 MemOperand BuildSeqStringOperand(Register string, | 198 MemOperand BuildSeqStringOperand(Register string, |
199 Register temp, | 199 Register temp, |
200 LOperand* index, | 200 LOperand* index, |
201 String::Encoding encoding); | 201 String::Encoding encoding); |
202 void DeoptimizeBranch(LInstruction* instr, | 202 void DeoptimizeBranch(LInstruction* instr, DeoptimizeReason deopt_reason, |
203 Deoptimizer::DeoptReason deopt_reason, | |
204 BranchType branch_type, Register reg = NoReg, | 203 BranchType branch_type, Register reg = NoReg, |
205 int bit = -1, | 204 int bit = -1, |
206 Deoptimizer::BailoutType* override_bailout_type = NULL); | 205 Deoptimizer::BailoutType* override_bailout_type = NULL); |
207 void Deoptimize(LInstruction* instr, Deoptimizer::DeoptReason deopt_reason, | 206 void Deoptimize(LInstruction* instr, DeoptimizeReason deopt_reason, |
208 Deoptimizer::BailoutType* override_bailout_type = NULL); | 207 Deoptimizer::BailoutType* override_bailout_type = NULL); |
209 void DeoptimizeIf(Condition cond, LInstruction* instr, | 208 void DeoptimizeIf(Condition cond, LInstruction* instr, |
210 Deoptimizer::DeoptReason deopt_reason); | 209 DeoptimizeReason deopt_reason); |
211 void DeoptimizeIfZero(Register rt, LInstruction* instr, | 210 void DeoptimizeIfZero(Register rt, LInstruction* instr, |
212 Deoptimizer::DeoptReason deopt_reason); | 211 DeoptimizeReason deopt_reason); |
213 void DeoptimizeIfNotZero(Register rt, LInstruction* instr, | 212 void DeoptimizeIfNotZero(Register rt, LInstruction* instr, |
214 Deoptimizer::DeoptReason deopt_reason); | 213 DeoptimizeReason deopt_reason); |
215 void DeoptimizeIfNegative(Register rt, LInstruction* instr, | 214 void DeoptimizeIfNegative(Register rt, LInstruction* instr, |
216 Deoptimizer::DeoptReason deopt_reason); | 215 DeoptimizeReason deopt_reason); |
217 void DeoptimizeIfSmi(Register rt, LInstruction* instr, | 216 void DeoptimizeIfSmi(Register rt, LInstruction* instr, |
218 Deoptimizer::DeoptReason deopt_reason); | 217 DeoptimizeReason deopt_reason); |
219 void DeoptimizeIfNotSmi(Register rt, LInstruction* instr, | 218 void DeoptimizeIfNotSmi(Register rt, LInstruction* instr, |
220 Deoptimizer::DeoptReason deopt_reason); | 219 DeoptimizeReason deopt_reason); |
221 void DeoptimizeIfRoot(Register rt, Heap::RootListIndex index, | 220 void DeoptimizeIfRoot(Register rt, Heap::RootListIndex index, |
222 LInstruction* instr, | 221 LInstruction* instr, DeoptimizeReason deopt_reason); |
223 Deoptimizer::DeoptReason deopt_reason); | |
224 void DeoptimizeIfNotRoot(Register rt, Heap::RootListIndex index, | 222 void DeoptimizeIfNotRoot(Register rt, Heap::RootListIndex index, |
225 LInstruction* instr, | 223 LInstruction* instr, DeoptimizeReason deopt_reason); |
226 Deoptimizer::DeoptReason deopt_reason); | |
227 void DeoptimizeIfNotHeapNumber(Register object, LInstruction* instr); | 224 void DeoptimizeIfNotHeapNumber(Register object, LInstruction* instr); |
228 void DeoptimizeIfMinusZero(DoubleRegister input, LInstruction* instr, | 225 void DeoptimizeIfMinusZero(DoubleRegister input, LInstruction* instr, |
229 Deoptimizer::DeoptReason deopt_reason); | 226 DeoptimizeReason deopt_reason); |
230 void DeoptimizeIfBitSet(Register rt, int bit, LInstruction* instr, | 227 void DeoptimizeIfBitSet(Register rt, int bit, LInstruction* instr, |
231 Deoptimizer::DeoptReason deopt_reason); | 228 DeoptimizeReason deopt_reason); |
232 void DeoptimizeIfBitClear(Register rt, int bit, LInstruction* instr, | 229 void DeoptimizeIfBitClear(Register rt, int bit, LInstruction* instr, |
233 Deoptimizer::DeoptReason deopt_reason); | 230 DeoptimizeReason deopt_reason); |
234 | 231 |
235 MemOperand PrepareKeyedExternalArrayOperand(Register key, | 232 MemOperand PrepareKeyedExternalArrayOperand(Register key, |
236 Register base, | 233 Register base, |
237 Register scratch, | 234 Register scratch, |
238 bool key_is_smi, | 235 bool key_is_smi, |
239 bool key_is_constant, | 236 bool key_is_constant, |
240 int constant_key, | 237 int constant_key, |
241 ElementsKind elements_kind, | 238 ElementsKind elements_kind, |
242 int base_offset); | 239 int base_offset); |
243 MemOperand PrepareKeyedArrayOperand(Register base, | 240 MemOperand PrepareKeyedArrayOperand(Register base, |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 protected: | 454 protected: |
458 MacroAssembler* masm() const { return codegen_->masm(); } | 455 MacroAssembler* masm() const { return codegen_->masm(); } |
459 | 456 |
460 LCodeGen* codegen_; | 457 LCodeGen* codegen_; |
461 }; | 458 }; |
462 | 459 |
463 } // namespace internal | 460 } // namespace internal |
464 } // namespace v8 | 461 } // namespace v8 |
465 | 462 |
466 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 463 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
OLD | NEW |