| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 | 618 |
| 619 // Push the function argument for the runtime functions PushWithContext | 619 // Push the function argument for the runtime functions PushWithContext |
| 620 // and PushCatchContext. | 620 // and PushCatchContext. |
| 621 void PushFunctionArgumentForContextAllocation(); | 621 void PushFunctionArgumentForContextAllocation(); |
| 622 | 622 |
| 623 // AST node visit functions. | 623 // AST node visit functions. |
| 624 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 624 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 625 AST_NODE_LIST(DECLARE_VISIT) | 625 AST_NODE_LIST(DECLARE_VISIT) |
| 626 #undef DECLARE_VISIT | 626 #undef DECLARE_VISIT |
| 627 | 627 |
| 628 void EmitUnaryOperation(UnaryOperation* expr, const char* comment); | |
| 629 | |
| 630 void VisitComma(BinaryOperation* expr); | 628 void VisitComma(BinaryOperation* expr); |
| 631 void VisitLogicalExpression(BinaryOperation* expr); | 629 void VisitLogicalExpression(BinaryOperation* expr); |
| 632 void VisitArithmeticExpression(BinaryOperation* expr); | 630 void VisitArithmeticExpression(BinaryOperation* expr); |
| 633 | 631 |
| 634 void VisitForTypeofValue(Expression* expr); | 632 void VisitForTypeofValue(Expression* expr); |
| 635 | 633 |
| 636 void Generate(); | 634 void Generate(); |
| 637 void PopulateDeoptimizationData(Handle<Code> code); | 635 void PopulateDeoptimizationData(Handle<Code> code); |
| 638 void PopulateTypeFeedbackInfo(Handle<Code> code); | 636 void PopulateTypeFeedbackInfo(Handle<Code> code); |
| 639 void PopulateTypeFeedbackCells(Handle<Code> code); | 637 void PopulateTypeFeedbackCells(Handle<Code> code); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 } | 876 } |
| 879 | 877 |
| 880 private: | 878 private: |
| 881 Zone* zone_; | 879 Zone* zone_; |
| 882 }; | 880 }; |
| 883 | 881 |
| 884 | 882 |
| 885 } } // namespace v8::internal | 883 } } // namespace v8::internal |
| 886 | 884 |
| 887 #endif // V8_FULL_CODEGEN_H_ | 885 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |