| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #include "v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "safepoint-table.h" | 7 #include "src/safepoint-table.h" |
| 8 | 8 |
| 9 #include "deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "disasm.h" | 10 #include "src/disasm.h" |
| 11 #include "macro-assembler.h" | 11 #include "src/macro-assembler.h" |
| 12 #include "zone-inl.h" | 12 #include "src/zone-inl.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 | 16 |
| 17 | 17 |
| 18 bool SafepointEntry::HasRegisters() const { | 18 bool SafepointEntry::HasRegisters() const { |
| 19 ASSERT(is_valid()); | 19 ASSERT(is_valid()); |
| 20 ASSERT(IsAligned(kNumSafepointRegisters, kBitsPerByte)); | 20 ASSERT(IsAligned(kNumSafepointRegisters, kBitsPerByte)); |
| 21 const int num_reg_bytes = kNumSafepointRegisters >> kBitsPerByteLog2; | 21 const int num_reg_bytes = kNumSafepointRegisters >> kBitsPerByteLog2; |
| 22 for (int i = 0; i < num_reg_bytes; i++) { | 22 for (int i = 0; i < num_reg_bytes; i++) { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 unsigned index) { | 205 unsigned index) { |
| 206 uint32_t encoding = SafepointEntry::DeoptimizationIndexField::encode(index); | 206 uint32_t encoding = SafepointEntry::DeoptimizationIndexField::encode(index); |
| 207 encoding |= SafepointEntry::ArgumentsField::encode(info.arguments); | 207 encoding |= SafepointEntry::ArgumentsField::encode(info.arguments); |
| 208 encoding |= SafepointEntry::SaveDoublesField::encode(info.has_doubles); | 208 encoding |= SafepointEntry::SaveDoublesField::encode(info.has_doubles); |
| 209 return encoding; | 209 return encoding; |
| 210 } | 210 } |
| 211 | 211 |
| 212 | 212 |
| 213 | 213 |
| 214 } } // namespace v8::internal | 214 } } // namespace v8::internal |
| OLD | NEW |