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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: rebase and move cmpxchg to builtins-sharedarraybuffer-gen.cc Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compiler/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 MarkAsRepresentation(type.representation(), node); 1456 MarkAsRepresentation(type.representation(), node);
1457 return VisitAtomicLoad(node); 1457 return VisitAtomicLoad(node);
1458 } 1458 }
1459 case IrOpcode::kAtomicStore: 1459 case IrOpcode::kAtomicStore:
1460 return VisitAtomicStore(node); 1460 return VisitAtomicStore(node);
1461 case IrOpcode::kAtomicExchange: { 1461 case IrOpcode::kAtomicExchange: {
1462 MachineType type = AtomicExchangeRepresentationOf(node->op()); 1462 MachineType type = AtomicExchangeRepresentationOf(node->op());
1463 MarkAsRepresentation(type.representation(), node); 1463 MarkAsRepresentation(type.representation(), node);
1464 return VisitAtomicExchange(node); 1464 return VisitAtomicExchange(node);
1465 } 1465 }
1466 case IrOpcode::kAtomicCompareExchange: {
1467 MachineType type = AtomicCompareExchangeRepresentationOf(node->op());
1468 MarkAsRepresentation(type.representation(), node);
1469 return VisitAtomicCompareExchange(node);
1470 }
1466 case IrOpcode::kProtectedLoad: { 1471 case IrOpcode::kProtectedLoad: {
1467 LoadRepresentation type = LoadRepresentationOf(node->op()); 1472 LoadRepresentation type = LoadRepresentationOf(node->op());
1468 MarkAsRepresentation(type.representation(), node); 1473 MarkAsRepresentation(type.representation(), node);
1469 return VisitProtectedLoad(node); 1474 return VisitProtectedLoad(node);
1470 } 1475 }
1471 case IrOpcode::kUnsafePointerAdd: 1476 case IrOpcode::kUnsafePointerAdd:
1472 MarkAsRepresentation(MachineType::PointerRepresentation(), node); 1477 MarkAsRepresentation(MachineType::PointerRepresentation(), node);
1473 return VisitUnsafePointerAdd(node); 1478 return VisitUnsafePointerAdd(node);
1474 case IrOpcode::kFloat32x4Splat: 1479 case IrOpcode::kFloat32x4Splat:
1475 return MarkAsSimd128(node), VisitFloat32x4Splat(node); 1480 return MarkAsSimd128(node), VisitFloat32x4Splat(node);
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 return new (instruction_zone()) FrameStateDescriptor( 2744 return new (instruction_zone()) FrameStateDescriptor(
2740 instruction_zone(), state_info.type(), state_info.bailout_id(), 2745 instruction_zone(), state_info.type(), state_info.bailout_id(),
2741 state_info.state_combine(), parameters, locals, stack, 2746 state_info.state_combine(), parameters, locals, stack,
2742 state_info.shared_info(), outer_state); 2747 state_info.shared_info(), outer_state);
2743 } 2748 }
2744 2749
2745 2750
2746 } // namespace compiler 2751 } // namespace compiler
2747 } // namespace internal 2752 } // namespace internal
2748 } // namespace v8 2753 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698