| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 HValue* Top() const { return environment()->Top(); } | 699 HValue* Top() const { return environment()->Top(); } |
| 700 void Drop(int n) { environment()->Drop(n); } | 700 void Drop(int n) { environment()->Drop(n); } |
| 701 void Bind(Variable* var, HValue* value) { environment()->Bind(var, value); } | 701 void Bind(Variable* var, HValue* value) { environment()->Bind(var, value); } |
| 702 | 702 |
| 703 void VisitForValue(Expression* expr); | 703 void VisitForValue(Expression* expr); |
| 704 void VisitForEffect(Expression* expr); | 704 void VisitForEffect(Expression* expr); |
| 705 void VisitForControl(Expression* expr, | 705 void VisitForControl(Expression* expr, |
| 706 HBasicBlock* true_block, | 706 HBasicBlock* true_block, |
| 707 HBasicBlock* false_block); | 707 HBasicBlock* false_block); |
| 708 | 708 |
| 709 // Visit an argument and wrap it in a PushArgument instruction. | 709 // Visit an argument subexpression. |
| 710 HValue* VisitArgument(Expression* expr); | 710 void VisitArgument(Expression* expr); |
| 711 void VisitArgumentList(ZoneList<Expression*>* arguments); | 711 void VisitArgumentList(ZoneList<Expression*>* arguments); |
| 712 | 712 |
| 713 void AddPhi(HPhi* phi); | 713 void AddPhi(HPhi* phi); |
| 714 | 714 |
| 715 void PushAndAdd(HInstruction* instr); | 715 void PushAndAdd(HInstruction* instr); |
| 716 | 716 |
| 717 void PushArgumentsForStubCall(int argument_count); | |
| 718 | |
| 719 // Remove the arguments from the bailout environment and emit instructions | 717 // Remove the arguments from the bailout environment and emit instructions |
| 720 // to push them as outgoing parameters. | 718 // to push them as outgoing parameters. |
| 721 void ProcessCall(HCall* call); | 719 void PreProcessCall(HCall* call); |
| 722 | 720 |
| 723 void AssumeRepresentation(HValue* value, Representation r); | 721 void AssumeRepresentation(HValue* value, Representation r); |
| 724 static Representation ToRepresentation(TypeInfo info); | 722 static Representation ToRepresentation(TypeInfo info); |
| 725 | 723 |
| 726 void SetupScope(Scope* scope); | 724 void SetupScope(Scope* scope); |
| 727 virtual void VisitStatements(ZoneList<Statement*>* statements); | 725 virtual void VisitStatements(ZoneList<Statement*>* statements); |
| 728 | 726 |
| 729 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 727 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 730 AST_NODE_LIST(DECLARE_VISIT) | 728 AST_NODE_LIST(DECLARE_VISIT) |
| 731 #undef DECLARE_VISIT | 729 #undef DECLARE_VISIT |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 const char* filename_; | 1069 const char* filename_; |
| 1072 HeapStringAllocator string_allocator_; | 1070 HeapStringAllocator string_allocator_; |
| 1073 StringStream trace_; | 1071 StringStream trace_; |
| 1074 int indent_; | 1072 int indent_; |
| 1075 }; | 1073 }; |
| 1076 | 1074 |
| 1077 | 1075 |
| 1078 } } // namespace v8::internal | 1076 } } // namespace v8::internal |
| 1079 | 1077 |
| 1080 #endif // V8_HYDROGEN_H_ | 1078 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |