OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 // Compares two flat ASCII strings for equality and returns result | 378 // Compares two flat ASCII strings for equality and returns result |
379 // in rax. | 379 // in rax. |
380 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, | 380 static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, |
381 Register left, | 381 Register left, |
382 Register right, | 382 Register right, |
383 Register scratch1, | 383 Register scratch1, |
384 Register scratch2); | 384 Register scratch2); |
385 | 385 |
386 private: | 386 private: |
387 Major MajorKey() { return StringCompare; } | 387 virtual Major MajorKey() { return StringCompare; } |
388 int MinorKey() { return 0; } | 388 virtual int MinorKey() { return 0; } |
| 389 virtual void Generate(MacroAssembler* masm); |
389 | 390 |
390 void Generate(MacroAssembler* masm); | 391 static void GenerateAsciiCharsCompareLoop(MacroAssembler* masm, |
| 392 Register left, |
| 393 Register right, |
| 394 Register length, |
| 395 Register scratch, |
| 396 NearLabel* chars_not_equal); |
391 }; | 397 }; |
392 | 398 |
393 | 399 |
394 class NumberToStringStub: public CodeStub { | 400 class NumberToStringStub: public CodeStub { |
395 public: | 401 public: |
396 NumberToStringStub() { } | 402 NumberToStringStub() { } |
397 | 403 |
398 // Generate code to do a lookup in the number string cache. If the number in | 404 // Generate code to do a lookup in the number string cache. If the number in |
399 // the register object is found in the cache the generated code falls through | 405 // the register object is found in the cache the generated code falls through |
400 // with the result in the result register. The object and the result register | 406 // with the result in the result register. The object and the result register |
(...skipping 23 matching lines...) Expand all Loading... |
424 void Print() { | 430 void Print() { |
425 PrintF("NumberToStringStub\n"); | 431 PrintF("NumberToStringStub\n"); |
426 } | 432 } |
427 #endif | 433 #endif |
428 }; | 434 }; |
429 | 435 |
430 | 436 |
431 } } // namespace v8::internal | 437 } } // namespace v8::internal |
432 | 438 |
433 #endif // V8_X64_CODE_STUBS_X64_H_ | 439 #endif // V8_X64_CODE_STUBS_X64_H_ |
OLD | NEW |