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 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 // contexts. (It's allowed in all effect contexts and disallowed in all | 2207 // contexts. (It's allowed in all effect contexts and disallowed in all |
2208 // test contexts.) | 2208 // test contexts.) |
2209 void VisitForValue(Expression* expr, | 2209 void VisitForValue(Expression* expr, |
2210 ArgumentsAllowedFlag flag = ARGUMENTS_NOT_ALLOWED); | 2210 ArgumentsAllowedFlag flag = ARGUMENTS_NOT_ALLOWED); |
2211 void VisitForTypeOf(Expression* expr); | 2211 void VisitForTypeOf(Expression* expr); |
2212 void VisitForEffect(Expression* expr); | 2212 void VisitForEffect(Expression* expr); |
2213 void VisitForControl(Expression* expr, | 2213 void VisitForControl(Expression* expr, |
2214 HBasicBlock* true_block, | 2214 HBasicBlock* true_block, |
2215 HBasicBlock* false_block); | 2215 HBasicBlock* false_block); |
2216 | 2216 |
2217 // Visit an argument subexpression and emit a push to the outgoing arguments. | |
2218 void VisitArgument(Expression* expr); | |
2219 | |
2220 void VisitArgumentList(ZoneList<Expression*>* arguments); | |
2221 | |
2222 // Visit a list of expressions from left to right, each in a value context. | 2217 // Visit a list of expressions from left to right, each in a value context. |
2223 void VisitExpressions(ZoneList<Expression*>* exprs); | 2218 void VisitExpressions(ZoneList<Expression*>* exprs); |
2224 | 2219 |
2225 // Remove the arguments from the bailout environment and emit instructions | 2220 // Remove the arguments from the bailout environment and emit instructions |
2226 // to push them as outgoing parameters. | 2221 // to push them as outgoing parameters. |
2227 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); | 2222 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); |
2228 void PushArgumentsFromEnvironment(int count); | 2223 void PushArgumentsFromEnvironment(int count); |
2229 | 2224 |
2230 void SetUpScope(Scope* scope); | 2225 void SetUpScope(Scope* scope); |
2231 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; | 2226 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 } | 2788 } |
2794 | 2789 |
2795 private: | 2790 private: |
2796 HGraphBuilder* builder_; | 2791 HGraphBuilder* builder_; |
2797 }; | 2792 }; |
2798 | 2793 |
2799 | 2794 |
2800 } } // namespace v8::internal | 2795 } } // namespace v8::internal |
2801 | 2796 |
2802 #endif // V8_HYDROGEN_H_ | 2797 #endif // V8_HYDROGEN_H_ |
OLD | NEW |