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

Side by Side Diff: src/arm64/lithium-arm64.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/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_
6 #define V8_ARM64_LITHIUM_ARM64_H_ 6 #define V8_ARM64_LITHIUM_ARM64_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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 V(Goto) \ 87 V(Goto) \
88 V(HasCachedArrayIndexAndBranch) \ 88 V(HasCachedArrayIndexAndBranch) \
89 V(HasInPrototypeChainAndBranch) \ 89 V(HasInPrototypeChainAndBranch) \
90 V(HasInstanceTypeAndBranch) \ 90 V(HasInstanceTypeAndBranch) \
91 V(InnerAllocatedObject) \ 91 V(InnerAllocatedObject) \
92 V(InstanceOf) \ 92 V(InstanceOf) \
93 V(InstructionGap) \ 93 V(InstructionGap) \
94 V(Integer32ToDouble) \ 94 V(Integer32ToDouble) \
95 V(InvokeFunction) \ 95 V(InvokeFunction) \
96 V(IsConstructCallAndBranch) \ 96 V(IsConstructCallAndBranch) \
97 V(IsObjectAndBranch) \
98 V(IsSmiAndBranch) \ 97 V(IsSmiAndBranch) \
99 V(IsStringAndBranch) \ 98 V(IsStringAndBranch) \
100 V(IsUndetectableAndBranch) \ 99 V(IsUndetectableAndBranch) \
101 V(Label) \ 100 V(Label) \
102 V(LazyBailout) \ 101 V(LazyBailout) \
103 V(LoadContextSlot) \ 102 V(LoadContextSlot) \
104 V(LoadFieldByIndex) \ 103 V(LoadFieldByIndex) \
105 V(LoadFunctionPrototype) \ 104 V(LoadFunctionPrototype) \
106 V(LoadGlobalGeneric) \ 105 V(LoadGlobalGeneric) \
107 V(LoadGlobalViaContext) \ 106 V(LoadGlobalViaContext) \
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 } 1587 }
1589 1588
1590 LOperand* temp1() { return temps_[0]; } 1589 LOperand* temp1() { return temps_[0]; }
1591 LOperand* temp2() { return temps_[1]; } 1590 LOperand* temp2() { return temps_[1]; }
1592 1591
1593 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, 1592 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
1594 "is-construct-call-and-branch") 1593 "is-construct-call-and-branch")
1595 }; 1594 };
1596 1595
1597 1596
1598 class LIsObjectAndBranch final : public LControlInstruction<1, 2> {
1599 public:
1600 LIsObjectAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) {
1601 inputs_[0] = value;
1602 temps_[0] = temp1;
1603 temps_[1] = temp2;
1604 }
1605
1606 LOperand* value() { return inputs_[0]; }
1607 LOperand* temp1() { return temps_[0]; }
1608 LOperand* temp2() { return temps_[1]; }
1609
1610 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
1611 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch)
1612
1613 void PrintDataTo(StringStream* stream) override;
1614 };
1615
1616
1617 class LIsStringAndBranch final : public LControlInstruction<1, 1> { 1597 class LIsStringAndBranch final : public LControlInstruction<1, 1> {
1618 public: 1598 public:
1619 LIsStringAndBranch(LOperand* value, LOperand* temp) { 1599 LIsStringAndBranch(LOperand* value, LOperand* temp) {
1620 inputs_[0] = value; 1600 inputs_[0] = value;
1621 temps_[0] = temp; 1601 temps_[0] = temp;
1622 } 1602 }
1623 1603
1624 LOperand* value() { return inputs_[0]; } 1604 LOperand* value() { return inputs_[0]; }
1625 LOperand* temp() { return temps_[0]; } 1605 LOperand* temp() { return temps_[0]; }
1626 1606
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 3257
3278 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3258 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3279 }; 3259 };
3280 3260
3281 #undef DECLARE_HYDROGEN_ACCESSOR 3261 #undef DECLARE_HYDROGEN_ACCESSOR
3282 #undef DECLARE_CONCRETE_INSTRUCTION 3262 #undef DECLARE_CONCRETE_INSTRUCTION
3283 3263
3284 } } // namespace v8::internal 3264 } } // namespace v8::internal
3285 3265
3286 #endif // V8_ARM64_LITHIUM_ARM64_H_ 3266 #endif // V8_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698