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

Side by Side Diff: src/x64/lithium-x64.h

Issue 225393005: x64: Make sure that the upper half of a 64bit register contains 0 for int32 values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Added comment. Created 6 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/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 public: 1239 public:
1240 LBitI(LOperand* left, LOperand* right) { 1240 LBitI(LOperand* left, LOperand* right) {
1241 inputs_[0] = left; 1241 inputs_[0] = left;
1242 inputs_[1] = right; 1242 inputs_[1] = right;
1243 } 1243 }
1244 1244
1245 LOperand* left() { return inputs_[0]; } 1245 LOperand* left() { return inputs_[0]; }
1246 LOperand* right() { return inputs_[1]; } 1246 LOperand* right() { return inputs_[1]; }
1247 1247
1248 Token::Value op() const { return hydrogen()->op(); } 1248 Token::Value op() const { return hydrogen()->op(); }
1249 bool IsInteger32() const {
1250 return hydrogen()->representation().IsInteger32();
1251 }
1249 1252
1250 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") 1253 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
1251 DECLARE_HYDROGEN_ACCESSOR(Bitwise) 1254 DECLARE_HYDROGEN_ACCESSOR(Bitwise)
1252 }; 1255 };
1253 1256
1254 1257
1255 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1258 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1256 public: 1259 public:
1257 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) 1260 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
1258 : op_(op), can_deopt_(can_deopt) { 1261 : op_(op), can_deopt_(can_deopt) {
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 2830
2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2831 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2829 }; 2832 };
2830 2833
2831 #undef DECLARE_HYDROGEN_ACCESSOR 2834 #undef DECLARE_HYDROGEN_ACCESSOR
2832 #undef DECLARE_CONCRETE_INSTRUCTION 2835 #undef DECLARE_CONCRETE_INSTRUCTION
2833 2836
2834 } } // namespace v8::int 2837 } } // namespace v8::int
2835 2838
2836 #endif // V8_X64_LITHIUM_X64_H_ 2839 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698