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

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

Issue 12093089: Support pass-through of stub caller arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bugs Created 7 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
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 3992 matching lines...) Expand 10 before | Expand all | Expand 10 after
4003 4003
4004 DECLARE_CONCRETE_INSTRUCTION(OsrEntry) 4004 DECLARE_CONCRETE_INSTRUCTION(OsrEntry)
4005 4005
4006 private: 4006 private:
4007 BailoutId ast_id_; 4007 BailoutId ast_id_;
4008 }; 4008 };
4009 4009
4010 4010
4011 class HParameter: public HTemplateInstruction<0> { 4011 class HParameter: public HTemplateInstruction<0> {
4012 public: 4012 public:
4013 explicit HParameter(unsigned index) : index_(index) { 4013 enum ParameterKind {
4014 STACK_PARAMETER,
4015 REGISTER_PARAMETER
4016 };
4017
4018 explicit HParameter(unsigned index,
4019 ParameterKind kind = STACK_PARAMETER)
4020 : index_(index),
4021 kind_(kind) {
4014 set_representation(Representation::Tagged()); 4022 set_representation(Representation::Tagged());
4015 } 4023 }
4016 4024
4017 unsigned index() const { return index_; } 4025 unsigned index() const { return index_; }
4026 ParameterKind kind() const { return kind_; }
4018 4027
4019 virtual void PrintDataTo(StringStream* stream); 4028 virtual void PrintDataTo(StringStream* stream);
4020 4029
4021 virtual Representation RequiredInputRepresentation(int index) { 4030 virtual Representation RequiredInputRepresentation(int index) {
4022 return Representation::None(); 4031 return Representation::None();
4023 } 4032 }
4024 4033
4025 DECLARE_CONCRETE_INSTRUCTION(Parameter) 4034 DECLARE_CONCRETE_INSTRUCTION(Parameter)
4026 4035
4027 private: 4036 private:
4028 unsigned index_; 4037 unsigned index_;
4038 ParameterKind kind_;
4029 }; 4039 };
4030 4040
4031 4041
4032 class HCallStub: public HUnaryCall { 4042 class HCallStub: public HUnaryCall {
4033 public: 4043 public:
4034 HCallStub(HValue* context, CodeStub::Major major_key, int argument_count) 4044 HCallStub(HValue* context, CodeStub::Major major_key, int argument_count)
4035 : HUnaryCall(context, argument_count), 4045 : HUnaryCall(context, argument_count),
4036 major_key_(major_key), 4046 major_key_(major_key),
4037 transcendental_type_(TranscendentalCache::kNumberOfCaches) { 4047 transcendental_type_(TranscendentalCache::kNumberOfCaches) {
4038 } 4048 }
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
5733 virtual bool IsDeletable() const { return true; } 5743 virtual bool IsDeletable() const { return true; }
5734 }; 5744 };
5735 5745
5736 5746
5737 #undef DECLARE_INSTRUCTION 5747 #undef DECLARE_INSTRUCTION
5738 #undef DECLARE_CONCRETE_INSTRUCTION 5748 #undef DECLARE_CONCRETE_INSTRUCTION
5739 5749
5740 } } // namespace v8::internal 5750 } } // namespace v8::internal
5741 5751
5742 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5752 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/frames.cc ('K') | « src/frames-inl.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698