| 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 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 
| 6 | 6 | 
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" | 
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" | 
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" | 
| 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 965 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { | 965 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { | 
| 966   DoGap(instr); | 966   DoGap(instr); | 
| 967 } | 967 } | 
| 968 | 968 | 
| 969 | 969 | 
| 970 void LCodeGen::DoParameter(LParameter* instr) { | 970 void LCodeGen::DoParameter(LParameter* instr) { | 
| 971   // Nothing to do. | 971   // Nothing to do. | 
| 972 } | 972 } | 
| 973 | 973 | 
| 974 | 974 | 
| 975 void LCodeGen::DoCallStub(LCallStub* instr) { |  | 
| 976   DCHECK(ToRegister(instr->context()).is(cp)); |  | 
| 977   DCHECK(ToRegister(instr->result()).is(r0)); |  | 
| 978   switch (instr->hydrogen()->major_key()) { |  | 
| 979     case CodeStub::RegExpExec: { |  | 
| 980       RegExpExecStub stub(isolate()); |  | 
| 981       CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |  | 
| 982       break; |  | 
| 983     } |  | 
| 984     case CodeStub::SubString: { |  | 
| 985       SubStringStub stub(isolate()); |  | 
| 986       CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |  | 
| 987       break; |  | 
| 988     } |  | 
| 989     default: |  | 
| 990       UNREACHABLE(); |  | 
| 991   } |  | 
| 992 } |  | 
| 993 |  | 
| 994 |  | 
| 995 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 975 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 
| 996   GenerateOsrPrologue(); | 976   GenerateOsrPrologue(); | 
| 997 } | 977 } | 
| 998 | 978 | 
| 999 | 979 | 
| 1000 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { | 980 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { | 
| 1001   Register dividend = ToRegister(instr->dividend()); | 981   Register dividend = ToRegister(instr->dividend()); | 
| 1002   int32_t divisor = instr->divisor(); | 982   int32_t divisor = instr->divisor(); | 
| 1003   DCHECK(dividend.is(ToRegister(instr->result()))); | 983   DCHECK(dividend.is(ToRegister(instr->result()))); | 
| 1004 | 984 | 
| (...skipping 4550 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5555   __ push(ToRegister(instr->function())); | 5535   __ push(ToRegister(instr->function())); | 
| 5556   CallRuntime(Runtime::kPushBlockContext, instr); | 5536   CallRuntime(Runtime::kPushBlockContext, instr); | 
| 5557   RecordSafepoint(Safepoint::kNoLazyDeopt); | 5537   RecordSafepoint(Safepoint::kNoLazyDeopt); | 
| 5558 } | 5538 } | 
| 5559 | 5539 | 
| 5560 | 5540 | 
| 5561 #undef __ | 5541 #undef __ | 
| 5562 | 5542 | 
| 5563 }  // namespace internal | 5543 }  // namespace internal | 
| 5564 }  // namespace v8 | 5544 }  // namespace v8 | 
| OLD | NEW | 
|---|