OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |