| 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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 | 1024 |
| 1025 void LCodeGen::DoParameter(LParameter* instr) { | 1025 void LCodeGen::DoParameter(LParameter* instr) { |
| 1026 // Nothing to do. | 1026 // Nothing to do. |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 | 1029 |
| 1030 void LCodeGen::DoCallStub(LCallStub* instr) { | 1030 void LCodeGen::DoCallStub(LCallStub* instr) { |
| 1031 ASSERT(ToRegister(instr->context()).is(cp)); | 1031 ASSERT(ToRegister(instr->context()).is(cp)); |
| 1032 ASSERT(ToRegister(instr->result()).is(v0)); | 1032 ASSERT(ToRegister(instr->result()).is(v0)); |
| 1033 switch (instr->hydrogen()->major_key()) { | 1033 switch (instr->hydrogen()->major_key()) { |
| 1034 case CodeStub::RegExpConstructResult: { | |
| 1035 RegExpConstructResultStub stub; | |
| 1036 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | |
| 1037 break; | |
| 1038 } | |
| 1039 case CodeStub::RegExpExec: { | 1034 case CodeStub::RegExpExec: { |
| 1040 RegExpExecStub stub; | 1035 RegExpExecStub stub; |
| 1041 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1036 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 1042 break; | 1037 break; |
| 1043 } | 1038 } |
| 1044 case CodeStub::SubString: { | 1039 case CodeStub::SubString: { |
| 1045 SubStringStub stub; | 1040 SubStringStub stub; |
| 1046 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1041 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 1047 break; | 1042 break; |
| 1048 } | 1043 } |
| (...skipping 4736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5785 __ Subu(scratch, result, scratch); | 5780 __ Subu(scratch, result, scratch); |
| 5786 __ lw(result, FieldMemOperand(scratch, | 5781 __ lw(result, FieldMemOperand(scratch, |
| 5787 FixedArray::kHeaderSize - kPointerSize)); | 5782 FixedArray::kHeaderSize - kPointerSize)); |
| 5788 __ bind(&done); | 5783 __ bind(&done); |
| 5789 } | 5784 } |
| 5790 | 5785 |
| 5791 | 5786 |
| 5792 #undef __ | 5787 #undef __ |
| 5793 | 5788 |
| 5794 } } // namespace v8::internal | 5789 } } // namespace v8::internal |
| OLD | NEW |