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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 2840011: ARM: Update the generation of the name for GenericBinaryOpStub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 7946 matching lines...) Expand 10 before | Expand all | Expand 10 after
7957 const char* op_name = Token::Name(op_); 7957 const char* op_name = Token::Name(op_);
7958 const char* overwrite_name; 7958 const char* overwrite_name;
7959 switch (mode_) { 7959 switch (mode_) {
7960 case NO_OVERWRITE: overwrite_name = "Alloc"; break; 7960 case NO_OVERWRITE: overwrite_name = "Alloc"; break;
7961 case OVERWRITE_RIGHT: overwrite_name = "OverwriteRight"; break; 7961 case OVERWRITE_RIGHT: overwrite_name = "OverwriteRight"; break;
7962 case OVERWRITE_LEFT: overwrite_name = "OverwriteLeft"; break; 7962 case OVERWRITE_LEFT: overwrite_name = "OverwriteLeft"; break;
7963 default: overwrite_name = "UnknownOverwrite"; break; 7963 default: overwrite_name = "UnknownOverwrite"; break;
7964 } 7964 }
7965 7965
7966 OS::SNPrintF(Vector<char>(name_, len), 7966 OS::SNPrintF(Vector<char>(name_, len),
7967 "GenericBinaryOpStub_%s_%s%s", 7967 "GenericBinaryOpStub_%s_%s%s_%s",
7968 op_name, 7968 op_name,
7969 overwrite_name, 7969 overwrite_name,
7970 specialized_on_rhs_ ? "_ConstantRhs" : 0); 7970 specialized_on_rhs_ ? "_ConstantRhs" : "",
7971 BinaryOpIC::GetName(runtime_operands_type_));
7971 return name_; 7972 return name_;
7972 } 7973 }
7973 7974
7974 7975
7975 7976
7976 void GenericBinaryOpStub::Generate(MacroAssembler* masm) { 7977 void GenericBinaryOpStub::Generate(MacroAssembler* masm) {
7977 // lhs_ : x 7978 // lhs_ : x
7978 // rhs_ : y 7979 // rhs_ : y
7979 // r0 : result 7980 // r0 : result
7980 7981
(...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after
10690 __ bind(&string_add_runtime); 10691 __ bind(&string_add_runtime);
10691 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 10692 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
10692 } 10693 }
10693 10694
10694 10695
10695 #undef __ 10696 #undef __
10696 10697
10697 } } // namespace v8::internal 10698 } } // namespace v8::internal
10698 10699
10699 #endif // V8_TARGET_ARCH_ARM 10700 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698