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

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

Issue 7039036: Fix calls of strict mode function with an implicit receiver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 7 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/builtins-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 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 virtual Representation RequiredInputRepresentation(int index) const { 1189 virtual Representation RequiredInputRepresentation(int index) const {
1190 return Representation::None(); 1190 return Representation::None();
1191 } 1191 }
1192 1192
1193 DECLARE_CONCRETE_INSTRUCTION(StackCheck) 1193 DECLARE_CONCRETE_INSTRUCTION(StackCheck)
1194 }; 1194 };
1195 1195
1196 1196
1197 class HEnterInlined: public HTemplateInstruction<0> { 1197 class HEnterInlined: public HTemplateInstruction<0> {
1198 public: 1198 public:
1199 HEnterInlined(Handle<JSFunction> closure, FunctionLiteral* function) 1199 HEnterInlined(Handle<JSFunction> closure,
1200 : closure_(closure), function_(function) { 1200 FunctionLiteral* function,
1201 CallKind call_kind)
1202 : closure_(closure),
1203 function_(function),
1204 call_kind_(call_kind) {
1201 } 1205 }
1202 1206
1203 virtual void PrintDataTo(StringStream* stream); 1207 virtual void PrintDataTo(StringStream* stream);
1204 1208
1205 Handle<JSFunction> closure() const { return closure_; } 1209 Handle<JSFunction> closure() const { return closure_; }
1206 FunctionLiteral* function() const { return function_; } 1210 FunctionLiteral* function() const { return function_; }
1211 CallKind call_kind() const { return call_kind_; }
1207 1212
1208 virtual Representation RequiredInputRepresentation(int index) const { 1213 virtual Representation RequiredInputRepresentation(int index) const {
1209 return Representation::None(); 1214 return Representation::None();
1210 } 1215 }
1211 1216
1212 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) 1217 DECLARE_CONCRETE_INSTRUCTION(EnterInlined)
1213 1218
1214 private: 1219 private:
1215 Handle<JSFunction> closure_; 1220 Handle<JSFunction> closure_;
1216 FunctionLiteral* function_; 1221 FunctionLiteral* function_;
1222 CallKind call_kind_;
1217 }; 1223 };
1218 1224
1219 1225
1220 class HLeaveInlined: public HTemplateInstruction<0> { 1226 class HLeaveInlined: public HTemplateInstruction<0> {
1221 public: 1227 public:
1222 HLeaveInlined() {} 1228 HLeaveInlined() {}
1223 1229
1224 virtual Representation RequiredInputRepresentation(int index) const { 1230 virtual Representation RequiredInputRepresentation(int index) const {
1225 return Representation::None(); 1231 return Representation::None();
1226 } 1232 }
(...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3956 3962
3957 DECLARE_CONCRETE_INSTRUCTION(In) 3963 DECLARE_CONCRETE_INSTRUCTION(In)
3958 }; 3964 };
3959 3965
3960 #undef DECLARE_INSTRUCTION 3966 #undef DECLARE_INSTRUCTION
3961 #undef DECLARE_CONCRETE_INSTRUCTION 3967 #undef DECLARE_CONCRETE_INSTRUCTION
3962 3968
3963 } } // namespace v8::internal 3969 } } // namespace v8::internal
3964 3970
3965 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3971 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698