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

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 350923003: ARM64: fix operator precedence issue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 (!assm_->serializer_enabled() && (mode >= RelocInfo::CELL)); 448 (!assm_->serializer_enabled() && (mode >= RelocInfo::CELL));
449 } 449 }
450 450
451 451
452 void ConstPool::EmitMarker() { 452 void ConstPool::EmitMarker() {
453 // A constant pool size is expressed in number of 32-bits words. 453 // A constant pool size is expressed in number of 32-bits words.
454 // Currently all entries are 64-bit. 454 // Currently all entries are 64-bit.
455 // + 1 is for the crash guard. 455 // + 1 is for the crash guard.
456 // + 0/1 for alignment. 456 // + 0/1 for alignment.
457 int word_count = EntryCount() * 2 + 1 + 457 int word_count = EntryCount() * 2 + 1 +
458 (IsAligned(assm_->pc_offset(), 8)) ? 0 : 1; 458 (IsAligned(assm_->pc_offset(), 8) ? 0 : 1);
459 assm_->Emit(LDR_x_lit | 459 assm_->Emit(LDR_x_lit |
460 Assembler::ImmLLiteral(word_count) | 460 Assembler::ImmLLiteral(word_count) |
461 Assembler::Rt(xzr)); 461 Assembler::Rt(xzr));
462 } 462 }
463 463
464 464
465 MemOperand::PairResult MemOperand::AreConsistentForPair( 465 MemOperand::PairResult MemOperand::AreConsistentForPair(
466 const MemOperand& operandA, 466 const MemOperand& operandA,
467 const MemOperand& operandB, 467 const MemOperand& operandB,
468 int access_size_log2) { 468 int access_size_log2) {
(...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3037 adr(rd, 0); 3037 adr(rd, 0);
3038 MovInt64(scratch, target_offset); 3038 MovInt64(scratch, target_offset);
3039 add(rd, rd, scratch); 3039 add(rd, rd, scratch);
3040 } 3040 }
3041 } 3041 }
3042 3042
3043 3043
3044 } } // namespace v8::internal 3044 } } // namespace v8::internal
3045 3045
3046 #endif // V8_TARGET_ARCH_ARM64 3046 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698