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

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

Issue 641313003: Set output representation of HIsStringAndBranch to tagged. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 4459 matching lines...) Expand 10 before | Expand all | Expand 10 after
4470 void set_known_successor_index(int known_successor_index) { 4470 void set_known_successor_index(int known_successor_index) {
4471 known_successor_index_ = known_successor_index; 4471 known_successor_index_ = known_successor_index;
4472 } 4472 }
4473 4473
4474 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch) 4474 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch)
4475 4475
4476 protected: 4476 protected:
4477 virtual int RedefinedOperandIndex() { return 0; } 4477 virtual int RedefinedOperandIndex() { return 0; }
4478 4478
4479 private: 4479 private:
4480 HIsStringAndBranch(HValue* value, 4480 HIsStringAndBranch(HValue* value, HBasicBlock* true_target = NULL,
4481 HBasicBlock* true_target = NULL,
4482 HBasicBlock* false_target = NULL) 4481 HBasicBlock* false_target = NULL)
4483 : HUnaryControlInstruction(value, true_target, false_target), 4482 : HUnaryControlInstruction(value, true_target, false_target),
4484 known_successor_index_(kNoKnownSuccessorIndex) { } 4483 known_successor_index_(kNoKnownSuccessorIndex) {
4484 set_representation(Representation::Tagged());
4485 }
4485 4486
4486 int known_successor_index_; 4487 int known_successor_index_;
4487 }; 4488 };
4488 4489
4489 4490
4490 class HIsSmiAndBranch FINAL : public HUnaryControlInstruction { 4491 class HIsSmiAndBranch FINAL : public HUnaryControlInstruction {
4491 public: 4492 public:
4492 DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*); 4493 DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*);
4493 DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*, 4494 DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*,
4494 HBasicBlock*, HBasicBlock*); 4495 HBasicBlock*, HBasicBlock*);
(...skipping 3401 matching lines...) Expand 10 before | Expand all | Expand 10 after
7896 }; 7897 };
7897 7898
7898 7899
7899 7900
7900 #undef DECLARE_INSTRUCTION 7901 #undef DECLARE_INSTRUCTION
7901 #undef DECLARE_CONCRETE_INSTRUCTION 7902 #undef DECLARE_CONCRETE_INSTRUCTION
7902 7903
7903 } } // namespace v8::internal 7904 } } // namespace v8::internal
7904 7905
7905 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698