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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 static Representation ToRepresentation(TypeInfo info); | 787 static Representation ToRepresentation(TypeInfo info); |
788 | 788 |
789 void SetupScope(Scope* scope); | 789 void SetupScope(Scope* scope); |
790 virtual void VisitStatements(ZoneList<Statement*>* statements); | 790 virtual void VisitStatements(ZoneList<Statement*>* statements); |
791 | 791 |
792 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 792 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
793 AST_NODE_LIST(DECLARE_VISIT) | 793 AST_NODE_LIST(DECLARE_VISIT) |
794 #undef DECLARE_VISIT | 794 #undef DECLARE_VISIT |
795 | 795 |
796 HBasicBlock* CreateBasicBlock(HEnvironment* env); | 796 HBasicBlock* CreateBasicBlock(HEnvironment* env); |
797 HSubgraph* CreateEmptySubgraph(); | |
798 HBasicBlock* CreateLoopHeaderBlock(); | 797 HBasicBlock* CreateLoopHeaderBlock(); |
799 | 798 |
800 // Helpers for flow graph construction. | 799 // Helpers for flow graph construction. |
801 void LookupGlobalPropertyCell(Variable* var, | 800 void LookupGlobalPropertyCell(Variable* var, |
802 LookupResult* lookup, | 801 LookupResult* lookup, |
803 bool is_store); | 802 bool is_store); |
804 | 803 |
805 bool TryArgumentsAccess(Property* expr); | 804 bool TryArgumentsAccess(Property* expr); |
806 bool TryCallApply(Call* expr); | 805 bool TryCallApply(Call* expr); |
807 bool TryInline(Call* expr); | 806 bool TryInline(Call* expr); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 HInstruction* BuildStoreKeyedFastElement(HValue* object, | 879 HInstruction* BuildStoreKeyedFastElement(HValue* object, |
881 HValue* key, | 880 HValue* key, |
882 HValue* val, | 881 HValue* val, |
883 Expression* expr); | 882 Expression* expr); |
884 | 883 |
885 HInstruction* BuildStoreKeyedPixelArrayElement(HValue* object, | 884 HInstruction* BuildStoreKeyedPixelArrayElement(HValue* object, |
886 HValue* key, | 885 HValue* key, |
887 HValue* val, | 886 HValue* val, |
888 Expression* expr); | 887 Expression* expr); |
889 | 888 |
890 HCompare* BuildSwitchCompare(HSubgraph* subgraph, | |
891 HValue* switch_value, | |
892 CaseClause* clause); | |
893 | |
894 HValue* BuildContextChainWalk(Variable* var); | 889 HValue* BuildContextChainWalk(Variable* var); |
895 | 890 |
896 void AddCheckConstantFunction(Call* expr, | 891 void AddCheckConstantFunction(Call* expr, |
897 HValue* receiver, | 892 HValue* receiver, |
898 Handle<Map> receiver_map, | 893 Handle<Map> receiver_map, |
899 bool smi_and_map_check); | 894 bool smi_and_map_check); |
900 | 895 |
901 | 896 |
902 // The translation state of the currently-being-translated function. | 897 // The translation state of the currently-being-translated function. |
903 FunctionState* function_state_; | 898 FunctionState* function_state_; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 const char* filename_; | 1126 const char* filename_; |
1132 HeapStringAllocator string_allocator_; | 1127 HeapStringAllocator string_allocator_; |
1133 StringStream trace_; | 1128 StringStream trace_; |
1134 int indent_; | 1129 int indent_; |
1135 }; | 1130 }; |
1136 | 1131 |
1137 | 1132 |
1138 } } // namespace v8::internal | 1133 } } // namespace v8::internal |
1139 | 1134 |
1140 #endif // V8_HYDROGEN_H_ | 1135 #endif // V8_HYDROGEN_H_ |
OLD | NEW |