| 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 #ifdef DEBUG | 591 #ifdef DEBUG |
| 592 __ bind(&size_check); | 592 __ bind(&size_check); |
| 593 #endif | 593 #endif |
| 594 // Patch the branch to point to the current position, and emit a branch | 594 // Patch the branch to point to the current position, and emit a branch |
| 595 // to the label. | 595 // to the label. |
| 596 Instruction* veneer = reinterpret_cast<Instruction*>(pc_); | 596 Instruction* veneer = reinterpret_cast<Instruction*>(pc_); |
| 597 RemoveBranchFromLabelLinkChain(branch, label, veneer); | 597 RemoveBranchFromLabelLinkChain(branch, label, veneer); |
| 598 branch->SetImmPCOffsetTarget(veneer); | 598 branch->SetImmPCOffsetTarget(veneer); |
| 599 b(label); | 599 b(label); |
| 600 #ifdef DEBUG | 600 #ifdef DEBUG |
| 601 ASSERT(SizeOfCodeGeneratedSince(&size_check) <= kMaxVeneerCodeSize); | 601 ASSERT(SizeOfCodeGeneratedSince(&size_check) <= |
| 602 static_cast<uint64_t>(kMaxVeneerCodeSize)); |
| 602 size_check.Unuse(); | 603 size_check.Unuse(); |
| 603 #endif | 604 #endif |
| 604 | 605 |
| 605 it_to_delete = it++; | 606 it_to_delete = it++; |
| 606 unresolved_branches_.erase(it_to_delete); | 607 unresolved_branches_.erase(it_to_delete); |
| 607 } else { | 608 } else { |
| 608 ++it; | 609 ++it; |
| 609 } | 610 } |
| 610 } | 611 } |
| 611 } | 612 } |
| (...skipping 4353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4965 } | 4966 } |
| 4966 } | 4967 } |
| 4967 | 4968 |
| 4968 | 4969 |
| 4969 #undef __ | 4970 #undef __ |
| 4970 | 4971 |
| 4971 | 4972 |
| 4972 } } // namespace v8::internal | 4973 } } // namespace v8::internal |
| 4973 | 4974 |
| 4974 #endif // V8_TARGET_ARCH_A64 | 4975 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |