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

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

Issue 278883002: [Sheriff] This reverts commits r21225 and r21226 for breaking Linux64 build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | 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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 3466 matching lines...) Expand 10 before | Expand all | Expand 10 after
3477 } 3477 }
3478 3478
3479 3479
3480 void MacroAssembler::LoadInstanceDescriptors(Register map, 3480 void MacroAssembler::LoadInstanceDescriptors(Register map,
3481 Register descriptors) { 3481 Register descriptors) {
3482 movp(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); 3482 movp(descriptors, FieldOperand(map, Map::kDescriptorsOffset));
3483 } 3483 }
3484 3484
3485 3485
3486 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 3486 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
3487 movl(dst, FieldOperand(map, Map::kBitField3Offset)); 3487 movp(dst, FieldOperand(map, Map::kBitField3Offset));
3488 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 3488 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
3489 } 3489 }
3490 3490
3491 3491
3492 void MacroAssembler::EnumLength(Register dst, Register map) { 3492 void MacroAssembler::EnumLength(Register dst, Register map) {
3493 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); 3493 STATIC_ASSERT(Map::EnumLengthBits::kShift == 0);
3494 movl(dst, FieldOperand(map, Map::kBitField3Offset)); 3494 movp(dst, FieldOperand(map, Map::kBitField3Offset));
3495 andl(dst, Immediate(Map::EnumLengthBits::kMask)); 3495 Move(kScratchRegister, Smi::FromInt(Map::EnumLengthBits::kMask));
3496 Integer32ToSmi(dst, dst); 3496 andp(dst, kScratchRegister);
3497 } 3497 }
3498 3498
3499 3499
3500 void MacroAssembler::DispatchMap(Register obj, 3500 void MacroAssembler::DispatchMap(Register obj,
3501 Register unused, 3501 Register unused,
3502 Handle<Map> map, 3502 Handle<Map> map,
3503 Handle<Code> success, 3503 Handle<Code> success,
3504 SmiCheckType smi_check_type) { 3504 SmiCheckType smi_check_type) {
3505 Label fail; 3505 Label fail;
3506 if (smi_check_type == DO_SMI_CHECK) { 3506 if (smi_check_type == DO_SMI_CHECK) {
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
4952 } 4952 }
4953 j(cc, condition_met, condition_met_distance); 4953 j(cc, condition_met, condition_met_distance);
4954 } 4954 }
4955 4955
4956 4956
4957 void MacroAssembler::CheckMapDeprecated(Handle<Map> map, 4957 void MacroAssembler::CheckMapDeprecated(Handle<Map> map,
4958 Register scratch, 4958 Register scratch,
4959 Label* if_deprecated) { 4959 Label* if_deprecated) {
4960 if (map->CanBeDeprecated()) { 4960 if (map->CanBeDeprecated()) {
4961 Move(scratch, map); 4961 Move(scratch, map);
4962 movl(scratch, FieldOperand(scratch, Map::kBitField3Offset)); 4962 movp(scratch, FieldOperand(scratch, Map::kBitField3Offset));
4963 andl(scratch, Immediate(Map::Deprecated::kMask)); 4963 SmiToInteger32(scratch, scratch);
4964 andp(scratch, Immediate(Map::Deprecated::kMask));
4964 j(not_zero, if_deprecated); 4965 j(not_zero, if_deprecated);
4965 } 4966 }
4966 } 4967 }
4967 4968
4968 4969
4969 void MacroAssembler::JumpIfBlack(Register object, 4970 void MacroAssembler::JumpIfBlack(Register object,
4970 Register bitmap_scratch, 4971 Register bitmap_scratch,
4971 Register mask_scratch, 4972 Register mask_scratch,
4972 Label* on_black, 4973 Label* on_black,
4973 Label::Distance on_black_distance) { 4974 Label::Distance on_black_distance) {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
5234 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); 5235 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift()));
5235 movl(rax, dividend); 5236 movl(rax, dividend);
5236 shrl(rax, Immediate(31)); 5237 shrl(rax, Immediate(31));
5237 addl(rdx, rax); 5238 addl(rdx, rax);
5238 } 5239 }
5239 5240
5240 5241
5241 } } // namespace v8::internal 5242 } } // namespace v8::internal
5242 5243
5243 #endif // V8_TARGET_ARCH_X64 5244 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698