| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 // look like an explicit property access, instead of an access | 429 // look like an explicit property access, instead of an access |
| 430 // through the context chain. | 430 // through the context chain. |
| 431 void LoadTypeofExpression(Expression* x); | 431 void LoadTypeofExpression(Expression* x); |
| 432 | 432 |
| 433 // Translate the value on top of the frame into control flow to the | 433 // Translate the value on top of the frame into control flow to the |
| 434 // control destination. | 434 // control destination. |
| 435 void ToBoolean(ControlDestination* destination); | 435 void ToBoolean(ControlDestination* destination); |
| 436 | 436 |
| 437 void GenericBinaryOperation( | 437 void GenericBinaryOperation( |
| 438 Token::Value op, | 438 Token::Value op, |
| 439 SmiAnalysis* type, | 439 StaticType* type, |
| 440 OverwriteMode overwrite_mode); | 440 OverwriteMode overwrite_mode); |
| 441 | 441 |
| 442 // If possible, combine two constant smi values using op to produce | 442 // If possible, combine two constant smi values using op to produce |
| 443 // a smi result, and push it on the virtual frame, all at compile time. | 443 // a smi result, and push it on the virtual frame, all at compile time. |
| 444 // Returns true if it succeeds. Otherwise it has no effect. | 444 // Returns true if it succeeds. Otherwise it has no effect. |
| 445 bool FoldConstantSmis(Token::Value op, int left, int right); | 445 bool FoldConstantSmis(Token::Value op, int left, int right); |
| 446 | 446 |
| 447 // Emit code to perform a binary operation on a constant | 447 // Emit code to perform a binary operation on a constant |
| 448 // smi and a likely smi. Consumes the Result *operand. | 448 // smi and a likely smi. Consumes the Result *operand. |
| 449 void ConstantSmiBinaryOperation(Token::Value op, | 449 void ConstantSmiBinaryOperation(Token::Value op, |
| 450 Result* operand, | 450 Result* operand, |
| 451 Handle<Object> constant_operand, | 451 Handle<Object> constant_operand, |
| 452 SmiAnalysis* type, | 452 StaticType* type, |
| 453 bool reversed, | 453 bool reversed, |
| 454 OverwriteMode overwrite_mode); | 454 OverwriteMode overwrite_mode); |
| 455 | 455 |
| 456 // Emit code to perform a binary operation on two likely smis. | 456 // Emit code to perform a binary operation on two likely smis. |
| 457 // The code to handle smi arguments is produced inline. | 457 // The code to handle smi arguments is produced inline. |
| 458 // Consumes the Results *left and *right. | 458 // Consumes the Results *left and *right. |
| 459 void LikelySmiBinaryOperation(Token::Value op, | 459 void LikelySmiBinaryOperation(Token::Value op, |
| 460 Result* left, | 460 Result* left, |
| 461 Result* right, | 461 Result* right, |
| 462 OverwriteMode overwrite_mode); | 462 OverwriteMode overwrite_mode); |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 bool ascii); | 773 bool ascii); |
| 774 | 774 |
| 775 // Should the stub check whether arguments are strings? | 775 // Should the stub check whether arguments are strings? |
| 776 bool string_check_; | 776 bool string_check_; |
| 777 }; | 777 }; |
| 778 | 778 |
| 779 | 779 |
| 780 } } // namespace v8::internal | 780 } } // namespace v8::internal |
| 781 | 781 |
| 782 #endif // V8_X64_CODEGEN_X64_H_ | 782 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |