| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 // expressions. We are not allowed to throw reference errors for | 447 // expressions. We are not allowed to throw reference errors for |
| 448 // non-existing properties of the global object, so we must make it | 448 // non-existing properties of the global object, so we must make it |
| 449 // look like an explicit property access, instead of an access | 449 // look like an explicit property access, instead of an access |
| 450 // through the context chain. | 450 // through the context chain. |
| 451 void LoadTypeofExpression(Expression* x); | 451 void LoadTypeofExpression(Expression* x); |
| 452 | 452 |
| 453 // Translate the value on top of the frame into control flow to the | 453 // Translate the value on top of the frame into control flow to the |
| 454 // control destination. | 454 // control destination. |
| 455 void ToBoolean(ControlDestination* destination); | 455 void ToBoolean(ControlDestination* destination); |
| 456 | 456 |
| 457 // Generate code that computes a shortcutting logical operation. |
| 458 void GenerateLogicalBooleanOperation(BinaryOperation* node); |
| 459 |
| 457 void GenericBinaryOperation( | 460 void GenericBinaryOperation( |
| 458 Token::Value op, | 461 Token::Value op, |
| 459 StaticType* type, | 462 StaticType* type, |
| 460 OverwriteMode overwrite_mode); | 463 OverwriteMode overwrite_mode); |
| 461 | 464 |
| 462 // If possible, combine two constant smi values using op to produce | 465 // If possible, combine two constant smi values using op to produce |
| 463 // a smi result, and push it on the virtual frame, all at compile time. | 466 // a smi result, and push it on the virtual frame, all at compile time. |
| 464 // Returns true if it succeeds. Otherwise it has no effect. | 467 // Returns true if it succeeds. Otherwise it has no effect. |
| 465 bool FoldConstantSmis(Token::Value op, int left, int right); | 468 bool FoldConstantSmis(Token::Value op, int left, int right); |
| 466 | 469 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 void Print() { | 940 void Print() { |
| 938 PrintF("NumberToStringStub\n"); | 941 PrintF("NumberToStringStub\n"); |
| 939 } | 942 } |
| 940 #endif | 943 #endif |
| 941 }; | 944 }; |
| 942 | 945 |
| 943 | 946 |
| 944 } } // namespace v8::internal | 947 } } // namespace v8::internal |
| 945 | 948 |
| 946 #endif // V8_X64_CODEGEN_X64_H_ | 949 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |