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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 } | 378 } |
379 | 379 |
380 | 380 |
381 void MacroAssembler::AssertFastElements(Register elements) { | 381 void MacroAssembler::AssertFastElements(Register elements) { |
382 if (emit_debug_code()) { | 382 if (emit_debug_code()) { |
383 Label ok; | 383 Label ok; |
384 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), | 384 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), |
385 Heap::kFixedArrayMapRootIndex); | 385 Heap::kFixedArrayMapRootIndex); |
386 j(equal, &ok, Label::kNear); | 386 j(equal, &ok, Label::kNear); |
387 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), | 387 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), |
| 388 Heap::kFixedDoubleArrayMapRootIndex); |
| 389 j(equal, &ok, Label::kNear); |
| 390 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), |
388 Heap::kFixedCOWArrayMapRootIndex); | 391 Heap::kFixedCOWArrayMapRootIndex); |
389 j(equal, &ok, Label::kNear); | 392 j(equal, &ok, Label::kNear); |
390 Abort("JSObject with fast elements map has slow elements"); | 393 Abort("JSObject with fast elements map has slow elements"); |
391 bind(&ok); | 394 bind(&ok); |
392 } | 395 } |
393 } | 396 } |
394 | 397 |
395 | 398 |
396 void MacroAssembler::Check(Condition cc, const char* msg) { | 399 void MacroAssembler::Check(Condition cc, const char* msg) { |
397 Label L; | 400 Label L; |
(...skipping 3448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3846 CPU::FlushICache(address_, size_); | 3849 CPU::FlushICache(address_, size_); |
3847 | 3850 |
3848 // Check that the code was patched as expected. | 3851 // Check that the code was patched as expected. |
3849 ASSERT(masm_.pc_ == address_ + size_); | 3852 ASSERT(masm_.pc_ == address_ + size_); |
3850 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 3853 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
3851 } | 3854 } |
3852 | 3855 |
3853 } } // namespace v8::internal | 3856 } } // namespace v8::internal |
3854 | 3857 |
3855 #endif // V8_TARGET_ARCH_X64 | 3858 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |