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

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

Issue 2014010: Made format string match arguments for GenericBinaryOpStub::GetName. (Closed)
Patch Set: Created 10 years, 7 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
« 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 9806 matching lines...) Expand 10 before | Expand all | Expand 10 after
9817 const char* op_name = Token::Name(op_); 9817 const char* op_name = Token::Name(op_);
9818 const char* overwrite_name; 9818 const char* overwrite_name;
9819 switch (mode_) { 9819 switch (mode_) {
9820 case NO_OVERWRITE: overwrite_name = "Alloc"; break; 9820 case NO_OVERWRITE: overwrite_name = "Alloc"; break;
9821 case OVERWRITE_RIGHT: overwrite_name = "OverwriteRight"; break; 9821 case OVERWRITE_RIGHT: overwrite_name = "OverwriteRight"; break;
9822 case OVERWRITE_LEFT: overwrite_name = "OverwriteLeft"; break; 9822 case OVERWRITE_LEFT: overwrite_name = "OverwriteLeft"; break;
9823 default: overwrite_name = "UnknownOverwrite"; break; 9823 default: overwrite_name = "UnknownOverwrite"; break;
9824 } 9824 }
9825 9825
9826 OS::SNPrintF(Vector<char>(name_, len), 9826 OS::SNPrintF(Vector<char>(name_, len),
9827 "GenericBinaryOpStub_%s_%s%s_%s%s_%s%s_%s", 9827 "GenericBinaryOpStub_%s_%s%s_%s%s_%s_%s",
9828 op_name, 9828 op_name,
9829 overwrite_name, 9829 overwrite_name,
9830 (flags_ & NO_SMI_CODE_IN_STUB) ? "_NoSmiInStub" : "", 9830 (flags_ & NO_SMI_CODE_IN_STUB) ? "_NoSmiInStub" : "",
9831 args_in_registers_ ? "RegArgs" : "StackArgs", 9831 args_in_registers_ ? "RegArgs" : "StackArgs",
9832 args_reversed_ ? "_R" : "", 9832 args_reversed_ ? "_R" : "",
9833 static_operands_type_.ToString(), 9833 static_operands_type_.ToString(),
9834 BinaryOpIC::GetName(runtime_operands_type_)); 9834 BinaryOpIC::GetName(runtime_operands_type_));
9835 return name_; 9835 return name_;
9836 } 9836 }
9837 9837
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
11572 // Call the function from C++. 11572 // Call the function from C++.
11573 return FUNCTION_CAST<ModuloFunction>(buffer); 11573 return FUNCTION_CAST<ModuloFunction>(buffer);
11574 } 11574 }
11575 11575
11576 #endif 11576 #endif
11577 11577
11578 11578
11579 #undef __ 11579 #undef __
11580 11580
11581 } } // namespace v8::internal 11581 } } // namespace v8::internal
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