Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: src/a64/macro-assembler-a64.cc

Issue 201843003: Robustified address calculations on A64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/a64/instructions-a64.cc ('k') | src/a64/simulator-a64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/a64/instructions-a64.cc ('k') | src/a64/simulator-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698