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

Side by Side Diff: src/hydrogen-instructions.h

Issue 11550005: Elide unnecessary context reload in generated stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 11 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/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.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 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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 return Representation::Tagged(); 1164 return Representation::Tagged();
1165 } 1165 }
1166 1166
1167 DECLARE_CONCRETE_INSTRUCTION(CompareMap) 1167 DECLARE_CONCRETE_INSTRUCTION(CompareMap)
1168 1168
1169 private: 1169 private:
1170 Handle<Map> map_; 1170 Handle<Map> map_;
1171 }; 1171 };
1172 1172
1173 1173
1174 class HReturn: public HTemplateControlInstruction<0, 1> { 1174 class HReturn: public HTemplateControlInstruction<0, 2> {
1175 public: 1175 public:
1176 explicit HReturn(HValue* value) { 1176 HReturn(HValue* value, HValue* context) {
1177 SetOperandAt(0, value); 1177 SetOperandAt(0, value);
1178 SetOperandAt(1, context);
1178 } 1179 }
1179 1180
1180 virtual Representation RequiredInputRepresentation(int index) { 1181 virtual Representation RequiredInputRepresentation(int index) {
1181 return Representation::Tagged(); 1182 return Representation::Tagged();
1182 } 1183 }
1183 1184
1184 virtual void PrintDataTo(StringStream* stream); 1185 virtual void PrintDataTo(StringStream* stream);
1185 1186
1186 HValue* value() { return OperandAt(0); } 1187 HValue* value() { return OperandAt(0); }
1188 HValue* context() { return OperandAt(1); }
1187 1189
1188 DECLARE_CONCRETE_INSTRUCTION(Return) 1190 DECLARE_CONCRETE_INSTRUCTION(Return)
1189 }; 1191 };
1190 1192
1191 1193
1192 class HAbnormalExit: public HTemplateControlInstruction<0, 0> { 1194 class HAbnormalExit: public HTemplateControlInstruction<0, 0> {
1193 public: 1195 public:
1194 virtual Representation RequiredInputRepresentation(int index) { 1196 virtual Representation RequiredInputRepresentation(int index) {
1195 return Representation::None(); 1197 return Representation::None();
1196 } 1198 }
(...skipping 4245 matching lines...) Expand 10 before | Expand all | Expand 10 after
5442 virtual bool IsDeletable() const { return true; } 5444 virtual bool IsDeletable() const { return true; }
5443 }; 5445 };
5444 5446
5445 5447
5446 #undef DECLARE_INSTRUCTION 5448 #undef DECLARE_INSTRUCTION
5447 #undef DECLARE_CONCRETE_INSTRUCTION 5449 #undef DECLARE_CONCRETE_INSTRUCTION
5448 5450
5449 } } // namespace v8::internal 5451 } } // namespace v8::internal
5450 5452
5451 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5453 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698