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

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

Issue 6410025: Require typed input representation for HTypeof hydrogen instruction.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 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 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after
3066 bool pretenure_; 3066 bool pretenure_;
3067 }; 3067 };
3068 3068
3069 3069
3070 class HTypeof: public HUnaryOperation { 3070 class HTypeof: public HUnaryOperation {
3071 public: 3071 public:
3072 explicit HTypeof(HValue* value) : HUnaryOperation(value) { 3072 explicit HTypeof(HValue* value) : HUnaryOperation(value) {
3073 set_representation(Representation::Tagged()); 3073 set_representation(Representation::Tagged());
3074 } 3074 }
3075 3075
3076 virtual Representation RequiredInputRepresentation(int index) const {
3077 return Representation::Tagged();
3078 }
3079
3076 DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof") 3080 DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
3077 }; 3081 };
3078 3082
3079 3083
3080 class HValueOf: public HUnaryOperation { 3084 class HValueOf: public HUnaryOperation {
3081 public: 3085 public:
3082 explicit HValueOf(HValue* value) : HUnaryOperation(value) { 3086 explicit HValueOf(HValue* value) : HUnaryOperation(value) {
3083 set_representation(Representation::Tagged()); 3087 set_representation(Representation::Tagged());
3084 } 3088 }
3085 3089
(...skipping 18 matching lines...) Expand all
3104 HValue* object() const { return left(); } 3108 HValue* object() const { return left(); }
3105 HValue* key() const { return right(); } 3109 HValue* key() const { return right(); }
3106 }; 3110 };
3107 3111
3108 #undef DECLARE_INSTRUCTION 3112 #undef DECLARE_INSTRUCTION
3109 #undef DECLARE_CONCRETE_INSTRUCTION 3113 #undef DECLARE_CONCRETE_INSTRUCTION
3110 3114
3111 } } // namespace v8::internal 3115 } } // namespace v8::internal
3112 3116
3113 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3117 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-71647.js » ('j') | test/mjsunit/regress/regress-71647.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698