Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 19492006: Cleanup StringAddFlags. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add extra ASSERTs. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698