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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_X64_LITHIUM_X64_H_
6 #define V8_X64_LITHIUM_X64_H_ 6 #define V8_X64_LITHIUM_X64_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(Goto) \ 84 V(Goto) \
85 V(HasCachedArrayIndexAndBranch) \ 85 V(HasCachedArrayIndexAndBranch) \
86 V(HasInPrototypeChainAndBranch) \ 86 V(HasInPrototypeChainAndBranch) \
87 V(HasInstanceTypeAndBranch) \ 87 V(HasInstanceTypeAndBranch) \
88 V(InnerAllocatedObject) \ 88 V(InnerAllocatedObject) \
89 V(InstanceOf) \ 89 V(InstanceOf) \
90 V(InstructionGap) \ 90 V(InstructionGap) \
91 V(Integer32ToDouble) \ 91 V(Integer32ToDouble) \
92 V(InvokeFunction) \ 92 V(InvokeFunction) \
93 V(IsConstructCallAndBranch) \ 93 V(IsConstructCallAndBranch) \
94 V(IsObjectAndBranch) \
95 V(IsStringAndBranch) \ 94 V(IsStringAndBranch) \
96 V(IsSmiAndBranch) \ 95 V(IsSmiAndBranch) \
97 V(IsUndetectableAndBranch) \ 96 V(IsUndetectableAndBranch) \
98 V(Label) \ 97 V(Label) \
99 V(LazyBailout) \ 98 V(LazyBailout) \
100 V(LoadContextSlot) \ 99 V(LoadContextSlot) \
101 V(LoadRoot) \ 100 V(LoadRoot) \
102 V(LoadFieldByIndex) \ 101 V(LoadFieldByIndex) \
103 V(LoadFunctionPrototype) \ 102 V(LoadFunctionPrototype) \
104 V(LoadGlobalGeneric) \ 103 V(LoadGlobalGeneric) \
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 } 975 }
977 976
978 LOperand* value() { return inputs_[0]; } 977 LOperand* value() { return inputs_[0]; }
979 978
980 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, 979 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
981 "cmp-minus-zero-and-branch") 980 "cmp-minus-zero-and-branch")
982 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) 981 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
983 }; 982 };
984 983
985 984
986 class LIsObjectAndBranch final : public LControlInstruction<1, 0> {
987 public:
988 explicit LIsObjectAndBranch(LOperand* value) {
989 inputs_[0] = value;
990 }
991
992 LOperand* value() { return inputs_[0]; }
993
994 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
995 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
996
997 void PrintDataTo(StringStream* stream) override;
998 };
999
1000
1001 class LIsStringAndBranch final : public LControlInstruction<1, 1> { 985 class LIsStringAndBranch final : public LControlInstruction<1, 1> {
1002 public: 986 public:
1003 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { 987 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
1004 inputs_[0] = value; 988 inputs_[0] = value;
1005 temps_[0] = temp; 989 temps_[0] = temp;
1006 } 990 }
1007 991
1008 LOperand* value() { return inputs_[0]; } 992 LOperand* value() { return inputs_[0]; }
1009 LOperand* temp() { return temps_[0]; } 993 LOperand* temp() { return temps_[0]; }
1010 994
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 2867
2884 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2885 }; 2869 };
2886 2870
2887 #undef DECLARE_HYDROGEN_ACCESSOR 2871 #undef DECLARE_HYDROGEN_ACCESSOR
2888 #undef DECLARE_CONCRETE_INSTRUCTION 2872 #undef DECLARE_CONCRETE_INSTRUCTION
2889 2873
2890 } } // namespace v8::int 2874 } } // namespace v8::int
2891 2875
2892 #endif // V8_X64_LITHIUM_X64_H_ 2876 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698