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

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

Issue 1313903003: [runtime] Remove the redundant %_IsObject intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michis comment. Created 5 years, 3 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
« 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 // 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 <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 V(FunctionLiteral) \ 101 V(FunctionLiteral) \
102 V(GetCachedArrayIndex) \ 102 V(GetCachedArrayIndex) \
103 V(Goto) \ 103 V(Goto) \
104 V(HasCachedArrayIndexAndBranch) \ 104 V(HasCachedArrayIndexAndBranch) \
105 V(HasInstanceTypeAndBranch) \ 105 V(HasInstanceTypeAndBranch) \
106 V(InnerAllocatedObject) \ 106 V(InnerAllocatedObject) \
107 V(InstanceOf) \ 107 V(InstanceOf) \
108 V(InvokeFunction) \ 108 V(InvokeFunction) \
109 V(IsConstructCallAndBranch) \ 109 V(IsConstructCallAndBranch) \
110 V(HasInPrototypeChainAndBranch) \ 110 V(HasInPrototypeChainAndBranch) \
111 V(IsObjectAndBranch) \
112 V(IsStringAndBranch) \ 111 V(IsStringAndBranch) \
113 V(IsSmiAndBranch) \ 112 V(IsSmiAndBranch) \
114 V(IsUndetectableAndBranch) \ 113 V(IsUndetectableAndBranch) \
115 V(LeaveInlined) \ 114 V(LeaveInlined) \
116 V(LoadContextSlot) \ 115 V(LoadContextSlot) \
117 V(LoadFieldByIndex) \ 116 V(LoadFieldByIndex) \
118 V(LoadFunctionPrototype) \ 117 V(LoadFunctionPrototype) \
119 V(LoadGlobalGeneric) \ 118 V(LoadGlobalGeneric) \
120 V(LoadGlobalViaContext) \ 119 V(LoadGlobalViaContext) \
121 V(LoadKeyed) \ 120 V(LoadKeyed) \
(...skipping 4330 matching lines...) Expand 10 before | Expand all | Expand 10 after
4452 SetOperandAt(0, left); 4451 SetOperandAt(0, left);
4453 SetOperandAt(1, right); 4452 SetOperandAt(1, right);
4454 SetSuccessorAt(0, true_target); 4453 SetSuccessorAt(0, true_target);
4455 SetSuccessorAt(1, false_target); 4454 SetSuccessorAt(1, false_target);
4456 } 4455 }
4457 4456
4458 int known_successor_index_; 4457 int known_successor_index_;
4459 }; 4458 };
4460 4459
4461 4460
4462 class HIsObjectAndBranch final : public HUnaryControlInstruction {
4463 public:
4464 DECLARE_INSTRUCTION_FACTORY_P1(HIsObjectAndBranch, HValue*);
4465 DECLARE_INSTRUCTION_FACTORY_P3(HIsObjectAndBranch, HValue*,
4466 HBasicBlock*, HBasicBlock*);
4467
4468 Representation RequiredInputRepresentation(int index) override {
4469 return Representation::Tagged();
4470 }
4471
4472 bool KnownSuccessorBlock(HBasicBlock** block) override;
4473
4474 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch)
4475
4476 private:
4477 HIsObjectAndBranch(HValue* value,
4478 HBasicBlock* true_target = NULL,
4479 HBasicBlock* false_target = NULL)
4480 : HUnaryControlInstruction(value, true_target, false_target) {}
4481 };
4482
4483
4484 class HIsStringAndBranch final : public HUnaryControlInstruction { 4461 class HIsStringAndBranch final : public HUnaryControlInstruction {
4485 public: 4462 public:
4486 DECLARE_INSTRUCTION_FACTORY_P1(HIsStringAndBranch, HValue*); 4463 DECLARE_INSTRUCTION_FACTORY_P1(HIsStringAndBranch, HValue*);
4487 DECLARE_INSTRUCTION_FACTORY_P3(HIsStringAndBranch, HValue*, 4464 DECLARE_INSTRUCTION_FACTORY_P3(HIsStringAndBranch, HValue*,
4488 HBasicBlock*, HBasicBlock*); 4465 HBasicBlock*, HBasicBlock*);
4489 4466
4490 Representation RequiredInputRepresentation(int index) override { 4467 Representation RequiredInputRepresentation(int index) override {
4491 return Representation::Tagged(); 4468 return Representation::Tagged();
4492 } 4469 }
4493 4470
(...skipping 3570 matching lines...) Expand 10 before | Expand all | Expand 10 after
8064 }; 8041 };
8065 8042
8066 8043
8067 8044
8068 #undef DECLARE_INSTRUCTION 8045 #undef DECLARE_INSTRUCTION
8069 #undef DECLARE_CONCRETE_INSTRUCTION 8046 #undef DECLARE_CONCRETE_INSTRUCTION
8070 8047
8071 } } // namespace v8::internal 8048 } } // namespace v8::internal
8072 8049
8073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 8050 #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