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