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

Side by Side Diff: src/hydrogen.h

Issue 6538080: Add template parameter for hydrogen input operands. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: added other platforms Created 9 years, 10 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 | « src/arm/lithium-arm.cc ('k') | 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 722
723 // Visit a list of expressions from left to right, each in a value context. 723 // Visit a list of expressions from left to right, each in a value context.
724 void VisitExpressions(ZoneList<Expression*>* exprs); 724 void VisitExpressions(ZoneList<Expression*>* exprs);
725 725
726 void AddPhi(HPhi* phi); 726 void AddPhi(HPhi* phi);
727 727
728 void PushAndAdd(HInstruction* instr); 728 void PushAndAdd(HInstruction* instr);
729 729
730 // Remove the arguments from the bailout environment and emit instructions 730 // Remove the arguments from the bailout environment and emit instructions
731 // to push them as outgoing parameters. 731 // to push them as outgoing parameters.
732 void PreProcessCall(HCall* call); 732 template <int V> HInstruction* PreProcessCall(HCall<V>* call);
733 733
734 void AssumeRepresentation(HValue* value, Representation r); 734 void AssumeRepresentation(HValue* value, Representation r);
735 static Representation ToRepresentation(TypeInfo info); 735 static Representation ToRepresentation(TypeInfo info);
736 736
737 void SetupScope(Scope* scope); 737 void SetupScope(Scope* scope);
738 virtual void VisitStatements(ZoneList<Statement*>* statements); 738 virtual void VisitStatements(ZoneList<Statement*>* statements);
739 739
740 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 740 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
741 AST_NODE_LIST(DECLARE_VISIT) 741 AST_NODE_LIST(DECLARE_VISIT)
742 #undef DECLARE_VISIT 742 #undef DECLARE_VISIT
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 const char* filename_; 1090 const char* filename_;
1091 HeapStringAllocator string_allocator_; 1091 HeapStringAllocator string_allocator_;
1092 StringStream trace_; 1092 StringStream trace_;
1093 int indent_; 1093 int indent_;
1094 }; 1094 };
1095 1095
1096 1096
1097 } } // namespace v8::internal 1097 } } // namespace v8::internal
1098 1098
1099 #endif // V8_HYDROGEN_H_ 1099 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698