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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // Translate the value on top of the frame into control flow to the | 485 // Translate the value on top of the frame into control flow to the |
486 // control destination. | 486 // control destination. |
487 void ToBoolean(ControlDestination* destination); | 487 void ToBoolean(ControlDestination* destination); |
488 | 488 |
489 // Generate code that computes a shortcutting logical operation. | 489 // Generate code that computes a shortcutting logical operation. |
490 void GenerateLogicalBooleanOperation(BinaryOperation* node); | 490 void GenerateLogicalBooleanOperation(BinaryOperation* node); |
491 | 491 |
492 void GenericBinaryOperation(BinaryOperation* expr, | 492 void GenericBinaryOperation(BinaryOperation* expr, |
493 OverwriteMode overwrite_mode); | 493 OverwriteMode overwrite_mode); |
494 | 494 |
| 495 // Emits code sequence that jumps to a JumpTarget if the inputs |
| 496 // are both smis. Cannot be in MacroAssembler because it takes |
| 497 // advantage of TypeInfo to skip unneeded checks. |
| 498 void JumpIfBothSmiUsingTypeInfo(Register left, |
| 499 Register right, |
| 500 TypeInfo left_info, |
| 501 TypeInfo right_info, |
| 502 JumpTarget* both_smi); |
| 503 |
495 // Emits code sequence that jumps to deferred code if the input | 504 // Emits code sequence that jumps to deferred code if the input |
496 // is not a smi. Cannot be in MacroAssembler because it takes | 505 // is not a smi. Cannot be in MacroAssembler because it takes |
497 // advantage of TypeInfo to skip unneeded checks. | 506 // advantage of TypeInfo to skip unneeded checks. |
498 void JumpIfNotSmiUsingTypeInfo(Register reg, | 507 void JumpIfNotSmiUsingTypeInfo(Register reg, |
499 TypeInfo type, | 508 TypeInfo type, |
500 DeferredCode* deferred); | 509 DeferredCode* deferred); |
501 | 510 |
502 // Emits code sequence that jumps to deferred code if the inputs | 511 // Emits code sequence that jumps to deferred code if the inputs |
503 // are not both smis. Cannot be in MacroAssembler because it takes | 512 // are not both smis. Cannot be in MacroAssembler because it takes |
504 // advantage of TypeInfo to skip unneeded checks. | 513 // advantage of TypeInfo to skip unneeded checks. |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 return ObjectBits::encode(object_.code()) | | 1083 return ObjectBits::encode(object_.code()) | |
1075 AddressBits::encode(addr_.code()) | | 1084 AddressBits::encode(addr_.code()) | |
1076 ScratchBits::encode(scratch_.code()); | 1085 ScratchBits::encode(scratch_.code()); |
1077 } | 1086 } |
1078 }; | 1087 }; |
1079 | 1088 |
1080 | 1089 |
1081 } } // namespace v8::internal | 1090 } } // namespace v8::internal |
1082 | 1091 |
1083 #endif // V8_X64_CODEGEN_X64_H_ | 1092 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |