| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 3069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 IsOnEvacuationCandidate(*map)); | 3080 IsOnEvacuationCandidate(*map)); |
| 3081 if (mask < (1 << kBitsPerByte)) { | 3081 if (mask < (1 << kBitsPerByte)) { |
| 3082 test_b(Operand::StaticVariable(reference), static_cast<uint8_t>(mask)); | 3082 test_b(Operand::StaticVariable(reference), static_cast<uint8_t>(mask)); |
| 3083 } else { | 3083 } else { |
| 3084 test(Operand::StaticVariable(reference), Immediate(mask)); | 3084 test(Operand::StaticVariable(reference), Immediate(mask)); |
| 3085 } | 3085 } |
| 3086 j(cc, condition_met, condition_met_distance); | 3086 j(cc, condition_met, condition_met_distance); |
| 3087 } | 3087 } |
| 3088 | 3088 |
| 3089 | 3089 |
| 3090 void MacroAssembler::CheckMapDeprecated(Handle<Map> map, | |
| 3091 Register scratch, | |
| 3092 Label* if_deprecated) { | |
| 3093 if (map->CanBeDeprecated()) { | |
| 3094 mov(scratch, map); | |
| 3095 mov(scratch, FieldOperand(scratch, Map::kBitField3Offset)); | |
| 3096 and_(scratch, Immediate(Map::Deprecated::kMask)); | |
| 3097 j(not_zero, if_deprecated); | |
| 3098 } | |
| 3099 } | |
| 3100 | |
| 3101 | |
| 3102 void MacroAssembler::JumpIfBlack(Register object, | 3090 void MacroAssembler::JumpIfBlack(Register object, |
| 3103 Register scratch0, | 3091 Register scratch0, |
| 3104 Register scratch1, | 3092 Register scratch1, |
| 3105 Label* on_black, | 3093 Label* on_black, |
| 3106 Label::Distance on_black_near) { | 3094 Label::Distance on_black_near) { |
| 3107 HasColor(object, scratch0, scratch1, | 3095 HasColor(object, scratch0, scratch1, |
| 3108 on_black, on_black_near, | 3096 on_black, on_black_near, |
| 3109 1, 0); // kBlackBitPattern. | 3097 1, 0); // kBlackBitPattern. |
| 3110 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); | 3098 DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); |
| 3111 } | 3099 } |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3377 if (mag.shift > 0) sar(edx, mag.shift); | 3365 if (mag.shift > 0) sar(edx, mag.shift); |
| 3378 mov(eax, dividend); | 3366 mov(eax, dividend); |
| 3379 shr(eax, 31); | 3367 shr(eax, 31); |
| 3380 add(edx, eax); | 3368 add(edx, eax); |
| 3381 } | 3369 } |
| 3382 | 3370 |
| 3383 | 3371 |
| 3384 } } // namespace v8::internal | 3372 } } // namespace v8::internal |
| 3385 | 3373 |
| 3386 #endif // V8_TARGET_ARCH_X87 | 3374 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |