| 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_X87_LITHIUM_CODEGEN_X87_H_ | 5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_ |
| 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ | 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "src/x87/lithium-x87.h" | 9 #include "src/x87/lithium-x87.h" |
| 10 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 LOperand* temp, | 131 LOperand* temp, |
| 132 IntegerSignedness signedness); | 132 IntegerSignedness signedness); |
| 133 | 133 |
| 134 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); | 134 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); |
| 135 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); | 135 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
| 136 void DoDeferredStackCheck(LStackCheck* instr); | 136 void DoDeferredStackCheck(LStackCheck* instr); |
| 137 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); | 137 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); |
| 138 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 138 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 139 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 139 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 140 void DoDeferredAllocate(LAllocate* instr); | 140 void DoDeferredAllocate(LAllocate* instr); |
| 141 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | |
| 142 Label* map_check); | |
| 143 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); | 141 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); |
| 144 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, | 142 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, |
| 145 Register object, | 143 Register object, |
| 146 Register index); | 144 Register index); |
| 147 | 145 |
| 148 // Parallel move support. | 146 // Parallel move support. |
| 149 void DoParallelMove(LParallelMove* move); | 147 void DoParallelMove(LParallelMove* move); |
| 150 void DoGap(LGap* instr); | 148 void DoGap(LGap* instr); |
| 151 | 149 |
| 152 // Emit frame translation commands for an environment. | 150 // Emit frame translation commands for an environment. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 Safepoint::DeoptMode mode); | 278 Safepoint::DeoptMode mode); |
| 281 | 279 |
| 282 void RecordAndWritePosition(int position) override; | 280 void RecordAndWritePosition(int position) override; |
| 283 | 281 |
| 284 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 282 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 285 void EmitGoto(int block); | 283 void EmitGoto(int block); |
| 286 | 284 |
| 287 // EmitBranch expects to be the last instruction of a block. | 285 // EmitBranch expects to be the last instruction of a block. |
| 288 template<class InstrType> | 286 template<class InstrType> |
| 289 void EmitBranch(InstrType instr, Condition cc); | 287 void EmitBranch(InstrType instr, Condition cc); |
| 290 template<class InstrType> | 288 template <class InstrType> |
| 289 void EmitTrueBranch(InstrType instr, Condition cc); |
| 290 template <class InstrType> |
| 291 void EmitFalseBranch(InstrType instr, Condition cc); | 291 void EmitFalseBranch(InstrType instr, Condition cc); |
| 292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input, | 292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input, |
| 293 Register temp, X87Register res_reg, | 293 Register temp, X87Register res_reg, |
| 294 NumberUntagDMode mode); | 294 NumberUntagDMode mode); |
| 295 | 295 |
| 296 // Emits optimized code for typeof x == "y". Modifies input register. | 296 // Emits optimized code for typeof x == "y". Modifies input register. |
| 297 // Returns the condition on which a final split to | 297 // Returns the condition on which a final split to |
| 298 // true and false label should be made, to optimize fallthrough. | 298 // true and false label should be made, to optimize fallthrough. |
| 299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
| 300 | 300 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 Label exit_; | 503 Label exit_; |
| 504 Label* external_exit_; | 504 Label* external_exit_; |
| 505 Label done_; | 505 Label done_; |
| 506 int instruction_index_; | 506 int instruction_index_; |
| 507 LCodeGen::X87Stack x87_stack_; | 507 LCodeGen::X87Stack x87_stack_; |
| 508 }; | 508 }; |
| 509 | 509 |
| 510 } } // namespace v8::internal | 510 } } // namespace v8::internal |
| 511 | 511 |
| 512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ | 512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ |
| OLD | NEW |