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

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

Issue 10825071: Use integer division in a certain case. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 4 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 | « AUTHORS ('k') | src/hydrogen-instructions.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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 kUseGVN, 550 kUseGVN,
551 // Track instructions that are dominating side effects. If an instruction 551 // Track instructions that are dominating side effects. If an instruction
552 // sets this flag, it must implement SetSideEffectDominator() and should 552 // sets this flag, it must implement SetSideEffectDominator() and should
553 // indicate which side effects to track by setting GVN flags. 553 // indicate which side effects to track by setting GVN flags.
554 kTrackSideEffectDominators, 554 kTrackSideEffectDominators,
555 kCanOverflow, 555 kCanOverflow,
556 kBailoutOnMinusZero, 556 kBailoutOnMinusZero,
557 kCanBeDivByZero, 557 kCanBeDivByZero,
558 kDeoptimizeOnUndefined, 558 kDeoptimizeOnUndefined,
559 kIsArguments, 559 kIsArguments,
560 // This instruction truncates its inputs
560 kTruncatingToInt32, 561 kTruncatingToInt32,
562 // All other instructions will truncate this instruction's output
563 kWillTruncateToInt32,
561 kIsDead, 564 kIsDead,
562 kLastFlag = kIsDead 565 kLastFlag = kIsDead
563 }; 566 };
564 567
565 STATIC_ASSERT(kLastFlag < kBitsPerInt); 568 STATIC_ASSERT(kLastFlag < kBitsPerInt);
566 569
567 static const int kChangesToDependsFlagsLeftShift = 1; 570 static const int kChangesToDependsFlagsLeftShift = 1;
568 571
569 static GVNFlag ChangesFlagFromInt(int x) { 572 static GVNFlag ChangesFlagFromInt(int x) {
570 return static_cast<GVNFlag>(x * 2); 573 return static_cast<GVNFlag>(x * 2);
(...skipping 4613 matching lines...) Expand 10 before | Expand all | Expand 10 after
5184 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5187 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5185 }; 5188 };
5186 5189
5187 5190
5188 #undef DECLARE_INSTRUCTION 5191 #undef DECLARE_INSTRUCTION
5189 #undef DECLARE_CONCRETE_INSTRUCTION 5192 #undef DECLARE_CONCRETE_INSTRUCTION
5190 5193
5191 } } // namespace v8::internal 5194 } } // namespace v8::internal
5192 5195
5193 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5196 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698