Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 141703018: Turn RegExpConstructResultStub into a HydrogenCodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 4969 matching lines...) Expand 10 before | Expand all | Expand 10 after
6324 FixedArray::kHeaderSize - kPointerSize)); 6319 FixedArray::kHeaderSize - kPointerSize));
6325 __ bind(&done); 6320 __ bind(&done);
6326 } 6321 }
6327 6322
6328 6323
6329 #undef __ 6324 #undef __
6330 6325
6331 } } // namespace v8::internal 6326 } } // namespace v8::internal
6332 6327
6333 #endif // V8_TARGET_ARCH_IA32 6328 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698