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

Side by Side Diff: src/compiler/mips/code-generator-mips.cc

Issue 2799863002: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor (Closed)
Patch Set: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor Created 3 years, 8 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/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 #include "src/compilation-info.h" 6 #include "src/compilation-info.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 case kAtomicExchangeInt8: 1593 case kAtomicExchangeInt8:
1594 case kAtomicExchangeUint8: 1594 case kAtomicExchangeUint8:
1595 case kAtomicExchangeInt16: 1595 case kAtomicExchangeInt16:
1596 case kAtomicExchangeUint16: 1596 case kAtomicExchangeUint16:
1597 case kAtomicExchangeWord32: 1597 case kAtomicExchangeWord32:
1598 case kAtomicCompareExchangeInt8: 1598 case kAtomicCompareExchangeInt8:
1599 case kAtomicCompareExchangeUint8: 1599 case kAtomicCompareExchangeUint8:
1600 case kAtomicCompareExchangeInt16: 1600 case kAtomicCompareExchangeInt16:
1601 case kAtomicCompareExchangeUint16: 1601 case kAtomicCompareExchangeUint16:
1602 case kAtomicCompareExchangeWord32: 1602 case kAtomicCompareExchangeWord32:
1603 case kAtomicAddInt8:
1604 case kAtomicAddUint8:
1605 case kAtomicAddInt16:
1606 case kAtomicAddUint16:
1607 case kAtomicAddWord32:
1608 case kAtomicSubInt8:
1609 case kAtomicSubUint8:
1610 case kAtomicSubInt16:
1611 case kAtomicSubUint16:
1612 case kAtomicSubWord32:
1613 case kAtomicAndInt8:
1614 case kAtomicAndUint8:
1615 case kAtomicAndInt16:
1616 case kAtomicAndUint16:
1617 case kAtomicAndWord32:
1618 case kAtomicOrInt8:
1619 case kAtomicOrUint8:
1620 case kAtomicOrInt16:
1621 case kAtomicOrUint16:
1622 case kAtomicOrWord32:
1623 case kAtomicXorInt8:
1624 case kAtomicXorUint8:
1625 case kAtomicXorInt16:
1626 case kAtomicXorUint16:
1627 case kAtomicXorWord32:
1603 UNREACHABLE(); 1628 UNREACHABLE();
1604 break; 1629 break;
1605 case kMipsS128Zero: { 1630 case kMipsS128Zero: {
1606 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); 1631 CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
1607 __ xor_v(i.OutputSimd128Register(), i.OutputSimd128Register(), 1632 __ xor_v(i.OutputSimd128Register(), i.OutputSimd128Register(),
1608 i.OutputSimd128Register()); 1633 i.OutputSimd128Register());
1609 break; 1634 break;
1610 } 1635 }
1611 case kMipsI32x4Splat: { 1636 case kMipsI32x4Splat: {
1612 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); 1637 CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 padding_size -= v8::internal::Assembler::kInstrSize; 2488 padding_size -= v8::internal::Assembler::kInstrSize;
2464 } 2489 }
2465 } 2490 }
2466 } 2491 }
2467 2492
2468 #undef __ 2493 #undef __
2469 2494
2470 } // namespace compiler 2495 } // namespace compiler
2471 } // namespace internal 2496 } // namespace internal
2472 } // namespace v8 2497 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698