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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 // Translate the value on top of the frame into control flow to the | 512 // Translate the value on top of the frame into control flow to the |
513 // control destination. | 513 // control destination. |
514 void ToBoolean(ControlDestination* destination); | 514 void ToBoolean(ControlDestination* destination); |
515 | 515 |
516 // Generate code that computes a shortcutting logical operation. | 516 // Generate code that computes a shortcutting logical operation. |
517 void GenerateLogicalBooleanOperation(BinaryOperation* node); | 517 void GenerateLogicalBooleanOperation(BinaryOperation* node); |
518 | 518 |
519 void GenericBinaryOperation(BinaryOperation* expr, | 519 void GenericBinaryOperation(BinaryOperation* expr, |
520 OverwriteMode overwrite_mode); | 520 OverwriteMode overwrite_mode); |
521 | 521 |
| 522 // Emits code sequence that jumps to deferred code if the inputs |
| 523 // are not both smis. Cannot be in MacroAssembler because it takes |
| 524 // advantage of TypeInfo to skip unneeded checks. |
| 525 void JumpIfNotBothSmiUsingTypeInfo(Register left, |
| 526 Register right, |
| 527 Register scratch, |
| 528 TypeInfo left_info, |
| 529 TypeInfo right_info, |
| 530 DeferredCode* deferred); |
| 531 |
522 // If possible, combine two constant smi values using op to produce | 532 // If possible, combine two constant smi values using op to produce |
523 // a smi result, and push it on the virtual frame, all at compile time. | 533 // a smi result, and push it on the virtual frame, all at compile time. |
524 // Returns true if it succeeds. Otherwise it has no effect. | 534 // Returns true if it succeeds. Otherwise it has no effect. |
525 bool FoldConstantSmis(Token::Value op, int left, int right); | 535 bool FoldConstantSmis(Token::Value op, int left, int right); |
526 | 536 |
527 // Emit code to perform a binary operation on a constant | 537 // Emit code to perform a binary operation on a constant |
528 // smi and a likely smi. Consumes the Result operand. | 538 // smi and a likely smi. Consumes the Result operand. |
529 Result ConstantSmiBinaryOperation(BinaryOperation* expr, | 539 Result ConstantSmiBinaryOperation(BinaryOperation* expr, |
530 Result* operand, | 540 Result* operand, |
531 Handle<Object> constant_operand, | 541 Handle<Object> constant_operand, |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 void Print() { | 1067 void Print() { |
1058 PrintF("NumberToStringStub\n"); | 1068 PrintF("NumberToStringStub\n"); |
1059 } | 1069 } |
1060 #endif | 1070 #endif |
1061 }; | 1071 }; |
1062 | 1072 |
1063 | 1073 |
1064 } } // namespace v8::internal | 1074 } } // namespace v8::internal |
1065 | 1075 |
1066 #endif // V8_IA32_CODEGEN_IA32_H_ | 1076 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |