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

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

Issue 546087: Implement inline string compare on ARM. (Closed)
Patch Set: Further optimization of ARM version Created 10 years, 11 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 | src/arm/codegen-arm.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 } else { 505 } else {
506 PrintF("GenericBinaryOpStub (%s by %d)\n", 506 PrintF("GenericBinaryOpStub (%s by %d)\n",
507 Token::String(op_), 507 Token::String(op_),
508 constant_rhs_); 508 constant_rhs_);
509 } 509 }
510 } 510 }
511 #endif 511 #endif
512 }; 512 };
513 513
514 514
515 class StringCompareStub: public CodeStub {
516 public:
517 StringCompareStub() { }
518
519 // Compare two flat ASCII strings and returns result in r0.
520 // Does not use the stack.
521 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm,
522 Register left,
523 Register right,
524 Register scratch1,
525 Register scratch2,
526 Register scratch3,
527 Register scratch4);
528
529 private:
530 Major MajorKey() { return StringCompare; }
531 int MinorKey() { return 0; }
532
533 void Generate(MacroAssembler* masm);
534 };
535
536
515 } } // namespace v8::internal 537 } } // namespace v8::internal
516 538
517 #endif // V8_ARM_CODEGEN_ARM_H_ 539 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698