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 4759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5808 __ Subu(scratch, result, scratch); | 5803 __ Subu(scratch, result, scratch); |
5809 __ lw(result, FieldMemOperand(scratch, | 5804 __ lw(result, FieldMemOperand(scratch, |
5810 FixedArray::kHeaderSize - kPointerSize)); | 5805 FixedArray::kHeaderSize - kPointerSize)); |
5811 __ bind(&done); | 5806 __ bind(&done); |
5812 } | 5807 } |
5813 | 5808 |
5814 | 5809 |
5815 #undef __ | 5810 #undef __ |
5816 | 5811 |
5817 } } // namespace v8::internal | 5812 } } // namespace v8::internal |
OLD | NEW |