| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 // Helper functions for generating inlined smi code for certain | 493 // Helper functions for generating inlined smi code for certain |
| 494 // binary operations. | 494 // binary operations. |
| 495 void EmitInlineSmiBinaryOp(BinaryOperation* expr, | 495 void EmitInlineSmiBinaryOp(BinaryOperation* expr, |
| 496 Token::Value op, | 496 Token::Value op, |
| 497 OverwriteMode mode, | 497 OverwriteMode mode, |
| 498 Expression* left, | 498 Expression* left, |
| 499 Expression* right); | 499 Expression* right); |
| 500 | 500 |
| 501 // Assign to the given expression as if via '='. The right-hand-side value | 501 // Assign to the given expression as if via '='. The right-hand-side value |
| 502 // is expected in the accumulator. | 502 // is expected in the accumulator. |
| 503 void EmitAssignment(Expression* expr, int bailout_ast_id); | 503 void EmitAssignment(Expression* expr); |
| 504 | 504 |
| 505 // Complete a variable assignment. The right-hand-side value is expected | 505 // Complete a variable assignment. The right-hand-side value is expected |
| 506 // in the accumulator. | 506 // in the accumulator. |
| 507 void EmitVariableAssignment(Variable* var, | 507 void EmitVariableAssignment(Variable* var, |
| 508 Token::Value op); | 508 Token::Value op); |
| 509 | 509 |
| 510 // Complete a named property assignment. The receiver is expected on top | 510 // Complete a named property assignment. The receiver is expected on top |
| 511 // of the stack and the right-hand-side value in the accumulator. | 511 // of the stack and the right-hand-side value in the accumulator. |
| 512 void EmitNamedPropertyAssignment(Assignment* expr); | 512 void EmitNamedPropertyAssignment(Assignment* expr); |
| 513 | 513 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 | 784 |
| 785 friend class NestedStatement; | 785 friend class NestedStatement; |
| 786 | 786 |
| 787 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 787 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 788 }; | 788 }; |
| 789 | 789 |
| 790 | 790 |
| 791 } } // namespace v8::internal | 791 } } // namespace v8::internal |
| 792 | 792 |
| 793 #endif // V8_FULL_CODEGEN_H_ | 793 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |