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

Side by Side Diff: src/a64/instructions-a64.h

Issue 138913010: A64: Make the simulator sampling friendly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/constants-a64.h ('k') | src/a64/instructions-a64.cc » ('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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 bool IsAddSubImmediate() const { 208 bool IsAddSubImmediate() const {
209 return Mask(AddSubImmediateFMask) == AddSubImmediateFixed; 209 return Mask(AddSubImmediateFMask) == AddSubImmediateFixed;
210 } 210 }
211 211
212 bool IsAddSubExtended() const { 212 bool IsAddSubExtended() const {
213 return Mask(AddSubExtendedFMask) == AddSubExtendedFixed; 213 return Mask(AddSubExtendedFMask) == AddSubExtendedFixed;
214 } 214 }
215 215
216 // Match any loads or stores, including pairs.
216 bool IsLoadOrStore() const { 217 bool IsLoadOrStore() const {
217 return Mask(LoadStoreAnyFMask) == LoadStoreAnyFixed; 218 return Mask(LoadStoreAnyFMask) == LoadStoreAnyFixed;
218 } 219 }
219 220
221 // Match any loads, including pairs.
222 bool IsLoad() const;
223 // Match any stores, including pairs.
224 bool IsStore() const;
225
220 // Indicate whether Rd can be the stack pointer or the zero register. This 226 // Indicate whether Rd can be the stack pointer or the zero register. This
221 // does not check that the instruction actually has an Rd field. 227 // does not check that the instruction actually has an Rd field.
222 Reg31Mode RdMode() const { 228 Reg31Mode RdMode() const {
223 // The following instructions use csp or wsp as Rd: 229 // The following instructions use csp or wsp as Rd:
224 // Add/sub (immediate) when not setting the flags. 230 // Add/sub (immediate) when not setting the flags.
225 // Add/sub (extended) when not setting the flags. 231 // Add/sub (extended) when not setting the flags.
226 // Logical (immediate) when not setting the flags. 232 // Logical (immediate) when not setting the flags.
227 // Otherwise, r31 is the zero register. 233 // Otherwise, r31 is the zero register.
228 if (IsAddSubImmediate() || IsAddSubExtended()) { 234 if (IsAddSubImmediate() || IsAddSubExtended()) {
229 if (Mask(AddSubSetFlagsBit)) { 235 if (Mask(AddSubSetFlagsBit)) {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 TRACE_ENABLE = 1 << 6, 482 TRACE_ENABLE = 1 << 6,
477 TRACE_DISABLE = 2 << 6, 483 TRACE_DISABLE = 2 << 6,
478 TRACE_OVERRIDE = 3 << 6 484 TRACE_OVERRIDE = 3 << 6
479 }; 485 };
480 486
481 487
482 } } // namespace v8::internal 488 } } // namespace v8::internal
483 489
484 490
485 #endif // V8_A64_INSTRUCTIONS_A64_H_ 491 #endif // V8_A64_INSTRUCTIONS_A64_H_
OLDNEW
« no previous file with comments | « src/a64/constants-a64.h ('k') | src/a64/instructions-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698