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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 1001
1003 LOperand* value() { return inputs_[0]; } 1002 LOperand* value() { return inputs_[0]; }
1004 LOperand* temp() { return temps_[0]; } 1003 LOperand* temp() { return temps_[0]; }
1005 1004
1006 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, 1005 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
1007 "cmp-minus-zero-and-branch") 1006 "cmp-minus-zero-and-branch")
1008 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) 1007 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
1009 }; 1008 };
1010 1009
1011 1010
1012 class LIsObjectAndBranch final : public LControlInstruction<1, 1> {
1013 public:
1014 LIsObjectAndBranch(LOperand* value, LOperand* temp) {
1015 inputs_[0] = value;
1016 temps_[0] = temp;
1017 }
1018
1019 LOperand* value() { return inputs_[0]; }
1020 LOperand* temp() { return temps_[0]; }
1021
1022 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
1023 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
1024
1025 void PrintDataTo(StringStream* stream) override;
1026 };
1027
1028
1029 class LIsStringAndBranch final : public LControlInstruction<1, 1> { 1011 class LIsStringAndBranch final : public LControlInstruction<1, 1> {
1030 public: 1012 public:
1031 LIsStringAndBranch(LOperand* value, LOperand* temp) { 1013 LIsStringAndBranch(LOperand* value, LOperand* temp) {
1032 inputs_[0] = value; 1014 inputs_[0] = value;
1033 temps_[0] = temp; 1015 temps_[0] = temp;
1034 } 1016 }
1035 1017
1036 LOperand* value() { return inputs_[0]; } 1018 LOperand* value() { return inputs_[0]; }
1037 LOperand* temp() { return temps_[0]; } 1019 LOperand* temp() { return temps_[0]; }
1038 1020
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 2888
2907 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2908 }; 2890 };
2909 2891
2910 #undef DECLARE_HYDROGEN_ACCESSOR 2892 #undef DECLARE_HYDROGEN_ACCESSOR
2911 #undef DECLARE_CONCRETE_INSTRUCTION 2893 #undef DECLARE_CONCRETE_INSTRUCTION
2912 2894
2913 } } // namespace v8::internal 2895 } } // namespace v8::internal
2914 2896
2915 #endif // V8_ARM_LITHIUM_ARM_H_ 2897 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698