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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 24436004: MIPS: Turn the NumberToStringStub into a hydrogen stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/code-stubs-mips.cc ('k') | src/mips/lithium-codegen-mips.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 3593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3604 3604
3605 __ bind(&done); 3605 __ bind(&done);
3606 context()->Plug(v0); 3606 context()->Plug(v0);
3607 } 3607 }
3608 3608
3609 3609
3610 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { 3610 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) {
3611 ZoneList<Expression*>* args = expr->arguments(); 3611 ZoneList<Expression*>* args = expr->arguments();
3612 ASSERT_EQ(args->length(), 1); 3612 ASSERT_EQ(args->length(), 1);
3613 3613
3614 // Load the argument on the stack and call the stub. 3614 // Load the argument into a0 and call the stub.
3615 VisitForStackValue(args->at(0)); 3615 VisitForAccumulatorValue(args->at(0));
3616 __ mov(a0, result_register());
3616 3617
3617 NumberToStringStub stub; 3618 NumberToStringStub stub;
3618 __ CallStub(&stub); 3619 __ CallStub(&stub);
3619 context()->Plug(v0); 3620 context()->Plug(v0);
3620 } 3621 }
3621 3622
3622 3623
3623 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { 3624 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) {
3624 ZoneList<Expression*>* args = expr->arguments(); 3625 ZoneList<Expression*>* args = expr->arguments();
3625 ASSERT(args->length() == 1); 3626 ASSERT(args->length() == 1);
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
5003 reinterpret_cast<uint32_t>(interrupt_builtin->entry())); 5004 reinterpret_cast<uint32_t>(interrupt_builtin->entry()));
5004 return INTERRUPT; 5005 return INTERRUPT;
5005 } 5006 }
5006 } 5007 }
5007 #endif // DEBUG 5008 #endif // DEBUG
5008 5009
5009 5010
5010 } } // namespace v8::internal 5011 } } // namespace v8::internal
5011 5012
5012 #endif // V8_TARGET_ARCH_MIPS 5013 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698