OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 3154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3165 IsOnEvacuationCandidate(*map)); | 3165 IsOnEvacuationCandidate(*map)); |
3166 if (mask < (1 << kBitsPerByte)) { | 3166 if (mask < (1 << kBitsPerByte)) { |
3167 test_b(Operand::StaticVariable(reference), static_cast<uint8_t>(mask)); | 3167 test_b(Operand::StaticVariable(reference), static_cast<uint8_t>(mask)); |
3168 } else { | 3168 } else { |
3169 test(Operand::StaticVariable(reference), Immediate(mask)); | 3169 test(Operand::StaticVariable(reference), Immediate(mask)); |
3170 } | 3170 } |
3171 j(cc, condition_met, condition_met_distance); | 3171 j(cc, condition_met, condition_met_distance); |
3172 } | 3172 } |
3173 | 3173 |
3174 | 3174 |
3175 void MacroAssembler::CheckMapDeprecated(Handle<Map> map, | |
3176 Register scratch, | |
3177 Label* if_deprecated) { | |
3178 if (map->CanBeDeprecated()) { | |
3179 mov(scratch, map); | |
3180 mov(scratch, FieldOperand(scratch, Map::kBitField3Offset)); | |
3181 and_(scratch, Immediate(Map::Deprecated::kMask)); | |
3182 j(not_zero, if_deprecated); | |
3183 } | |
3184 } | |
3185 | |
3186 | |
3187 void MacroAssembler::JumpIfBlack(Register object, | 3175 void MacroAssembler::JumpIfBlack(Register object, |
3188 Register scratch0, | 3176 Register scratch0, |
3189 Register scratch1, | 3177 Register scratch1, |
3190 Label* on_black, | 3178 Label* on_black, |
3191 Label::Distance on_black_near) { | 3179 Label::Distance on_black_near) { |
3192 HasColor(object, scratch0, scratch1, | 3180 HasColor(object, scratch0, scratch1, |
3193 on_black, on_black_near, | 3181 on_black, on_black_near, |
3194 1, 0); // kBlackBitPattern. | 3182 1, 0); // kBlackBitPattern. |
3195 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); | 3183 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); |
3196 } | 3184 } |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3462 if (mag.shift > 0) sar(edx, mag.shift); | 3450 if (mag.shift > 0) sar(edx, mag.shift); |
3463 mov(eax, dividend); | 3451 mov(eax, dividend); |
3464 shr(eax, 31); | 3452 shr(eax, 31); |
3465 add(edx, eax); | 3453 add(edx, eax); |
3466 } | 3454 } |
3467 | 3455 |
3468 | 3456 |
3469 } } // namespace v8::internal | 3457 } } // namespace v8::internal |
3470 | 3458 |
3471 #endif // V8_TARGET_ARCH_IA32 | 3459 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |