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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: dmb 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/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/compiler-source-position-table.h" 10 #include "src/compiler/compiler-source-position-table.h"
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 MarkAsRepresentation(type.representation(), node); 1447 MarkAsRepresentation(type.representation(), node);
1448 return VisitAtomicLoad(node); 1448 return VisitAtomicLoad(node);
1449 } 1449 }
1450 case IrOpcode::kAtomicStore: 1450 case IrOpcode::kAtomicStore:
1451 return VisitAtomicStore(node); 1451 return VisitAtomicStore(node);
1452 case IrOpcode::kAtomicExchange: { 1452 case IrOpcode::kAtomicExchange: {
1453 MachineType type = AtomicExchangeRepresentationOf(node->op()); 1453 MachineType type = AtomicExchangeRepresentationOf(node->op());
1454 MarkAsRepresentation(type.representation(), node); 1454 MarkAsRepresentation(type.representation(), node);
1455 return VisitAtomicExchange(node); 1455 return VisitAtomicExchange(node);
1456 } 1456 }
1457 case IrOpcode::kAtomicCompareExchange: {
1458 MachineType type = AtomicCompareExchangeRepresentationOf(node->op());
1459 MarkAsRepresentation(type.representation(), node);
1460 return VisitAtomicCompareExchange(node);
1461 }
1457 case IrOpcode::kProtectedLoad: { 1462 case IrOpcode::kProtectedLoad: {
1458 LoadRepresentation type = LoadRepresentationOf(node->op()); 1463 LoadRepresentation type = LoadRepresentationOf(node->op());
1459 MarkAsRepresentation(type.representation(), node); 1464 MarkAsRepresentation(type.representation(), node);
1460 return VisitProtectedLoad(node); 1465 return VisitProtectedLoad(node);
1461 } 1466 }
1462 case IrOpcode::kUnsafePointerAdd: 1467 case IrOpcode::kUnsafePointerAdd:
1463 MarkAsRepresentation(MachineType::PointerRepresentation(), node); 1468 MarkAsRepresentation(MachineType::PointerRepresentation(), node);
1464 return VisitUnsafePointerAdd(node); 1469 return VisitUnsafePointerAdd(node);
1465 case IrOpcode::kFloat32x4Splat: 1470 case IrOpcode::kFloat32x4Splat:
1466 return MarkAsSimd128(node), VisitFloat32x4Splat(node); 1471 return MarkAsSimd128(node), VisitFloat32x4Splat(node);
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 return new (instruction_zone()) FrameStateDescriptor( 2637 return new (instruction_zone()) FrameStateDescriptor(
2633 instruction_zone(), state_info.type(), state_info.bailout_id(), 2638 instruction_zone(), state_info.type(), state_info.bailout_id(),
2634 state_info.state_combine(), parameters, locals, stack, 2639 state_info.state_combine(), parameters, locals, stack,
2635 state_info.shared_info(), outer_state); 2640 state_info.shared_info(), outer_state);
2636 } 2641 }
2637 2642
2638 2643
2639 } // namespace compiler 2644 } // namespace compiler
2640 } // namespace internal 2645 } // namespace internal
2641 } // namespace v8 2646 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698