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

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

Issue 12259008: Fix HCheckSmiOrInt32 fake observed representation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | 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 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2812 SetFlag(kFlexibleRepresentation); 2812 SetFlag(kFlexibleRepresentation);
2813 SetFlag(kUseGVN); 2813 SetFlag(kUseGVN);
2814 } 2814 }
2815 2815
2816 virtual int RedefinedOperandIndex() { return 0; } 2816 virtual int RedefinedOperandIndex() { return 0; }
2817 virtual Representation RequiredInputRepresentation(int index) { 2817 virtual Representation RequiredInputRepresentation(int index) {
2818 return representation(); 2818 return representation();
2819 } 2819 }
2820 virtual void InferRepresentation(HInferRepresentation* h_infer); 2820 virtual void InferRepresentation(HInferRepresentation* h_infer);
2821 2821
2822 virtual Representation observed_input_representation(int index) {
2823 return Representation::Integer32();
2824 }
2825
2822 virtual HValue* Canonicalize() { 2826 virtual HValue* Canonicalize() {
2823 if (representation().IsTagged() && !type().IsSmi()) { 2827 if (representation().IsTagged() && !type().IsSmi()) {
2824 return this; 2828 return this;
2825 } else { 2829 } else {
2826 return value(); 2830 return value();
2827 } 2831 }
2828 } 2832 }
2829 2833
2830 DECLARE_CONCRETE_INSTRUCTION(CheckSmiOrInt32) 2834 DECLARE_CONCRETE_INSTRUCTION(CheckSmiOrInt32)
2831 2835
(...skipping 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after
6014 virtual bool IsDeletable() const { return true; } 6018 virtual bool IsDeletable() const { return true; }
6015 }; 6019 };
6016 6020
6017 6021
6018 #undef DECLARE_INSTRUCTION 6022 #undef DECLARE_INSTRUCTION
6019 #undef DECLARE_CONCRETE_INSTRUCTION 6023 #undef DECLARE_CONCRETE_INSTRUCTION
6020 6024
6021 } } // namespace v8::internal 6025 } } // namespace v8::internal
6022 6026
6023 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6027 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698