| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2570 } else { | 2570 } else { |
| 2571 CallRuntime(Runtime::kAbort, 2); | 2571 CallRuntime(Runtime::kAbort, 2); |
| 2572 } | 2572 } |
| 2573 // will not return here | 2573 // will not return here |
| 2574 int3(); | 2574 int3(); |
| 2575 } | 2575 } |
| 2576 | 2576 |
| 2577 | 2577 |
| 2578 void MacroAssembler::LoadInstanceDescriptors(Register map, | 2578 void MacroAssembler::LoadInstanceDescriptors(Register map, |
| 2579 Register descriptors) { | 2579 Register descriptors) { |
| 2580 Register temp = descriptors; | 2580 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); |
| 2581 mov(temp, FieldOperand(map, Map::kTransitionsOrBackPointerOffset)); | |
| 2582 | |
| 2583 Label ok, fail, load_from_back_pointer; | |
| 2584 CheckMap(temp, | |
| 2585 isolate()->factory()->fixed_array_map(), | |
| 2586 &fail, | |
| 2587 DONT_DO_SMI_CHECK); | |
| 2588 mov(descriptors, FieldOperand(temp, TransitionArray::kDescriptorsOffset)); | |
| 2589 jmp(&ok); | |
| 2590 | |
| 2591 bind(&fail); | |
| 2592 cmp(temp, isolate()->factory()->undefined_value()); | |
| 2593 j(not_equal, &load_from_back_pointer, Label::kNear); | |
| 2594 mov(descriptors, isolate()->factory()->empty_descriptor_array()); | |
| 2595 jmp(&ok); | |
| 2596 | |
| 2597 bind(&load_from_back_pointer); | |
| 2598 mov(temp, FieldOperand(temp, Map::kTransitionsOrBackPointerOffset)); | |
| 2599 mov(descriptors, FieldOperand(temp, TransitionArray::kDescriptorsOffset)); | |
| 2600 | |
| 2601 bind(&ok); | |
| 2602 } | 2581 } |
| 2603 | 2582 |
| 2604 | 2583 |
| 2605 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { | 2584 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { |
| 2606 mov(dst, FieldOperand(map, Map::kBitField3Offset)); | 2585 mov(dst, FieldOperand(map, Map::kBitField3Offset)); |
| 2607 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); | 2586 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); |
| 2608 } | 2587 } |
| 2609 | 2588 |
| 2610 | 2589 |
| 2611 void MacroAssembler::LoadPowerOf2(XMMRegister dst, | 2590 void MacroAssembler::LoadPowerOf2(XMMRegister dst, |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 j(not_equal, call_runtime); | 2969 j(not_equal, call_runtime); |
| 2991 | 2970 |
| 2992 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); | 2971 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); |
| 2993 cmp(ecx, isolate()->factory()->null_value()); | 2972 cmp(ecx, isolate()->factory()->null_value()); |
| 2994 j(not_equal, &next); | 2973 j(not_equal, &next); |
| 2995 } | 2974 } |
| 2996 | 2975 |
| 2997 } } // namespace v8::internal | 2976 } } // namespace v8::internal |
| 2998 | 2977 |
| 2999 #endif // V8_TARGET_ARCH_IA32 | 2978 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |