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

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

Issue 23726041: Turn the NumberToStringStub into a hydrogen stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 7 years, 2 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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 case CodeStub::RegExpExec: { 1083 case CodeStub::RegExpExec: {
1084 RegExpExecStub stub; 1084 RegExpExecStub stub;
1085 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 1085 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
1086 break; 1086 break;
1087 } 1087 }
1088 case CodeStub::SubString: { 1088 case CodeStub::SubString: {
1089 SubStringStub stub; 1089 SubStringStub stub;
1090 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 1090 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
1091 break; 1091 break;
1092 } 1092 }
1093 case CodeStub::NumberToString: {
1094 NumberToStringStub stub;
1095 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
1096 break;
1097 }
1098 case CodeStub::StringCompare: { 1093 case CodeStub::StringCompare: {
1099 StringCompareStub stub; 1094 StringCompareStub stub;
1100 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 1095 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
1101 break; 1096 break;
1102 } 1097 }
1103 case CodeStub::TranscendentalCache: { 1098 case CodeStub::TranscendentalCache: {
1104 __ ldr(r0, MemOperand(sp, 0)); 1099 __ ldr(r0, MemOperand(sp, 0));
1105 TranscendentalCacheStub stub(instr->transcendental_type(), 1100 TranscendentalCacheStub stub(instr->transcendental_type(),
1106 TranscendentalCacheStub::TAGGED); 1101 TranscendentalCacheStub::TAGGED);
1107 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 1102 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
(...skipping 4679 matching lines...) Expand 10 before | Expand all | Expand 10 after
5787 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5782 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5788 __ ldr(result, FieldMemOperand(scratch, 5783 __ ldr(result, FieldMemOperand(scratch,
5789 FixedArray::kHeaderSize - kPointerSize)); 5784 FixedArray::kHeaderSize - kPointerSize));
5790 __ bind(&done); 5785 __ bind(&done);
5791 } 5786 }
5792 5787
5793 5788
5794 #undef __ 5789 #undef __
5795 5790
5796 } } // namespace v8::internal 5791 } } // 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