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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { | 899 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { |
900 DoGap(instr); | 900 DoGap(instr); |
901 } | 901 } |
902 | 902 |
903 | 903 |
904 void LCodeGen::DoParameter(LParameter* instr) { | 904 void LCodeGen::DoParameter(LParameter* instr) { |
905 // Nothing to do. | 905 // Nothing to do. |
906 } | 906 } |
907 | 907 |
908 | 908 |
909 void LCodeGen::DoCallStub(LCallStub* instr) { | |
910 DCHECK(ToRegister(instr->context()).is(rsi)); | |
911 DCHECK(ToRegister(instr->result()).is(rax)); | |
912 switch (instr->hydrogen()->major_key()) { | |
913 case CodeStub::RegExpExec: { | |
914 RegExpExecStub stub(isolate()); | |
915 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
916 break; | |
917 } | |
918 case CodeStub::SubString: { | |
919 SubStringStub stub(isolate()); | |
920 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
921 break; | |
922 } | |
923 default: | |
924 UNREACHABLE(); | |
925 } | |
926 } | |
927 | |
928 | |
929 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 909 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { |
930 GenerateOsrPrologue(); | 910 GenerateOsrPrologue(); |
931 } | 911 } |
932 | 912 |
933 | 913 |
934 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { | 914 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { |
935 Register dividend = ToRegister(instr->dividend()); | 915 Register dividend = ToRegister(instr->dividend()); |
936 int32_t divisor = instr->divisor(); | 916 int32_t divisor = instr->divisor(); |
937 DCHECK(dividend.is(ToRegister(instr->result()))); | 917 DCHECK(dividend.is(ToRegister(instr->result()))); |
938 | 918 |
(...skipping 4675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5614 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5594 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5615 } | 5595 } |
5616 | 5596 |
5617 | 5597 |
5618 #undef __ | 5598 #undef __ |
5619 | 5599 |
5620 } // namespace internal | 5600 } // namespace internal |
5621 } // namespace v8 | 5601 } // namespace v8 |
5622 | 5602 |
5623 #endif // V8_TARGET_ARCH_X64 | 5603 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |