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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 bool left_is_constant_smi, | 474 bool left_is_constant_smi, |
475 Smi* value); | 475 Smi* value); |
476 | 476 |
477 void EmitConstantSmiSub(Expression* expr, | 477 void EmitConstantSmiSub(Expression* expr, |
478 OverwriteMode mode, | 478 OverwriteMode mode, |
479 bool left_is_constant_smi, | 479 bool left_is_constant_smi, |
480 Smi* value); | 480 Smi* value); |
481 | 481 |
482 // Assign to the given expression as if via '='. The right-hand-side value | 482 // Assign to the given expression as if via '='. The right-hand-side value |
483 // is expected in the accumulator. | 483 // is expected in the accumulator. |
484 void EmitAssignment(Expression* expr, int bailout_ast_id); | 484 void EmitAssignment(Expression* expr); |
485 | 485 |
486 // Complete a variable assignment. The right-hand-side value is expected | 486 // Complete a variable assignment. The right-hand-side value is expected |
487 // in the accumulator. | 487 // in the accumulator. |
488 void EmitVariableAssignment(Variable* var, | 488 void EmitVariableAssignment(Variable* var, |
489 Token::Value op); | 489 Token::Value op); |
490 | 490 |
491 // Complete a named property assignment. The receiver is expected on top | 491 // Complete a named property assignment. The receiver is expected on top |
492 // of the stack and the right-hand-side value in the accumulator. | 492 // of the stack and the right-hand-side value in the accumulator. |
493 void EmitNamedPropertyAssignment(Assignment* expr); | 493 void EmitNamedPropertyAssignment(Assignment* expr); |
494 | 494 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 | 756 |
757 friend class NestedStatement; | 757 friend class NestedStatement; |
758 | 758 |
759 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 759 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
760 }; | 760 }; |
761 | 761 |
762 | 762 |
763 } } // namespace v8::internal | 763 } } // namespace v8::internal |
764 | 764 |
765 #endif // V8_FULL_CODEGEN_H_ | 765 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |