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 5112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5123 if (inline_data->IsInlineData()) { | 5123 if (inline_data->IsInlineData()) { |
5124 uint64_t payload = inline_data->InlineData(); | 5124 uint64_t payload = inline_data->InlineData(); |
5125 // We use BitField to decode the payload, and BitField can only handle | 5125 // We use BitField to decode the payload, and BitField can only handle |
5126 // 32-bit values. | 5126 // 32-bit values. |
5127 ASSERT(is_uint32(payload)); | 5127 ASSERT(is_uint32(payload)); |
5128 if (payload != 0) { | 5128 if (payload != 0) { |
5129 int reg_code = RegisterBits::decode(payload); | 5129 int reg_code = RegisterBits::decode(payload); |
5130 reg_ = Register::XRegFromCode(reg_code); | 5130 reg_ = Register::XRegFromCode(reg_code); |
5131 uint64_t smi_check_delta = DeltaBits::decode(payload); | 5131 uint64_t smi_check_delta = DeltaBits::decode(payload); |
5132 ASSERT(smi_check_delta != 0); | 5132 ASSERT(smi_check_delta != 0); |
5133 smi_check_ = inline_data - (smi_check_delta * kInstructionSize); | 5133 smi_check_ = inline_data->preceding(smi_check_delta); |
5134 } | 5134 } |
5135 } | 5135 } |
5136 } | 5136 } |
5137 | 5137 |
5138 | 5138 |
5139 #undef __ | 5139 #undef __ |
5140 | 5140 |
5141 | 5141 |
5142 } } // namespace v8::internal | 5142 } } // namespace v8::internal |
5143 | 5143 |
5144 #endif // V8_TARGET_ARCH_A64 | 5144 #endif // V8_TARGET_ARCH_A64 |
OLD | NEW |