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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/full-codegen-arm.cc ('k') | src/code-stubs.h » ('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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 4697 matching lines...) Expand 10 before | Expand all | Expand 10 after
5795 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5790 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5796 __ ldr(result, FieldMemOperand(scratch, 5791 __ ldr(result, FieldMemOperand(scratch,
5797 FixedArray::kHeaderSize - kPointerSize)); 5792 FixedArray::kHeaderSize - kPointerSize));
5798 __ bind(&done); 5793 __ bind(&done);
5799 } 5794 }
5800 5795
5801 5796
5802 #undef __ 5797 #undef __
5803 5798
5804 } } // namespace v8::internal 5799 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698