Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/hydrogen.h

Issue 6635012: Refactor inlined functions to avoid using subgraphs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 785
786 void SetupScope(Scope* scope); 786 void SetupScope(Scope* scope);
787 virtual void VisitStatements(ZoneList<Statement*>* statements); 787 virtual void VisitStatements(ZoneList<Statement*>* statements);
788 788
789 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 789 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
790 AST_NODE_LIST(DECLARE_VISIT) 790 AST_NODE_LIST(DECLARE_VISIT)
791 #undef DECLARE_VISIT 791 #undef DECLARE_VISIT
792 792
793 HBasicBlock* CreateBasicBlock(HEnvironment* env); 793 HBasicBlock* CreateBasicBlock(HEnvironment* env);
794 HSubgraph* CreateEmptySubgraph(); 794 HSubgraph* CreateEmptySubgraph();
795 HSubgraph* CreateBranchSubgraph(HEnvironment* env);
796 HBasicBlock* CreateLoopHeaderBlock(); 795 HBasicBlock* CreateLoopHeaderBlock();
797 HSubgraph* CreateInlinedSubgraph(HEnvironment* outer,
798 Handle<JSFunction> target,
799 FunctionLiteral* function);
800 796
801 // Helpers for flow graph construction. 797 // Helpers for flow graph construction.
802 void LookupGlobalPropertyCell(Variable* var, 798 void LookupGlobalPropertyCell(Variable* var,
803 LookupResult* lookup, 799 LookupResult* lookup,
804 bool is_store); 800 bool is_store);
805 801
806 bool TryArgumentsAccess(Property* expr); 802 bool TryArgumentsAccess(Property* expr);
807 bool TryCallApply(Call* expr); 803 bool TryCallApply(Call* expr);
808 bool TryInline(Call* expr); 804 bool TryInline(Call* expr);
809 bool TryInlineBuiltinFunction(Call* expr, 805 bool TryInlineBuiltinFunction(Call* expr,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 CaseClause* clause); 889 CaseClause* clause);
894 890
895 HValue* BuildContextChainWalk(Variable* var); 891 HValue* BuildContextChainWalk(Variable* var);
896 892
897 void AddCheckConstantFunction(Call* expr, 893 void AddCheckConstantFunction(Call* expr,
898 HValue* receiver, 894 HValue* receiver,
899 Handle<Map> receiver_map, 895 Handle<Map> receiver_map,
900 bool smi_and_map_check); 896 bool smi_and_map_check);
901 897
902 898
903 HBasicBlock* BuildTypeSwitch(HValue* receiver,
904 ZoneMapList* maps,
905 ZoneList<HSubgraph*>* body_graphs,
906 HSubgraph* default_graph,
907 int join_id);
908
909 // The translation state of the currently-being-translated function. 899 // The translation state of the currently-being-translated function.
910 FunctionState* function_state_; 900 FunctionState* function_state_;
911 901
912 // The base of the function state stack. 902 // The base of the function state stack.
913 FunctionState initial_function_state_; 903 FunctionState initial_function_state_;
914 904
915 // Expression context of the currently visited subexpression. NULL when 905 // Expression context of the currently visited subexpression. NULL when
916 // visiting statements. 906 // visiting statements.
917 AstContext* ast_context_; 907 AstContext* ast_context_;
918 908
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 const char* filename_; 1128 const char* filename_;
1139 HeapStringAllocator string_allocator_; 1129 HeapStringAllocator string_allocator_;
1140 StringStream trace_; 1130 StringStream trace_;
1141 int indent_; 1131 int indent_;
1142 }; 1132 };
1143 1133
1144 1134
1145 } } // namespace v8::internal 1135 } } // namespace v8::internal
1146 1136
1147 #endif // V8_HYDROGEN_H_ 1137 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698