| 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // expressions. We are not allowed to throw reference errors for | 482 // expressions. We are not allowed to throw reference errors for |
| 483 // non-existing properties of the global object, so we must make it | 483 // non-existing properties of the global object, so we must make it |
| 484 // look like an explicit property access, instead of an access | 484 // look like an explicit property access, instead of an access |
| 485 // through the context chain. | 485 // through the context chain. |
| 486 void LoadTypeofExpression(Expression* x); | 486 void LoadTypeofExpression(Expression* x); |
| 487 | 487 |
| 488 // Translate the value on top of the frame into control flow to the | 488 // Translate the value on top of the frame into control flow to the |
| 489 // control destination. | 489 // control destination. |
| 490 void ToBoolean(ControlDestination* destination); | 490 void ToBoolean(ControlDestination* destination); |
| 491 | 491 |
| 492 // Generate code that computes a shortcutting logical operation. |
| 493 void GenerateLogicalBooleanOperation(BinaryOperation* node); |
| 494 |
| 492 void GenericBinaryOperation( | 495 void GenericBinaryOperation( |
| 493 Token::Value op, | 496 Token::Value op, |
| 494 StaticType* type, | 497 StaticType* type, |
| 495 OverwriteMode overwrite_mode, | 498 OverwriteMode overwrite_mode, |
| 496 bool no_negative_zero); | 499 bool no_negative_zero); |
| 497 | 500 |
| 498 // If possible, combine two constant smi values using op to produce | 501 // If possible, combine two constant smi values using op to produce |
| 499 // a smi result, and push it on the virtual frame, all at compile time. | 502 // a smi result, and push it on the virtual frame, all at compile time. |
| 500 // Returns true if it succeeds. Otherwise it has no effect. | 503 // Returns true if it succeeds. Otherwise it has no effect. |
| 501 bool FoldConstantSmis(Token::Value op, int left, int right); | 504 bool FoldConstantSmis(Token::Value op, int left, int right); |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 return ObjectBits::encode(object_.code()) | | 1054 return ObjectBits::encode(object_.code()) | |
| 1052 AddressBits::encode(addr_.code()) | | 1055 AddressBits::encode(addr_.code()) | |
| 1053 ScratchBits::encode(scratch_.code()); | 1056 ScratchBits::encode(scratch_.code()); |
| 1054 } | 1057 } |
| 1055 }; | 1058 }; |
| 1056 | 1059 |
| 1057 | 1060 |
| 1058 } } // namespace v8::internal | 1061 } } // namespace v8::internal |
| 1059 | 1062 |
| 1060 #endif // V8_IA32_CODEGEN_IA32_H_ | 1063 #endif // V8_IA32_CODEGEN_IA32_H_ |
| OLD | NEW |