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

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

Issue 166793002: Fixed and improved code for integral division. Fixed and extended tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A64 fixes and cleanup Created 6 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 | src/a64/lithium-a64.cc » ('j') | src/a64/lithium-codegen-a64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 LDivI(LOperand* left, LOperand* right, LOperand* temp) { 1255 LDivI(LOperand* left, LOperand* right, LOperand* temp) {
1256 inputs_[0] = left; 1256 inputs_[0] = left;
1257 inputs_[1] = right; 1257 inputs_[1] = right;
1258 temps_[0] = temp; 1258 temps_[0] = temp;
1259 } 1259 }
1260 1260
1261 LOperand* left() { return inputs_[0]; } 1261 LOperand* left() { return inputs_[0]; }
1262 LOperand* right() { return inputs_[1]; } 1262 LOperand* right() { return inputs_[1]; }
1263 LOperand* temp() { return temps_[0]; } 1263 LOperand* temp() { return temps_[0]; }
1264 1264
1265 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); }
1266
1265 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 1267 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
1266 DECLARE_HYDROGEN_ACCESSOR(Div) 1268 DECLARE_HYDROGEN_ACCESSOR(Div)
1267 }; 1269 };
1268 1270
1269 1271
1270 class LDoubleToIntOrSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1272 class LDoubleToIntOrSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1271 public: 1273 public:
1272 explicit LDoubleToIntOrSmi(LOperand* value) { 1274 explicit LDoubleToIntOrSmi(LOperand* value) {
1273 inputs_[0] = value; 1275 inputs_[0] = value;
1274 } 1276 }
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
2956 2958
2957 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2959 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2958 }; 2960 };
2959 2961
2960 #undef DECLARE_HYDROGEN_ACCESSOR 2962 #undef DECLARE_HYDROGEN_ACCESSOR
2961 #undef DECLARE_CONCRETE_INSTRUCTION 2963 #undef DECLARE_CONCRETE_INSTRUCTION
2962 2964
2963 } } // namespace v8::internal 2965 } } // namespace v8::internal
2964 2966
2965 #endif // V8_A64_LITHIUM_A64_H_ 2967 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | src/a64/lithium-codegen-a64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698