| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 STATIC_ASSERT(SeqTwoByteString::kHeaderSize == SeqOneByteString::kHeaderSize); | 468 STATIC_ASSERT(SeqTwoByteString::kHeaderSize == SeqOneByteString::kHeaderSize); |
| 469 __ Add(string, string, SeqTwoByteString::kHeaderSize - kHeapObjectTag); | 469 __ Add(string, string, SeqTwoByteString::kHeaderSize - kHeapObjectTag); |
| 470 __ B(&check_encoding); | 470 __ B(&check_encoding); |
| 471 | 471 |
| 472 // Handle external strings. | 472 // Handle external strings. |
| 473 __ Bind(&external_string); | 473 __ Bind(&external_string); |
| 474 if (FLAG_debug_code) { | 474 if (FLAG_debug_code) { |
| 475 // Assert that we do not have a cons or slice (indirect strings) here. | 475 // Assert that we do not have a cons or slice (indirect strings) here. |
| 476 // Sequential strings have already been ruled out. | 476 // Sequential strings have already been ruled out. |
| 477 __ Tst(result, kIsIndirectStringMask); | 477 __ Tst(result, kIsIndirectStringMask); |
| 478 __ Assert(eq, "external string expected, but not found"); | 478 __ Assert(eq, kExternalStringExpectedButNotFound); |
| 479 } | 479 } |
| 480 // Rule out short external strings. | 480 // Rule out short external strings. |
| 481 STATIC_CHECK(kShortExternalStringTag != 0); | 481 STATIC_CHECK(kShortExternalStringTag != 0); |
| 482 // TestAndBranchIfAnySet can emit Tbnz. Do not use it because call_runtime | 482 // TestAndBranchIfAnySet can emit Tbnz. Do not use it because call_runtime |
| 483 // can be bound far away in deferred code. | 483 // can be bound far away in deferred code. |
| 484 __ Tst(result, kShortExternalStringMask); | 484 __ Tst(result, kShortExternalStringMask); |
| 485 __ B(ne, call_runtime); | 485 __ B(ne, call_runtime); |
| 486 __ Ldr(string, FieldMemOperand(string, ExternalString::kResourceDataOffset)); | 486 __ Ldr(string, FieldMemOperand(string, ExternalString::kResourceDataOffset)); |
| 487 | 487 |
| 488 Label ascii, done; | 488 Label ascii, done; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 __ Fmul(result, double_temp3, double_temp1); | 618 __ Fmul(result, double_temp3, double_temp1); |
| 619 | 619 |
| 620 __ Bind(&done); | 620 __ Bind(&done); |
| 621 } | 621 } |
| 622 | 622 |
| 623 #undef __ | 623 #undef __ |
| 624 | 624 |
| 625 } } // namespace v8::internal | 625 } } // namespace v8::internal |
| 626 | 626 |
| 627 #endif // V8_TARGET_ARCH_A64 | 627 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |