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

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

Issue 12490013: Deoptimizer support for hydrogen stubs that accept a variable number of arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 8 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/frames.cc ('k') | src/ia32/code-stubs-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 4675 matching lines...) Expand 10 before | Expand all | Expand 10 after
4686 REGISTER_PARAMETER 4686 REGISTER_PARAMETER
4687 }; 4687 };
4688 4688
4689 explicit HParameter(unsigned index, 4689 explicit HParameter(unsigned index,
4690 ParameterKind kind = STACK_PARAMETER) 4690 ParameterKind kind = STACK_PARAMETER)
4691 : index_(index), 4691 : index_(index),
4692 kind_(kind) { 4692 kind_(kind) {
4693 set_representation(Representation::Tagged()); 4693 set_representation(Representation::Tagged());
4694 } 4694 }
4695 4695
4696 explicit HParameter(unsigned index,
4697 ParameterKind kind,
4698 Representation r)
4699 : index_(index),
4700 kind_(kind) {
4701 set_representation(r);
4702 }
4703
4696 unsigned index() const { return index_; } 4704 unsigned index() const { return index_; }
4697 ParameterKind kind() const { return kind_; } 4705 ParameterKind kind() const { return kind_; }
4698 4706
4699 virtual void PrintDataTo(StringStream* stream); 4707 virtual void PrintDataTo(StringStream* stream);
4700 4708
4701 virtual Representation RequiredInputRepresentation(int index) { 4709 virtual Representation RequiredInputRepresentation(int index) {
4702 return Representation::None(); 4710 return Representation::None();
4703 } 4711 }
4704 4712
4705 DECLARE_CONCRETE_INSTRUCTION(Parameter) 4713 DECLARE_CONCRETE_INSTRUCTION(Parameter)
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
6460 virtual bool IsDeletable() const { return true; } 6468 virtual bool IsDeletable() const { return true; }
6461 }; 6469 };
6462 6470
6463 6471
6464 #undef DECLARE_INSTRUCTION 6472 #undef DECLARE_INSTRUCTION
6465 #undef DECLARE_CONCRETE_INSTRUCTION 6473 #undef DECLARE_CONCRETE_INSTRUCTION
6466 6474
6467 } } // namespace v8::internal 6475 } } // namespace v8::internal
6468 6476
6469 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6477 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698