| 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 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3739 context()->Plug(result); | 3739 context()->Plug(result); |
| 3740 } | 3740 } |
| 3741 | 3741 |
| 3742 | 3742 |
| 3743 void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) { | 3743 void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) { |
| 3744 ZoneList<Expression*>* args = expr->arguments(); | 3744 ZoneList<Expression*>* args = expr->arguments(); |
| 3745 ASSERT_EQ(2, args->length()); | 3745 ASSERT_EQ(2, args->length()); |
| 3746 VisitForStackValue(args->at(0)); | 3746 VisitForStackValue(args->at(0)); |
| 3747 VisitForStackValue(args->at(1)); | 3747 VisitForStackValue(args->at(1)); |
| 3748 | 3748 |
| 3749 StringAddStub stub(NO_STRING_ADD_FLAGS); | 3749 StringAddStub stub(STRING_ADD_CHECK_BOTH); |
| 3750 __ CallStub(&stub); | 3750 __ CallStub(&stub); |
| 3751 context()->Plug(v0); | 3751 context()->Plug(v0); |
| 3752 } | 3752 } |
| 3753 | 3753 |
| 3754 | 3754 |
| 3755 void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) { | 3755 void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) { |
| 3756 ZoneList<Expression*>* args = expr->arguments(); | 3756 ZoneList<Expression*>* args = expr->arguments(); |
| 3757 ASSERT_EQ(2, args->length()); | 3757 ASSERT_EQ(2, args->length()); |
| 3758 | 3758 |
| 3759 VisitForStackValue(args->at(0)); | 3759 VisitForStackValue(args->at(0)); |
| (...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4946 *context_length = 0; | 4946 *context_length = 0; |
| 4947 return previous_; | 4947 return previous_; |
| 4948 } | 4948 } |
| 4949 | 4949 |
| 4950 | 4950 |
| 4951 #undef __ | 4951 #undef __ |
| 4952 | 4952 |
| 4953 } } // namespace v8::internal | 4953 } } // namespace v8::internal |
| 4954 | 4954 |
| 4955 #endif // V8_TARGET_ARCH_MIPS | 4955 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |