| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { | 932 void LCodeGen::DoInstructionGap(LInstructionGap* instr) { |
| 933 DoGap(instr); | 933 DoGap(instr); |
| 934 } | 934 } |
| 935 | 935 |
| 936 | 936 |
| 937 void LCodeGen::DoParameter(LParameter* instr) { | 937 void LCodeGen::DoParameter(LParameter* instr) { |
| 938 // Nothing to do. | 938 // Nothing to do. |
| 939 } | 939 } |
| 940 | 940 |
| 941 | 941 |
| 942 void LCodeGen::DoCallStub(LCallStub* instr) { | |
| 943 DCHECK(ToRegister(instr->context()).is(cp)); | |
| 944 DCHECK(ToRegister(instr->result()).is(v0)); | |
| 945 switch (instr->hydrogen()->major_key()) { | |
| 946 case CodeStub::RegExpExec: { | |
| 947 RegExpExecStub stub(isolate()); | |
| 948 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 949 break; | |
| 950 } | |
| 951 case CodeStub::SubString: { | |
| 952 SubStringStub stub(isolate()); | |
| 953 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 954 break; | |
| 955 } | |
| 956 default: | |
| 957 UNREACHABLE(); | |
| 958 } | |
| 959 } | |
| 960 | |
| 961 | |
| 962 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 942 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { |
| 963 GenerateOsrPrologue(); | 943 GenerateOsrPrologue(); |
| 964 } | 944 } |
| 965 | 945 |
| 966 | 946 |
| 967 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { | 947 void LCodeGen::DoModByPowerOf2I(LModByPowerOf2I* instr) { |
| 968 Register dividend = ToRegister(instr->dividend()); | 948 Register dividend = ToRegister(instr->dividend()); |
| 969 int32_t divisor = instr->divisor(); | 949 int32_t divisor = instr->divisor(); |
| 970 DCHECK(dividend.is(ToRegister(instr->result()))); | 950 DCHECK(dividend.is(ToRegister(instr->result()))); |
| 971 | 951 |
| (...skipping 4601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5573 __ Push(at, ToRegister(instr->function())); | 5553 __ Push(at, ToRegister(instr->function())); |
| 5574 CallRuntime(Runtime::kPushBlockContext, instr); | 5554 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5575 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5555 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5576 } | 5556 } |
| 5577 | 5557 |
| 5578 | 5558 |
| 5579 #undef __ | 5559 #undef __ |
| 5580 | 5560 |
| 5581 } // namespace internal | 5561 } // namespace internal |
| 5582 } // namespace v8 | 5562 } // namespace v8 |
| OLD | NEW |