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

Side by Side Diff: src/x64/full-codegen-x64.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/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-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. 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 3489 matching lines...) Expand 10 before | Expand all | Expand 10 after
3500 3500
3501 __ bind(&done); 3501 __ bind(&done);
3502 context()->Plug(rax); 3502 context()->Plug(rax);
3503 } 3503 }
3504 3504
3505 3505
3506 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { 3506 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) {
3507 ZoneList<Expression*>* args = expr->arguments(); 3507 ZoneList<Expression*>* args = expr->arguments();
3508 ASSERT_EQ(args->length(), 1); 3508 ASSERT_EQ(args->length(), 1);
3509 3509
3510 // Load the argument on the stack and call the stub. 3510 // Load the argument into rax and call the stub.
3511 VisitForStackValue(args->at(0)); 3511 VisitForAccumulatorValue(args->at(0));
3512 3512
3513 NumberToStringStub stub; 3513 NumberToStringStub stub;
3514 __ CallStub(&stub); 3514 __ CallStub(&stub);
3515 context()->Plug(rax); 3515 context()->Plug(rax);
3516 } 3516 }
3517 3517
3518 3518
3519 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { 3519 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) {
3520 ZoneList<Expression*>* args = expr->arguments(); 3520 ZoneList<Expression*>* args = expr->arguments();
3521 ASSERT(args->length() == 1); 3521 ASSERT(args->length() == 1);
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
4955 ASSERT_EQ(kJnsOffset, *(call_target_address - 2)); 4955 ASSERT_EQ(kJnsOffset, *(call_target_address - 2));
4956 return INTERRUPT; 4956 return INTERRUPT;
4957 } 4957 }
4958 } 4958 }
4959 #endif // DEBUG 4959 #endif // DEBUG
4960 4960
4961 4961
4962 } } // namespace v8::internal 4962 } } // namespace v8::internal
4963 4963
4964 #endif // V8_TARGET_ARCH_X64 4964 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698