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

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

Issue 246133005: Optimize numeric comparison with known successors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix 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/hydrogen.cc ('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 4200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4211 4211
4212 virtual void InferRepresentation( 4212 virtual void InferRepresentation(
4213 HInferRepresentationPhase* h_infer) V8_OVERRIDE; 4213 HInferRepresentationPhase* h_infer) V8_OVERRIDE;
4214 4214
4215 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 4215 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
4216 return representation(); 4216 return representation();
4217 } 4217 }
4218 virtual Representation observed_input_representation(int index) V8_OVERRIDE { 4218 virtual Representation observed_input_representation(int index) V8_OVERRIDE {
4219 return observed_input_representation_[index]; 4219 return observed_input_representation_[index];
4220 } 4220 }
4221
4222 virtual bool KnownSuccessorBlock(HBasicBlock** block) V8_OVERRIDE;
4223
4221 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 4224 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
4222 4225
4223 void SetOperandPositions(Zone* zone, 4226 void SetOperandPositions(Zone* zone,
4224 HSourcePosition left_pos, 4227 HSourcePosition left_pos,
4225 HSourcePosition right_pos) { 4228 HSourcePosition right_pos) {
4226 set_operand_position(zone, 0, left_pos); 4229 set_operand_position(zone, 0, left_pos);
4227 set_operand_position(zone, 1, right_pos); 4230 set_operand_position(zone, 1, right_pos);
4228 } 4231 }
4229 4232
4230 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch) 4233 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch)
(...skipping 3330 matching lines...) Expand 10 before | Expand all | Expand 10 after
7561 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7564 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7562 }; 7565 };
7563 7566
7564 7567
7565 #undef DECLARE_INSTRUCTION 7568 #undef DECLARE_INSTRUCTION
7566 #undef DECLARE_CONCRETE_INSTRUCTION 7569 #undef DECLARE_CONCRETE_INSTRUCTION
7567 7570
7568 } } // namespace v8::internal 7571 } } // namespace v8::internal
7569 7572
7570 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7573 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698