| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 times_2, | 564 times_2, |
| 565 SeqTwoByteString::kHeaderSize)); | 565 SeqTwoByteString::kHeaderSize)); |
| 566 __ jmp(&done, Label::kNear); | 566 __ jmp(&done, Label::kNear); |
| 567 | 567 |
| 568 // ASCII string. | 568 // ASCII string. |
| 569 // Load the byte into the result register. | 569 // Load the byte into the result register. |
| 570 __ bind(&ascii); | 570 __ bind(&ascii); |
| 571 __ movzxbl(result, FieldOperand(string, | 571 __ movzxbl(result, FieldOperand(string, |
| 572 index, | 572 index, |
| 573 times_1, | 573 times_1, |
| 574 SeqAsciiString::kHeaderSize)); | 574 SeqOneByteString::kHeaderSize)); |
| 575 __ bind(&done); | 575 __ bind(&done); |
| 576 } | 576 } |
| 577 | 577 |
| 578 #undef __ | 578 #undef __ |
| 579 | 579 |
| 580 | 580 |
| 581 static const int kNoCodeAgeSequenceLength = 6; | 581 static const int kNoCodeAgeSequenceLength = 6; |
| 582 | 582 |
| 583 static byte* GetNoCodeAgeSequence(uint32_t* length) { | 583 static byte* GetNoCodeAgeSequence(uint32_t* length) { |
| 584 static bool initialized = false; | 584 static bool initialized = false; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 CodePatcher patcher(sequence, young_length); | 658 CodePatcher patcher(sequence, young_length); |
| 659 patcher.masm()->call(stub->instruction_start()); | 659 patcher.masm()->call(stub->instruction_start()); |
| 660 patcher.masm()->nop(); | 660 patcher.masm()->nop(); |
| 661 } | 661 } |
| 662 } | 662 } |
| 663 | 663 |
| 664 | 664 |
| 665 } } // namespace v8::internal | 665 } } // namespace v8::internal |
| 666 | 666 |
| 667 #endif // V8_TARGET_ARCH_X64 | 667 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |