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

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

Issue 16035016: Allow boundscheck elimination to work on Smi keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 6 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/hydrogen-instructions.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 3642 matching lines...) Expand 10 before | Expand all | Expand 10 after
3653 base_ = index(); 3653 base_ = index();
3654 offset_ = 0; 3654 offset_ = 0;
3655 scale_ = 0; 3655 scale_ = 0;
3656 return false; 3656 return false;
3657 } 3657 }
3658 } 3658 }
3659 3659
3660 virtual Representation RequiredInputRepresentation(int arg_index) { 3660 virtual Representation RequiredInputRepresentation(int arg_index) {
3661 return representation(); 3661 return representation();
3662 } 3662 }
3663 virtual Representation observed_input_representation(int index) {
3664 return Representation::Integer32();
3665 }
3666 3663
3667 virtual bool IsRelationTrueInternal(NumericRelation relation, 3664 virtual bool IsRelationTrueInternal(NumericRelation relation,
3668 HValue* related_value, 3665 HValue* related_value,
3669 int offset = 0, 3666 int offset = 0,
3670 int scale = 0); 3667 int scale = 0);
3671 3668
3672 virtual void PrintDataTo(StringStream* stream); 3669 virtual void PrintDataTo(StringStream* stream);
3673 virtual void InferRepresentation(HInferRepresentation* h_infer); 3670 virtual void InferRepresentation(HInferRepresentation* h_infer);
3674 3671
3675 HValue* index() { return OperandAt(0); } 3672 HValue* index() { return OperandAt(0); }
(...skipping 2889 matching lines...) Expand 10 before | Expand all | Expand 10 after
6565 virtual bool IsDeletable() const { return true; } 6562 virtual bool IsDeletable() const { return true; }
6566 }; 6563 };
6567 6564
6568 6565
6569 #undef DECLARE_INSTRUCTION 6566 #undef DECLARE_INSTRUCTION
6570 #undef DECLARE_CONCRETE_INSTRUCTION 6567 #undef DECLARE_CONCRETE_INSTRUCTION
6571 6568
6572 } } // namespace v8::internal 6569 } } // namespace v8::internal
6573 6570
6574 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6571 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698