| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 } | 397 } |
| 398 | 398 |
| 399 | 399 |
| 400 void MacroAssembler::AssertFastElements(Register elements) { | 400 void MacroAssembler::AssertFastElements(Register elements) { |
| 401 if (emit_debug_code()) { | 401 if (emit_debug_code()) { |
| 402 Label ok; | 402 Label ok; |
| 403 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), | 403 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), |
| 404 Heap::kFixedArrayMapRootIndex); | 404 Heap::kFixedArrayMapRootIndex); |
| 405 j(equal, &ok, Label::kNear); | 405 j(equal, &ok, Label::kNear); |
| 406 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), | 406 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), |
| 407 Heap::kFixedDoubleArrayMapRootIndex); |
| 408 j(equal, &ok, Label::kNear); |
| 409 CompareRoot(FieldOperand(elements, HeapObject::kMapOffset), |
| 407 Heap::kFixedCOWArrayMapRootIndex); | 410 Heap::kFixedCOWArrayMapRootIndex); |
| 408 j(equal, &ok, Label::kNear); | 411 j(equal, &ok, Label::kNear); |
| 409 Abort("JSObject with fast elements map has slow elements"); | 412 Abort("JSObject with fast elements map has slow elements"); |
| 410 bind(&ok); | 413 bind(&ok); |
| 411 } | 414 } |
| 412 } | 415 } |
| 413 | 416 |
| 414 | 417 |
| 415 void MacroAssembler::Check(Condition cc, const char* msg) { | 418 void MacroAssembler::Check(Condition cc, const char* msg) { |
| 416 Label L; | 419 Label L; |
| (...skipping 3603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4020 movq(rcx, addr_reg); | 4023 movq(rcx, addr_reg); |
| 4021 shrl(rcx, Immediate(kPointerSizeLog2)); | 4024 shrl(rcx, Immediate(kPointerSizeLog2)); |
| 4022 and_(rcx, Immediate((1 << Bitmap::kBitsPerCellLog2) - 1)); | 4025 and_(rcx, Immediate((1 << Bitmap::kBitsPerCellLog2) - 1)); |
| 4023 movl(mask_reg, Immediate(1)); | 4026 movl(mask_reg, Immediate(1)); |
| 4024 shl_cl(mask_reg); | 4027 shl_cl(mask_reg); |
| 4025 } | 4028 } |
| 4026 | 4029 |
| 4027 } } // namespace v8::internal | 4030 } } // namespace v8::internal |
| 4028 | 4031 |
| 4029 #endif // V8_TARGET_ARCH_X64 | 4032 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |