| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ |
| 6 #define V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ |
| 7 | 7 |
| 8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
| 9 | 9 |
| 10 #include "src/arm64/assembler-arm64.h" | 10 #include "src/arm64/assembler-arm64.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 inline void Pop(Register target); | 224 inline void Pop(Register target); |
| 225 | 225 |
| 226 // This state indicates where the register actually is. | 226 // This state indicates where the register actually is. |
| 227 enum RegisterState { | 227 enum RegisterState { |
| 228 STACKED, // Resides in memory. | 228 STACKED, // Resides in memory. |
| 229 CACHED_LSW, // Least Significant Word of a 64 bit hardware register. | 229 CACHED_LSW, // Least Significant Word of a 64 bit hardware register. |
| 230 CACHED_MSW // Most Significant Word of a 64 bit hardware register. | 230 CACHED_MSW // Most Significant Word of a 64 bit hardware register. |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 RegisterState GetRegisterState(int register_index) { | 233 RegisterState GetRegisterState(int register_index) { |
| 234 ASSERT(register_index >= 0); | 234 DCHECK(register_index >= 0); |
| 235 if (register_index >= kNumCachedRegisters) { | 235 if (register_index >= kNumCachedRegisters) { |
| 236 return STACKED; | 236 return STACKED; |
| 237 } else { | 237 } else { |
| 238 if ((register_index % 2) == 0) { | 238 if ((register_index % 2) == 0) { |
| 239 return CACHED_LSW; | 239 return CACHED_LSW; |
| 240 } else { | 240 } else { |
| 241 return CACHED_MSW; | 241 return CACHED_MSW; |
| 242 } | 242 } |
| 243 } | 243 } |
| 244 } | 244 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 Label check_preempt_label_; | 284 Label check_preempt_label_; |
| 285 Label stack_overflow_label_; | 285 Label stack_overflow_label_; |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 #endif // V8_INTERPRETED_REGEXP | 288 #endif // V8_INTERPRETED_REGEXP |
| 289 | 289 |
| 290 | 290 |
| 291 }} // namespace v8::internal | 291 }} // namespace v8::internal |
| 292 | 292 |
| 293 #endif // V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ | 293 #endif // V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ |
| OLD | NEW |