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 3675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3686 context()->Plug(rax); | 3686 context()->Plug(rax); |
3687 } | 3687 } |
3688 | 3688 |
3689 | 3689 |
3690 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { | 3690 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
3691 RegExpConstructResultStub stub; | 3691 RegExpConstructResultStub stub; |
3692 ZoneList<Expression*>* args = expr->arguments(); | 3692 ZoneList<Expression*>* args = expr->arguments(); |
3693 ASSERT(args->length() == 3); | 3693 ASSERT(args->length() == 3); |
3694 VisitForStackValue(args->at(0)); | 3694 VisitForStackValue(args->at(0)); |
3695 VisitForStackValue(args->at(1)); | 3695 VisitForStackValue(args->at(1)); |
3696 VisitForStackValue(args->at(2)); | 3696 VisitForAccumulatorValue(args->at(2)); |
| 3697 __ pop(rbx); |
| 3698 __ pop(rcx); |
3697 __ CallStub(&stub); | 3699 __ CallStub(&stub); |
3698 context()->Plug(rax); | 3700 context()->Plug(rax); |
3699 } | 3701 } |
3700 | 3702 |
3701 | 3703 |
3702 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { | 3704 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { |
3703 ZoneList<Expression*>* args = expr->arguments(); | 3705 ZoneList<Expression*>* args = expr->arguments(); |
3704 ASSERT_EQ(2, args->length()); | 3706 ASSERT_EQ(2, args->length()); |
3705 | 3707 |
3706 ASSERT_NE(NULL, args->at(0)->AsLiteral()); | 3708 ASSERT_NE(NULL, args->at(0)->AsLiteral()); |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4893 | 4895 |
4894 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4896 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4895 Assembler::target_address_at(call_target_address)); | 4897 Assembler::target_address_at(call_target_address)); |
4896 return OSR_AFTER_STACK_CHECK; | 4898 return OSR_AFTER_STACK_CHECK; |
4897 } | 4899 } |
4898 | 4900 |
4899 | 4901 |
4900 } } // namespace v8::internal | 4902 } } // namespace v8::internal |
4901 | 4903 |
4902 #endif // V8_TARGET_ARCH_X64 | 4904 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |