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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 | 1330 |
1331 void LCodeGen::DoParameter(LParameter* instr) { | 1331 void LCodeGen::DoParameter(LParameter* instr) { |
1332 // Nothing to do. | 1332 // Nothing to do. |
1333 } | 1333 } |
1334 | 1334 |
1335 | 1335 |
1336 void LCodeGen::DoCallStub(LCallStub* instr) { | 1336 void LCodeGen::DoCallStub(LCallStub* instr) { |
1337 ASSERT(ToRegister(instr->context()).is(esi)); | 1337 ASSERT(ToRegister(instr->context()).is(esi)); |
1338 ASSERT(ToRegister(instr->result()).is(eax)); | 1338 ASSERT(ToRegister(instr->result()).is(eax)); |
1339 switch (instr->hydrogen()->major_key()) { | 1339 switch (instr->hydrogen()->major_key()) { |
1340 case CodeStub::RegExpConstructResult: { | |
1341 RegExpConstructResultStub stub; | |
1342 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | |
1343 break; | |
1344 } | |
1345 case CodeStub::RegExpExec: { | 1340 case CodeStub::RegExpExec: { |
1346 RegExpExecStub stub; | 1341 RegExpExecStub stub; |
1347 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1342 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
1348 break; | 1343 break; |
1349 } | 1344 } |
1350 case CodeStub::SubString: { | 1345 case CodeStub::SubString: { |
1351 SubStringStub stub; | 1346 SubStringStub stub; |
1352 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1347 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
1353 break; | 1348 break; |
1354 } | 1349 } |
(...skipping 4993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6348 FixedArray::kHeaderSize - kPointerSize)); | 6343 FixedArray::kHeaderSize - kPointerSize)); |
6349 __ bind(&done); | 6344 __ bind(&done); |
6350 } | 6345 } |
6351 | 6346 |
6352 | 6347 |
6353 #undef __ | 6348 #undef __ |
6354 | 6349 |
6355 } } // namespace v8::internal | 6350 } } // namespace v8::internal |
6356 | 6351 |
6357 #endif // V8_TARGET_ARCH_IA32 | 6352 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |