OLD | NEW |
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 Loading... |
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 into rax and call the stub. | 3510 // Load the argument on the stack and call the stub. |
3511 VisitForAccumulatorValue(args->at(0)); | 3511 VisitForStackValue(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 Loading... |
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 |
OLD | NEW |