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 3796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3807 context()->Plug(v0); | 3807 context()->Plug(v0); |
3808 } | 3808 } |
3809 | 3809 |
3810 | 3810 |
3811 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { | 3811 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
3812 RegExpConstructResultStub stub; | 3812 RegExpConstructResultStub stub; |
3813 ZoneList<Expression*>* args = expr->arguments(); | 3813 ZoneList<Expression*>* args = expr->arguments(); |
3814 ASSERT(args->length() == 3); | 3814 ASSERT(args->length() == 3); |
3815 VisitForStackValue(args->at(0)); | 3815 VisitForStackValue(args->at(0)); |
3816 VisitForStackValue(args->at(1)); | 3816 VisitForStackValue(args->at(1)); |
3817 VisitForStackValue(args->at(2)); | 3817 VisitForAccumulatorValue(args->at(2)); |
| 3818 __ pop(a1); |
| 3819 __ pop(a2); |
3818 __ CallStub(&stub); | 3820 __ CallStub(&stub); |
3819 context()->Plug(v0); | 3821 context()->Plug(v0); |
3820 } | 3822 } |
3821 | 3823 |
3822 | 3824 |
3823 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { | 3825 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { |
3824 ZoneList<Expression*>* args = expr->arguments(); | 3826 ZoneList<Expression*>* args = expr->arguments(); |
3825 ASSERT_EQ(2, args->length()); | 3827 ASSERT_EQ(2, args->length()); |
3826 | 3828 |
3827 ASSERT_NE(NULL, args->at(0)->AsLiteral()); | 3829 ASSERT_NE(NULL, args->at(0)->AsLiteral()); |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4961 Assembler::target_address_at(pc_immediate_load_address)) == | 4963 Assembler::target_address_at(pc_immediate_load_address)) == |
4962 reinterpret_cast<uint32_t>( | 4964 reinterpret_cast<uint32_t>( |
4963 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4965 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4964 return OSR_AFTER_STACK_CHECK; | 4966 return OSR_AFTER_STACK_CHECK; |
4965 } | 4967 } |
4966 | 4968 |
4967 | 4969 |
4968 } } // namespace v8::internal | 4970 } } // namespace v8::internal |
4969 | 4971 |
4970 #endif // V8_TARGET_ARCH_MIPS | 4972 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |