| 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/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
| (...skipping 4632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4643 } else { | 4643 } else { |
| 4644 Tbnz(bitmap_scratch, 1, has_color); | 4644 Tbnz(bitmap_scratch, 1, has_color); |
| 4645 } | 4645 } |
| 4646 Bind(&other_color); | 4646 Bind(&other_color); |
| 4647 } | 4647 } |
| 4648 | 4648 |
| 4649 // Fall through if it does not have the right color. | 4649 // Fall through if it does not have the right color. |
| 4650 } | 4650 } |
| 4651 | 4651 |
| 4652 | 4652 |
| 4653 void MacroAssembler::CheckMapDeprecated(Handle<Map> map, | |
| 4654 Register scratch, | |
| 4655 Label* if_deprecated) { | |
| 4656 if (map->CanBeDeprecated()) { | |
| 4657 Mov(scratch, Operand(map)); | |
| 4658 Ldrsw(scratch, FieldMemOperand(scratch, Map::kBitField3Offset)); | |
| 4659 TestAndBranchIfAnySet(scratch, Map::Deprecated::kMask, if_deprecated); | |
| 4660 } | |
| 4661 } | |
| 4662 | |
| 4663 | |
| 4664 void MacroAssembler::JumpIfBlack(Register object, | 4653 void MacroAssembler::JumpIfBlack(Register object, |
| 4665 Register scratch0, | 4654 Register scratch0, |
| 4666 Register scratch1, | 4655 Register scratch1, |
| 4667 Label* on_black) { | 4656 Label* on_black) { |
| 4668 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); | 4657 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); |
| 4669 HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern. | 4658 HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern. |
| 4670 } | 4659 } |
| 4671 | 4660 |
| 4672 | 4661 |
| 4673 void MacroAssembler::JumpIfDictionaryInPrototypeChain( | 4662 void MacroAssembler::JumpIfDictionaryInPrototypeChain( |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5405 } | 5394 } |
| 5406 } | 5395 } |
| 5407 | 5396 |
| 5408 | 5397 |
| 5409 #undef __ | 5398 #undef __ |
| 5410 | 5399 |
| 5411 | 5400 |
| 5412 } } // namespace v8::internal | 5401 } } // namespace v8::internal |
| 5413 | 5402 |
| 5414 #endif // V8_TARGET_ARCH_ARM64 | 5403 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |