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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.h

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/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_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 V(FlooringDivByPowerOf2I) \ 75 V(FlooringDivByPowerOf2I) \
76 V(FlooringDivI) \ 76 V(FlooringDivI) \
77 V(ForInCacheArray) \ 77 V(ForInCacheArray) \
78 V(ForInPrepareMap) \ 78 V(ForInPrepareMap) \
79 V(GetCachedArrayIndex) \ 79 V(GetCachedArrayIndex) \
80 V(Goto) \ 80 V(Goto) \
81 V(HasCachedArrayIndexAndBranch) \ 81 V(HasCachedArrayIndexAndBranch) \
82 V(HasInPrototypeChainAndBranch) \ 82 V(HasInPrototypeChainAndBranch) \
83 V(HasInstanceTypeAndBranch) \ 83 V(HasInstanceTypeAndBranch) \
84 V(InnerAllocatedObject) \ 84 V(InnerAllocatedObject) \
85 V(InstanceOf) \
86 V(InstructionGap) \ 85 V(InstructionGap) \
87 V(Integer32ToDouble) \ 86 V(Integer32ToDouble) \
88 V(InvokeFunction) \ 87 V(InvokeFunction) \
89 V(IsSmiAndBranch) \ 88 V(IsSmiAndBranch) \
90 V(IsStringAndBranch) \ 89 V(IsStringAndBranch) \
91 V(IsUndetectableAndBranch) \ 90 V(IsUndetectableAndBranch) \
92 V(Label) \ 91 V(Label) \
93 V(LazyBailout) \ 92 V(LazyBailout) \
94 V(LoadContextSlot) \ 93 V(LoadContextSlot) \
95 V(LoadFieldByIndex) \ 94 V(LoadFieldByIndex) \
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 1370
1372 LOperand* base_object() const { return inputs_[0]; } 1371 LOperand* base_object() const { return inputs_[0]; }
1373 LOperand* offset() const { return inputs_[1]; } 1372 LOperand* offset() const { return inputs_[1]; }
1374 1373
1375 void PrintDataTo(StringStream* stream) override; 1374 void PrintDataTo(StringStream* stream) override;
1376 1375
1377 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "inner-allocated-object") 1376 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "inner-allocated-object")
1378 }; 1377 };
1379 1378
1380 1379
1381 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1382 public:
1383 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1384 inputs_[0] = context;
1385 inputs_[1] = left;
1386 inputs_[2] = right;
1387 }
1388
1389 LOperand* context() const { return inputs_[0]; }
1390 LOperand* left() const { return inputs_[1]; }
1391 LOperand* right() const { return inputs_[2]; }
1392
1393 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
1394 };
1395
1396
1397 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 2> { 1380 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 2> {
1398 public: 1381 public:
1399 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype, 1382 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype,
1400 LOperand* scratch1, LOperand* scratch2) { 1383 LOperand* scratch1, LOperand* scratch2) {
1401 inputs_[0] = object; 1384 inputs_[0] = object;
1402 inputs_[1] = prototype; 1385 inputs_[1] = prototype;
1403 temps_[0] = scratch1; 1386 temps_[0] = scratch1;
1404 temps_[1] = scratch2; 1387 temps_[1] = scratch2;
1405 } 1388 }
1406 1389
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3024 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3042 }; 3025 };
3043 3026
3044 #undef DECLARE_HYDROGEN_ACCESSOR 3027 #undef DECLARE_HYDROGEN_ACCESSOR
3045 #undef DECLARE_CONCRETE_INSTRUCTION 3028 #undef DECLARE_CONCRETE_INSTRUCTION
3046 3029
3047 } // namespace internal 3030 } // namespace internal
3048 } // namespace v8 3031 } // namespace v8
3049 3032
3050 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3033 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698