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 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2166 void VisitArgument(Expression* expr); | 2166 void VisitArgument(Expression* expr); |
2167 | 2167 |
2168 void VisitArgumentList(ZoneList<Expression*>* arguments); | 2168 void VisitArgumentList(ZoneList<Expression*>* arguments); |
2169 | 2169 |
2170 // Visit a list of expressions from left to right, each in a value context. | 2170 // Visit a list of expressions from left to right, each in a value context. |
2171 void VisitExpressions(ZoneList<Expression*>* exprs); | 2171 void VisitExpressions(ZoneList<Expression*>* exprs); |
2172 | 2172 |
2173 // Remove the arguments from the bailout environment and emit instructions | 2173 // Remove the arguments from the bailout environment and emit instructions |
2174 // to push them as outgoing parameters. | 2174 // to push them as outgoing parameters. |
2175 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); | 2175 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); |
| 2176 void PushArgumentsFromEnvironment(int count); |
2176 | 2177 |
2177 void SetUpScope(Scope* scope); | 2178 void SetUpScope(Scope* scope); |
2178 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; | 2179 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; |
2179 | 2180 |
2180 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) V8_OVERRIDE; | 2181 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) V8_OVERRIDE; |
2181 AST_NODE_LIST(DECLARE_VISIT) | 2182 AST_NODE_LIST(DECLARE_VISIT) |
2182 #undef DECLARE_VISIT | 2183 #undef DECLARE_VISIT |
2183 | 2184 |
2184 private: | 2185 private: |
2185 // Helpers for flow graph construction. | 2186 // Helpers for flow graph construction. |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2492 HValue* object_elements, | 2493 HValue* object_elements, |
2493 AllocationSiteUsageContext* site_context); | 2494 AllocationSiteUsageContext* site_context); |
2494 | 2495 |
2495 void AddCheckPrototypeMaps(Handle<JSObject> holder, | 2496 void AddCheckPrototypeMaps(Handle<JSObject> holder, |
2496 Handle<Map> receiver_map); | 2497 Handle<Map> receiver_map); |
2497 | 2498 |
2498 void AddCheckConstantFunction(Handle<JSObject> holder, | 2499 void AddCheckConstantFunction(Handle<JSObject> holder, |
2499 HValue* receiver, | 2500 HValue* receiver, |
2500 Handle<Map> receiver_map); | 2501 Handle<Map> receiver_map); |
2501 | 2502 |
| 2503 HInstruction* NewPlainFunctionCall(HValue* fun, |
| 2504 int argument_count, |
| 2505 bool pass_argument_count); |
| 2506 |
| 2507 HInstruction* NewArgumentAdaptorCall(HValue* fun, HValue* context, |
| 2508 int argument_count, |
| 2509 HValue* expected_param_count); |
| 2510 |
| 2511 HInstruction* BuildCallConstantFunction(Handle<JSFunction> target, |
| 2512 int argument_count); |
| 2513 |
| 2514 HInstruction* NewCallKeyed(HValue* key, int argument_count); |
| 2515 |
| 2516 HInstruction* NewCallNamed(Handle<String> name, int argument_count); |
| 2517 |
2502 // The translation state of the currently-being-translated function. | 2518 // The translation state of the currently-being-translated function. |
2503 FunctionState* function_state_; | 2519 FunctionState* function_state_; |
2504 | 2520 |
2505 // The base of the function state stack. | 2521 // The base of the function state stack. |
2506 FunctionState initial_function_state_; | 2522 FunctionState initial_function_state_; |
2507 | 2523 |
2508 // Expression context of the currently visited subexpression. NULL when | 2524 // Expression context of the currently visited subexpression. NULL when |
2509 // visiting statements. | 2525 // visiting statements. |
2510 AstContext* ast_context_; | 2526 AstContext* ast_context_; |
2511 | 2527 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2683 } | 2699 } |
2684 | 2700 |
2685 private: | 2701 private: |
2686 HGraphBuilder* builder_; | 2702 HGraphBuilder* builder_; |
2687 }; | 2703 }; |
2688 | 2704 |
2689 | 2705 |
2690 } } // namespace v8::internal | 2706 } } // namespace v8::internal |
2691 | 2707 |
2692 #endif // V8_HYDROGEN_H_ | 2708 #endif // V8_HYDROGEN_H_ |
OLD | NEW |