Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 774473004: Use weak cells to embed maps in store handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698