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