| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { | 969 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { |
| 970 DoGap(instr); | 970 DoGap(instr); |
| 971 } | 971 } |
| 972 | 972 |
| 973 | 973 |
| 974 void LCodeGen::DoParameter(LParameter* instr) { | 974 void LCodeGen::DoParameter(LParameter* instr) { |
| 975 // Nothing to do. | 975 // Nothing to do. |
| 976 } | 976 } |
| 977 | 977 |
| 978 | 978 |
| 979 void LCodeGen::DoCallStub(LCallStub* instr) { | |
| 980 DCHECK(ToRegister(instr->context()).is(esi)); | |
| 981 DCHECK(ToRegister(instr->result()).is(eax)); | |
| 982 switch (instr->hydrogen()->major_key()) { | |
| 983 case CodeStub::RegExpExec: { | |
| 984 RegExpExecStub stub(isolate()); | |
| 985 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 986 break; | |
| 987 } | |
| 988 case CodeStub::SubString: { | |
| 989 SubStringStub stub(isolate()); | |
| 990 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 991 break; | |
| 992 } | |
| 993 default: | |
| 994 UNREACHABLE(); | |
| 995 } | |
| 996 } | |
| 997 | |
| 998 | |
| 999 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 979 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { |
| 1000 GenerateOsrPrologue(); | 980 GenerateOsrPrologue(); |
| 1001 } | 981 } |
| 1002 | 982 |
| 1003 | 983 |
| 1004 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { | 984 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { |
| 1005 Register dividend = ToRegister(instr->dividend()); | 985 Register dividend = ToRegister(instr->dividend()); |
| 1006 int32_t divisor = instr->divisor(); | 986 int32_t divisor = instr->divisor(); |
| 1007 DCHECK(dividend.is(ToRegister(instr->result()))); | 987 DCHECK(dividend.is(ToRegister(instr->result()))); |
| 1008 | 988 |
| (...skipping 4413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5422 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5402 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5423 } | 5403 } |
| 5424 | 5404 |
| 5425 | 5405 |
| 5426 #undef __ | 5406 #undef __ |
| 5427 | 5407 |
| 5428 } // namespace internal | 5408 } // namespace internal |
| 5429 } // namespace v8 | 5409 } // namespace v8 |
| 5430 | 5410 |
| 5431 #endif // V8_TARGET_ARCH_IA32 | 5411 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |