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