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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 template <class InstrType> | 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. | |
269 // Returns the condition on which a final split to | |
270 // true and false label should be made, to optimize fallthrough. | |
271 Condition EmitIsObject(Register input, | |
272 Label* is_not_object, | |
273 Label* is_object); | |
274 | |
275 // Emits optimized code for %_IsString(x). Preserves input register. | 268 // Emits optimized code for %_IsString(x). Preserves input register. |
276 // Returns the condition on which a final split to | 269 // Returns the condition on which a final split to |
277 // true and false label should be made, to optimize fallthrough. | 270 // true and false label should be made, to optimize fallthrough. |
278 Condition EmitIsString(Register input, | 271 Condition EmitIsString(Register input, |
279 Register temp1, | 272 Register temp1, |
280 Label* is_not_string, | 273 Label* is_not_string, |
281 SmiCheck check_needed); | 274 SmiCheck check_needed); |
282 | 275 |
283 // Emits optimized code for %_IsConstructCall(). | 276 // Emits optimized code for %_IsConstructCall(). |
284 // Caller should branch on equal condition. | 277 // Caller should branch on equal condition. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 Label entry_; | 383 Label entry_; |
391 Label exit_; | 384 Label exit_; |
392 Label done_; | 385 Label done_; |
393 Label* external_exit_; | 386 Label* external_exit_; |
394 int instruction_index_; | 387 int instruction_index_; |
395 }; | 388 }; |
396 | 389 |
397 } } // namespace v8::internal | 390 } } // namespace v8::internal |
398 | 391 |
399 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 392 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |