 Chromium Code Reviews
 Chromium Code Reviews Issue 1617503003:
  [Atomics] code stubs for atomic operations  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1617503003:
  [Atomics] code stubs for atomic operations  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| OLD | NEW | 
|---|---|
| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 | 
| 6 | 6 | 
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 
| 8 | 8 | 
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" | 
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" | 
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 920 case CodeStub::RegExpExec: { | 920 case CodeStub::RegExpExec: { | 
| 921 RegExpExecStub stub(isolate()); | 921 RegExpExecStub stub(isolate()); | 
| 922 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 922 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 
| 923 break; | 923 break; | 
| 924 } | 924 } | 
| 925 case CodeStub::SubString: { | 925 case CodeStub::SubString: { | 
| 926 SubStringStub stub(isolate()); | 926 SubStringStub stub(isolate()); | 
| 927 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 927 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 
| 928 break; | 928 break; | 
| 929 } | 929 } | 
| 930 case CodeStub::AtomicsLoad: { | |
| 
Jarin
2016/01/28 08:11:12
You should not need this if you used HCallWithDesr
 
binji
2016/01/28 16:20:01
Done.
 | |
| 931 // TODO(binji): better way to do this? | |
| 932 AtomicsLoadDescriptor descriptor(isolate()); | |
| 933 DCHECK(descriptor.GetRegisterParameterCount() == 2); | |
| 934 __ Pop(descriptor.GetRegisterParameter(1)); | |
| 935 __ Pop(descriptor.GetRegisterParameter(0)); | |
| 936 AtomicsLoadStub stub(isolate()); | |
| 937 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 938 break; | |
| 939 } | |
| 930 default: | 940 default: | 
| 931 UNREACHABLE(); | 941 UNREACHABLE(); | 
| 932 } | 942 } | 
| 933 } | 943 } | 
| 934 | 944 | 
| 935 | 945 | 
| 936 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 946 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 
| 937 GenerateOsrPrologue(); | 947 GenerateOsrPrologue(); | 
| 938 } | 948 } | 
| 939 | 949 | 
| (...skipping 4702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5642 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5652 RecordSafepoint(Safepoint::kNoLazyDeopt); | 
| 5643 } | 5653 } | 
| 5644 | 5654 | 
| 5645 | 5655 | 
| 5646 #undef __ | 5656 #undef __ | 
| 5647 | 5657 | 
| 5648 } // namespace internal | 5658 } // namespace internal | 
| 5649 } // namespace v8 | 5659 } // namespace v8 | 
| 5650 | 5660 | 
| 5651 #endif // V8_TARGET_ARCH_X64 | 5661 #endif // V8_TARGET_ARCH_X64 | 
| OLD | NEW |