| 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_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 7 | 7 |
| 8 #include "src/ia32/lithium-ia32.h" | 8 #include "src/ia32/lithium-ia32.h" |
| 9 | 9 |
| 10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 LOperand* temp, | 97 LOperand* temp, |
| 98 IntegerSignedness signedness); | 98 IntegerSignedness signedness); |
| 99 | 99 |
| 100 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); | 100 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); |
| 101 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); | 101 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
| 102 void DoDeferredStackCheck(LStackCheck* instr); | 102 void DoDeferredStackCheck(LStackCheck* instr); |
| 103 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); | 103 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); |
| 104 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 104 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 105 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 105 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 106 void DoDeferredAllocate(LAllocate* instr); | 106 void DoDeferredAllocate(LAllocate* instr); |
| 107 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | |
| 108 Label* map_check); | |
| 109 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); | 107 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); |
| 110 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, | 108 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, |
| 111 Register object, | 109 Register object, |
| 112 Register index); | 110 Register index); |
| 113 | 111 |
| 114 // Parallel move support. | 112 // Parallel move support. |
| 115 void DoParallelMove(LParallelMove* move); | 113 void DoParallelMove(LParallelMove* move); |
| 116 void DoGap(LGap* instr); | 114 void DoGap(LGap* instr); |
| 117 | 115 |
| 118 // Emit frame translation commands for an environment. | 116 // Emit frame translation commands for an environment. |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 Safepoint::DeoptMode mode); | 251 Safepoint::DeoptMode mode); |
| 254 | 252 |
| 255 void RecordAndWritePosition(int position) override; | 253 void RecordAndWritePosition(int position) override; |
| 256 | 254 |
| 257 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 255 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 258 void EmitGoto(int block); | 256 void EmitGoto(int block); |
| 259 | 257 |
| 260 // EmitBranch expects to be the last instruction of a block. | 258 // EmitBranch expects to be the last instruction of a block. |
| 261 template<class InstrType> | 259 template<class InstrType> |
| 262 void EmitBranch(InstrType instr, Condition cc); | 260 void EmitBranch(InstrType instr, Condition cc); |
| 263 template<class InstrType> | 261 template <class InstrType> |
| 262 void EmitTrueBranch(InstrType instr, Condition cc); |
| 263 template <class InstrType> |
| 264 void EmitFalseBranch(InstrType instr, Condition cc); | 264 void EmitFalseBranch(InstrType instr, Condition cc); |
| 265 void EmitNumberUntagD(LNumberUntagD* instr, Register input, Register temp, | 265 void EmitNumberUntagD(LNumberUntagD* instr, Register input, Register temp, |
| 266 XMMRegister result, NumberUntagDMode mode); | 266 XMMRegister result, NumberUntagDMode mode); |
| 267 | 267 |
| 268 // Emits optimized code for typeof x == "y". Modifies input register. | 268 // Emits optimized code for typeof x == "y". Modifies input register. |
| 269 // Returns the condition on which a final split to | 269 // Returns the condition on which a final split to |
| 270 // true and false label should be made, to optimize fallthrough. | 270 // true and false label should be made, to optimize fallthrough. |
| 271 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 271 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
| 272 | 272 |
| 273 // Emits optimized code for %_IsObject(x). Preserves input register. | 273 // Emits optimized code for %_IsObject(x). Preserves input register. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 Label entry_; | 402 Label entry_; |
| 403 Label exit_; | 403 Label exit_; |
| 404 Label* external_exit_; | 404 Label* external_exit_; |
| 405 Label done_; | 405 Label done_; |
| 406 int instruction_index_; | 406 int instruction_index_; |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 } } // namespace v8::internal | 409 } } // namespace v8::internal |
| 410 | 410 |
| 411 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 411 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |