| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/arm64/simulator-arm64.h" | 9 #include "src/arm64/simulator-arm64.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 381 |
| 382 #ifdef DEBUG | 382 #ifdef DEBUG |
| 383 const int length = kCodeAgeStubEntryOffset / kInstructionSize; | 383 const int length = kCodeAgeStubEntryOffset / kInstructionSize; |
| 384 DCHECK(old_sequence_.length() >= kCodeAgeStubEntryOffset); | 384 DCHECK(old_sequence_.length() >= kCodeAgeStubEntryOffset); |
| 385 PatchingAssembler patcher_old(old_sequence_.start(), length); | 385 PatchingAssembler patcher_old(old_sequence_.start(), length); |
| 386 MacroAssembler::EmitCodeAgeSequence(&patcher_old, NULL); | 386 MacroAssembler::EmitCodeAgeSequence(&patcher_old, NULL); |
| 387 #endif | 387 #endif |
| 388 } | 388 } |
| 389 | 389 |
| 390 | 390 |
| 391 #ifdef DEBUG | 391 #if DCHECK_IS_ON |
| 392 bool CodeAgingHelper::IsOld(byte* candidate) const { | 392 bool CodeAgingHelper::IsOld(byte* candidate) const { |
| 393 return memcmp(candidate, old_sequence_.start(), kCodeAgeStubEntryOffset) == 0; | 393 return memcmp(candidate, old_sequence_.start(), kCodeAgeStubEntryOffset) == 0; |
| 394 } | 394 } |
| 395 #endif | 395 #endif |
| 396 | 396 |
| 397 | 397 |
| 398 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { | 398 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { |
| 399 return MacroAssembler::IsYoungSequence(isolate, sequence); | 399 return MacroAssembler::IsYoungSequence(isolate, sequence); |
| 400 } | 400 } |
| 401 | 401 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 __ Fmul(result, double_temp3, double_temp1); | 630 __ Fmul(result, double_temp3, double_temp1); |
| 631 | 631 |
| 632 __ Bind(&done); | 632 __ Bind(&done); |
| 633 } | 633 } |
| 634 | 634 |
| 635 #undef __ | 635 #undef __ |
| 636 | 636 |
| 637 } } // namespace v8::internal | 637 } } // namespace v8::internal |
| 638 | 638 |
| 639 #endif // V8_TARGET_ARCH_ARM64 | 639 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |