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

Side by Side Diff: src/mips/lithium-codegen-mips.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/mips/full-codegen-mips.cc ('k') | src/x64/code-stubs-x64.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.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
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
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
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698