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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: use TF_BUILTIN macro 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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 MarkAsRepresentation(type.representation(), node); 1453 MarkAsRepresentation(type.representation(), node);
1454 return VisitAtomicLoad(node); 1454 return VisitAtomicLoad(node);
1455 } 1455 }
1456 case IrOpcode::kAtomicStore: 1456 case IrOpcode::kAtomicStore:
1457 return VisitAtomicStore(node); 1457 return VisitAtomicStore(node);
1458 case IrOpcode::kAtomicExchange: { 1458 case IrOpcode::kAtomicExchange: {
1459 MachineType type = AtomicExchangeRepresentationOf(node->op()); 1459 MachineType type = AtomicExchangeRepresentationOf(node->op());
1460 MarkAsRepresentation(type.representation(), node); 1460 MarkAsRepresentation(type.representation(), node);
1461 return VisitAtomicExchange(node); 1461 return VisitAtomicExchange(node);
1462 } 1462 }
1463 case IrOpcode::kAtomicCompareExchange: {
1464 MachineType type = AtomicCompareExchangeRepresentationOf(node->op());
1465 MarkAsRepresentation(type.representation(), node);
1466 return VisitAtomicCompareExchange(node);
1467 }
1463 case IrOpcode::kProtectedLoad: { 1468 case IrOpcode::kProtectedLoad: {
1464 LoadRepresentation type = LoadRepresentationOf(node->op()); 1469 LoadRepresentation type = LoadRepresentationOf(node->op());
1465 MarkAsRepresentation(type.representation(), node); 1470 MarkAsRepresentation(type.representation(), node);
1466 return VisitProtectedLoad(node); 1471 return VisitProtectedLoad(node);
1467 } 1472 }
1468 case IrOpcode::kUnsafePointerAdd: 1473 case IrOpcode::kUnsafePointerAdd:
1469 MarkAsRepresentation(MachineType::PointerRepresentation(), node); 1474 MarkAsRepresentation(MachineType::PointerRepresentation(), node);
1470 return VisitUnsafePointerAdd(node); 1475 return VisitUnsafePointerAdd(node);
1471 case IrOpcode::kFloat32x4Splat: 1476 case IrOpcode::kFloat32x4Splat:
1472 return MarkAsSimd128(node), VisitFloat32x4Splat(node); 1477 return MarkAsSimd128(node), VisitFloat32x4Splat(node);
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 return new (instruction_zone()) FrameStateDescriptor( 2734 return new (instruction_zone()) FrameStateDescriptor(
2730 instruction_zone(), state_info.type(), state_info.bailout_id(), 2735 instruction_zone(), state_info.type(), state_info.bailout_id(),
2731 state_info.state_combine(), parameters, locals, stack, 2736 state_info.state_combine(), parameters, locals, stack,
2732 state_info.shared_info(), outer_state); 2737 state_info.shared_info(), outer_state);
2733 } 2738 }
2734 2739
2735 2740
2736 } // namespace compiler 2741 } // namespace compiler
2737 } // namespace internal 2742 } // namespace internal
2738 } // namespace v8 2743 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698