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 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2124 void VisitArgument(Expression* expr); | 2124 void VisitArgument(Expression* expr); |
2125 | 2125 |
2126 void VisitArgumentList(ZoneList<Expression*>* arguments); | 2126 void VisitArgumentList(ZoneList<Expression*>* arguments); |
2127 | 2127 |
2128 // Visit a list of expressions from left to right, each in a value context. | 2128 // Visit a list of expressions from left to right, each in a value context. |
2129 void VisitExpressions(ZoneList<Expression*>* exprs); | 2129 void VisitExpressions(ZoneList<Expression*>* exprs); |
2130 | 2130 |
2131 // Remove the arguments from the bailout environment and emit instructions | 2131 // Remove the arguments from the bailout environment and emit instructions |
2132 // to push them as outgoing parameters. | 2132 // to push them as outgoing parameters. |
2133 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); | 2133 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); |
| 2134 void PushArgumentsFromEnvironment(int count); |
2134 | 2135 |
2135 void SetUpScope(Scope* scope); | 2136 void SetUpScope(Scope* scope); |
2136 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; | 2137 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; |
2137 | 2138 |
2138 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) V8_OVERRIDE; | 2139 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) V8_OVERRIDE; |
2139 AST_NODE_LIST(DECLARE_VISIT) | 2140 AST_NODE_LIST(DECLARE_VISIT) |
2140 #undef DECLARE_VISIT | 2141 #undef DECLARE_VISIT |
2141 | 2142 |
2142 private: | 2143 private: |
2143 // Helpers for flow graph construction. | 2144 // Helpers for flow graph construction. |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2439 HValue* object_elements, | 2440 HValue* object_elements, |
2440 AllocationSiteUsageContext* site_context); | 2441 AllocationSiteUsageContext* site_context); |
2441 | 2442 |
2442 void AddCheckPrototypeMaps(Handle<JSObject> holder, | 2443 void AddCheckPrototypeMaps(Handle<JSObject> holder, |
2443 Handle<Map> receiver_map); | 2444 Handle<Map> receiver_map); |
2444 | 2445 |
2445 void AddCheckConstantFunction(Handle<JSObject> holder, | 2446 void AddCheckConstantFunction(Handle<JSObject> holder, |
2446 HValue* receiver, | 2447 HValue* receiver, |
2447 Handle<Map> receiver_map); | 2448 Handle<Map> receiver_map); |
2448 | 2449 |
| 2450 HInstruction* NewPlainFunctionCall(HValue* fun, |
| 2451 HValue* call_kind_value, |
| 2452 int argument_count, |
| 2453 bool pass_argument_count); |
| 2454 |
| 2455 HInstruction* NewArgumentAdaptorCall(HValue* fun, HValue* context, |
| 2456 HValue* call_kind_value, |
| 2457 int argument_count, |
| 2458 HValue* expected_param_count); |
| 2459 |
| 2460 HInstruction* BuildCallConstantFunction(Handle<JSFunction> target, |
| 2461 int argument_count, |
| 2462 CallKind call_kind); |
| 2463 |
| 2464 HInstruction* NewCallKeyed(HValue* key, int argument_count); |
| 2465 |
| 2466 HInstruction* NewCallNamed(Handle<String> name, int argument_count); |
| 2467 |
2449 // The translation state of the currently-being-translated function. | 2468 // The translation state of the currently-being-translated function. |
2450 FunctionState* function_state_; | 2469 FunctionState* function_state_; |
2451 | 2470 |
2452 // The base of the function state stack. | 2471 // The base of the function state stack. |
2453 FunctionState initial_function_state_; | 2472 FunctionState initial_function_state_; |
2454 | 2473 |
2455 // Expression context of the currently visited subexpression. NULL when | 2474 // Expression context of the currently visited subexpression. NULL when |
2456 // visiting statements. | 2475 // visiting statements. |
2457 AstContext* ast_context_; | 2476 AstContext* ast_context_; |
2458 | 2477 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2630 } | 2649 } |
2631 | 2650 |
2632 private: | 2651 private: |
2633 HGraphBuilder* builder_; | 2652 HGraphBuilder* builder_; |
2634 }; | 2653 }; |
2635 | 2654 |
2636 | 2655 |
2637 } } // namespace v8::internal | 2656 } } // namespace v8::internal |
2638 | 2657 |
2639 #endif // V8_HYDROGEN_H_ | 2658 #endif // V8_HYDROGEN_H_ |
OLD | NEW |