OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 // Translate the value on top of the frame into control flow to the | 470 // Translate the value on top of the frame into control flow to the |
471 // control destination. | 471 // control destination. |
472 void ToBoolean(ControlDestination* destination); | 472 void ToBoolean(ControlDestination* destination); |
473 | 473 |
474 // Generate code that computes a shortcutting logical operation. | 474 // Generate code that computes a shortcutting logical operation. |
475 void GenerateLogicalBooleanOperation(BinaryOperation* node); | 475 void GenerateLogicalBooleanOperation(BinaryOperation* node); |
476 | 476 |
477 void GenericBinaryOperation(BinaryOperation* expr, | 477 void GenericBinaryOperation(BinaryOperation* expr, |
478 OverwriteMode overwrite_mode); | 478 OverwriteMode overwrite_mode); |
479 | 479 |
| 480 // Emits code sequence that jumps to deferred code if the input |
| 481 // is not a smi. Cannot be in MacroAssembler because it takes |
| 482 // advantage of TypeInfo to skip unneeded checks. |
| 483 void JumpIfNotSmiUsingTypeInfo(Register reg, |
| 484 TypeInfo type, |
| 485 DeferredCode* deferred); |
| 486 |
480 // Emits code sequence that jumps to deferred code if the inputs | 487 // Emits code sequence that jumps to deferred code if the inputs |
481 // are not both smis. Cannot be in MacroAssembler because it takes | 488 // are not both smis. Cannot be in MacroAssembler because it takes |
482 // advantage of TypeInfo to skip unneeded checks. | 489 // advantage of TypeInfo to skip unneeded checks. |
483 void JumpIfNotBothSmiUsingTypeInfo(Register left, | 490 void JumpIfNotBothSmiUsingTypeInfo(Register left, |
484 Register right, | 491 Register right, |
485 TypeInfo left_info, | 492 TypeInfo left_info, |
486 TypeInfo right_info, | 493 TypeInfo right_info, |
487 DeferredCode* deferred); | 494 DeferredCode* deferred); |
488 | 495 |
489 // If possible, combine two constant smi values using op to produce | 496 // If possible, combine two constant smi values using op to produce |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 return ObjectBits::encode(object_.code()) | | 1047 return ObjectBits::encode(object_.code()) | |
1041 AddressBits::encode(addr_.code()) | | 1048 AddressBits::encode(addr_.code()) | |
1042 ScratchBits::encode(scratch_.code()); | 1049 ScratchBits::encode(scratch_.code()); |
1043 } | 1050 } |
1044 }; | 1051 }; |
1045 | 1052 |
1046 | 1053 |
1047 } } // namespace v8::internal | 1054 } } // namespace v8::internal |
1048 | 1055 |
1049 #endif // V8_X64_CODEGEN_X64_H_ | 1056 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |