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

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

Issue 6676060: Improved modulo operation in lithium as well as bailout on -0.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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/arm/lithium-arm.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 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 517
518 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { 518 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
519 public: 519 public:
520 LArgumentsElements() { } 520 LArgumentsElements() { }
521 521
522 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") 522 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
523 }; 523 };
524 524
525 525
526 class LModI: public LTemplateInstruction<1, 2, 0> { 526 class LModI: public LTemplateInstruction<1, 2, 3> {
527 public: 527 public:
528 LModI(LOperand* left, LOperand* right) { 528 // Used when the right hand is a constant power of 2.
529 LModI(LOperand* left,
530 LOperand* right) {
529 inputs_[0] = left; 531 inputs_[0] = left;
530 inputs_[1] = right; 532 inputs_[1] = right;
533 temps_[0] = NULL;
534 temps_[1] = NULL;
535 temps_[2] = NULL;
536 }
537
538 // Used for the standard case.
539 LModI(LOperand* left,
540 LOperand* right,
541 LOperand* temp1,
542 LOperand* temp2,
543 LOperand* temp3) {
544 inputs_[0] = left;
545 inputs_[1] = right;
546 temps_[0] = temp1;
547 temps_[1] = temp2;
548 temps_[2] = temp3;
531 } 549 }
532 550
533 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i") 551 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
534 DECLARE_HYDROGEN_ACCESSOR(Mod) 552 DECLARE_HYDROGEN_ACCESSOR(Mod)
535 }; 553 };
536 554
537 555
538 class LDivI: public LTemplateInstruction<1, 2, 0> { 556 class LDivI: public LTemplateInstruction<1, 2, 0> {
539 public: 557 public:
540 LDivI(LOperand* left, LOperand* right) { 558 LDivI(LOperand* left, LOperand* right) {
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2114 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2097 }; 2115 };
2098 2116
2099 #undef DECLARE_HYDROGEN_ACCESSOR 2117 #undef DECLARE_HYDROGEN_ACCESSOR
2100 #undef DECLARE_INSTRUCTION 2118 #undef DECLARE_INSTRUCTION
2101 #undef DECLARE_CONCRETE_INSTRUCTION 2119 #undef DECLARE_CONCRETE_INSTRUCTION
2102 2120
2103 } } // namespace v8::internal 2121 } } // namespace v8::internal
2104 2122
2105 #endif // V8_ARM_LITHIUM_ARM_H_ 2123 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698