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/a64/lithium-a64.h

Issue 191293013: Cleanup some of the range uses in ModI/DivI. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 9 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') | no next file with comments »
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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 LDivI(LOperand* left, LOperand* right, LOperand* temp) { 1328 LDivI(LOperand* left, LOperand* right, LOperand* temp) {
1329 inputs_[0] = left; 1329 inputs_[0] = left;
1330 inputs_[1] = right; 1330 inputs_[1] = right;
1331 temps_[0] = temp; 1331 temps_[0] = temp;
1332 } 1332 }
1333 1333
1334 LOperand* left() { return inputs_[0]; } 1334 LOperand* left() { return inputs_[0]; }
1335 LOperand* right() { return inputs_[1]; } 1335 LOperand* right() { return inputs_[1]; }
1336 LOperand* temp() { return temps_[0]; } 1336 LOperand* temp() { return temps_[0]; }
1337 1337
1338 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); }
1339
1340 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") 1338 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
1341 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) 1339 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation)
1342 }; 1340 };
1343 1341
1344 1342
1345 class LDoubleToIntOrSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1343 class LDoubleToIntOrSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1346 public: 1344 public:
1347 explicit LDoubleToIntOrSmi(LOperand* value) { 1345 explicit LDoubleToIntOrSmi(LOperand* value) {
1348 inputs_[0] = value; 1346 inputs_[0] = value;
1349 } 1347 }
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 3120
3123 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3121 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3124 }; 3122 };
3125 3123
3126 #undef DECLARE_HYDROGEN_ACCESSOR 3124 #undef DECLARE_HYDROGEN_ACCESSOR
3127 #undef DECLARE_CONCRETE_INSTRUCTION 3125 #undef DECLARE_CONCRETE_INSTRUCTION
3128 3126
3129 } } // namespace v8::internal 3127 } } // namespace v8::internal
3130 3128
3131 #endif // V8_A64_LITHIUM_A64_H_ 3129 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698