| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1073 |
| 1074 void LCodeGen::DoParameter(LParameter* instr) { | 1074 void LCodeGen::DoParameter(LParameter* instr) { |
| 1075 // Nothing to do. | 1075 // Nothing to do. |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 | 1078 |
| 1079 void LCodeGen::DoCallStub(LCallStub* instr) { | 1079 void LCodeGen::DoCallStub(LCallStub* instr) { |
| 1080 ASSERT(ToRegister(instr->context()).is(cp)); | 1080 ASSERT(ToRegister(instr->context()).is(cp)); |
| 1081 ASSERT(ToRegister(instr->result()).is(r0)); | 1081 ASSERT(ToRegister(instr->result()).is(r0)); |
| 1082 switch (instr->hydrogen()->major_key()) { | 1082 switch (instr->hydrogen()->major_key()) { |
| 1083 case CodeStub::RegExpConstructResult: { | |
| 1084 RegExpConstructResultStub stub; | |
| 1085 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | |
| 1086 break; | |
| 1087 } | |
| 1088 case CodeStub::RegExpExec: { | 1083 case CodeStub::RegExpExec: { |
| 1089 RegExpExecStub stub; | 1084 RegExpExecStub stub; |
| 1090 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1085 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 1091 break; | 1086 break; |
| 1092 } | 1087 } |
| 1093 case CodeStub::SubString: { | 1088 case CodeStub::SubString: { |
| 1094 SubStringStub stub; | 1089 SubStringStub stub; |
| 1095 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1090 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 1096 break; | 1091 break; |
| 1097 } | 1092 } |
| (...skipping 4720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5813 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5819 __ ldr(result, FieldMemOperand(scratch, | 5814 __ ldr(result, FieldMemOperand(scratch, |
| 5820 FixedArray::kHeaderSize - kPointerSize)); | 5815 FixedArray::kHeaderSize - kPointerSize)); |
| 5821 __ bind(&done); | 5816 __ bind(&done); |
| 5822 } | 5817 } |
| 5823 | 5818 |
| 5824 | 5819 |
| 5825 #undef __ | 5820 #undef __ |
| 5826 | 5821 |
| 5827 } } // namespace v8::internal | 5822 } } // namespace v8::internal |
| OLD | NEW |