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 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3749 context()->Plug(r0); | 3749 context()->Plug(r0); |
3750 } | 3750 } |
3751 | 3751 |
3752 | 3752 |
3753 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { | 3753 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { |
3754 RegExpConstructResultStub stub; | 3754 RegExpConstructResultStub stub; |
3755 ZoneList<Expression*>* args = expr->arguments(); | 3755 ZoneList<Expression*>* args = expr->arguments(); |
3756 ASSERT(args->length() == 3); | 3756 ASSERT(args->length() == 3); |
3757 VisitForStackValue(args->at(0)); | 3757 VisitForStackValue(args->at(0)); |
3758 VisitForStackValue(args->at(1)); | 3758 VisitForStackValue(args->at(1)); |
3759 VisitForStackValue(args->at(2)); | 3759 VisitForAccumulatorValue(args->at(2)); |
| 3760 __ pop(r1); |
| 3761 __ pop(r2); |
3760 __ CallStub(&stub); | 3762 __ CallStub(&stub); |
3761 context()->Plug(r0); | 3763 context()->Plug(r0); |
3762 } | 3764 } |
3763 | 3765 |
3764 | 3766 |
3765 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { | 3767 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { |
3766 ZoneList<Expression*>* args = expr->arguments(); | 3768 ZoneList<Expression*>* args = expr->arguments(); |
3767 ASSERT_EQ(2, args->length()); | 3769 ASSERT_EQ(2, args->length()); |
3768 ASSERT_NE(NULL, args->at(0)->AsLiteral()); | 3770 ASSERT_NE(NULL, args->at(0)->AsLiteral()); |
3769 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); | 3771 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4905 ASSERT(Memory::uint32_at(interrupt_address_pointer) == | 4907 ASSERT(Memory::uint32_at(interrupt_address_pointer) == |
4906 reinterpret_cast<uint32_t>( | 4908 reinterpret_cast<uint32_t>( |
4907 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4909 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4908 return OSR_AFTER_STACK_CHECK; | 4910 return OSR_AFTER_STACK_CHECK; |
4909 } | 4911 } |
4910 | 4912 |
4911 | 4913 |
4912 } } // namespace v8::internal | 4914 } } // namespace v8::internal |
4913 | 4915 |
4914 #endif // V8_TARGET_ARCH_ARM | 4916 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |