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_X64_LITHIUM_CODEGEN_X64_H_ | 5 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_ |
6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ | 6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ |
7 | 7 |
8 #include "src/x64/lithium-x64.h" | 8 #include "src/x64/lithium-x64.h" |
9 | 9 |
10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 LOperand* temp2, | 92 LOperand* temp2, |
93 IntegerSignedness signedness); | 93 IntegerSignedness signedness); |
94 | 94 |
95 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); | 95 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); |
96 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); | 96 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); |
97 void DoDeferredStackCheck(LStackCheck* instr); | 97 void DoDeferredStackCheck(LStackCheck* instr); |
98 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); | 98 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); |
99 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 99 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
100 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 100 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
101 void DoDeferredAllocate(LAllocate* instr); | 101 void DoDeferredAllocate(LAllocate* instr); |
102 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | |
103 Label* map_check); | |
104 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); | 102 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); |
105 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, | 103 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, |
106 Register object, | 104 Register object, |
107 Register index); | 105 Register index); |
108 | 106 |
109 // Parallel move support. | 107 // Parallel move support. |
110 void DoParallelMove(LParallelMove* move); | 108 void DoParallelMove(LParallelMove* move); |
111 void DoGap(LGap* instr); | 109 void DoGap(LGap* instr); |
112 | 110 |
113 // Emit frame translation commands for an environment. | 111 // Emit frame translation commands for an environment. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 int arguments, | 246 int arguments, |
249 Safepoint::DeoptMode mode); | 247 Safepoint::DeoptMode mode); |
250 void RecordAndWritePosition(int position) override; | 248 void RecordAndWritePosition(int position) override; |
251 | 249 |
252 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 250 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
253 void EmitGoto(int block); | 251 void EmitGoto(int block); |
254 | 252 |
255 // EmitBranch expects to be the last instruction of a block. | 253 // EmitBranch expects to be the last instruction of a block. |
256 template<class InstrType> | 254 template<class InstrType> |
257 void EmitBranch(InstrType instr, Condition cc); | 255 void EmitBranch(InstrType instr, Condition cc); |
258 template<class InstrType> | 256 template <class InstrType> |
| 257 void EmitTrueBranch(InstrType instr, Condition cc); |
| 258 template <class InstrType> |
259 void EmitFalseBranch(InstrType instr, Condition cc); | 259 void EmitFalseBranch(InstrType instr, Condition cc); |
260 void EmitNumberUntagD(LNumberUntagD* instr, Register input, | 260 void EmitNumberUntagD(LNumberUntagD* instr, Register input, |
261 XMMRegister result, NumberUntagDMode mode); | 261 XMMRegister result, NumberUntagDMode mode); |
262 | 262 |
263 // Emits optimized code for typeof x == "y". Modifies input register. | 263 // Emits optimized code for typeof x == "y". Modifies input register. |
264 // Returns the condition on which a final split to | 264 // Returns the condition on which a final split to |
265 // true and false label should be made, to optimize fallthrough. | 265 // true and false label should be made, to optimize fallthrough. |
266 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 266 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
267 | 267 |
268 // Emits optimized code for %_IsObject(x). Preserves input register. | 268 // Emits optimized code for %_IsObject(x). Preserves input register. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 Label entry_; | 390 Label entry_; |
391 Label exit_; | 391 Label exit_; |
392 Label done_; | 392 Label done_; |
393 Label* external_exit_; | 393 Label* external_exit_; |
394 int instruction_index_; | 394 int instruction_index_; |
395 }; | 395 }; |
396 | 396 |
397 } } // namespace v8::internal | 397 } } // namespace v8::internal |
398 | 398 |
399 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 399 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |