| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 | 2560 |
| 2561 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { | 2561 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { |
| 2562 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), | 2562 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), |
| 2563 Immediate(static_cast<int8_t>(type))); | 2563 Immediate(static_cast<int8_t>(type))); |
| 2564 } | 2564 } |
| 2565 | 2565 |
| 2566 | 2566 |
| 2567 void MacroAssembler::CheckFastElements(Register map, | 2567 void MacroAssembler::CheckFastElements(Register map, |
| 2568 Label* fail, | 2568 Label* fail, |
| 2569 Label::Distance distance) { | 2569 Label::Distance distance) { |
| 2570 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); | 2570 STATIC_ASSERT(FAST_ELEMENTS == 0); |
| 2571 cmpb(FieldOperand(map, Map::kBitField2Offset), | 2571 cmpb(FieldOperand(map, Map::kBitField2Offset), |
| 2572 Immediate(Map::kMaximumBitField2FastElementValue)); | 2572 Immediate(Map::kMaximumBitField2FastElementValue)); |
| 2573 j(above, fail, distance); | 2573 j(above, fail, distance); |
| 2574 } | 2574 } |
| 2575 | 2575 |
| 2576 | 2576 |
| 2577 void MacroAssembler::CheckMap(Register obj, | 2577 void MacroAssembler::CheckMap(Register obj, |
| 2578 Handle<Map> map, | 2578 Handle<Map> map, |
| 2579 Label* fail, | 2579 Label* fail, |
| 2580 SmiCheckType smi_check_type) { | 2580 SmiCheckType smi_check_type) { |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3888 CPU::FlushICache(address_, size_); | 3888 CPU::FlushICache(address_, size_); |
| 3889 | 3889 |
| 3890 // Check that the code was patched as expected. | 3890 // Check that the code was patched as expected. |
| 3891 ASSERT(masm_.pc_ == address_ + size_); | 3891 ASSERT(masm_.pc_ == address_ + size_); |
| 3892 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 3892 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 3893 } | 3893 } |
| 3894 | 3894 |
| 3895 } } // namespace v8::internal | 3895 } } // namespace v8::internal |
| 3896 | 3896 |
| 3897 #endif // V8_TARGET_ARCH_X64 | 3897 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |