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

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

Issue 1607663004: PPC: Cleanup ABI-specifc code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | src/ppc/code-stubs-ppc.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 RCBit r) { 1497 RCBit r) {
1498 xo_form(EXT2 | DIVDU, dst, src1, src2, o, r); 1498 xo_form(EXT2 | DIVDU, dst, src1, src2, o, r);
1499 } 1499 }
1500 #endif 1500 #endif
1501 1501
1502 1502
1503 // Function descriptor for AIX. 1503 // Function descriptor for AIX.
1504 // Code address skips the function descriptor "header". 1504 // Code address skips the function descriptor "header".
1505 // TOC and static chain are ignored and set to 0. 1505 // TOC and static chain are ignored and set to 0.
1506 void Assembler::function_descriptor() { 1506 void Assembler::function_descriptor() {
1507 #if ABI_USES_FUNCTION_DESCRIPTORS 1507 if (ABI_USES_FUNCTION_DESCRIPTORS) {
1508 Label instructions; 1508 Label instructions;
1509 DCHECK(pc_offset() == 0); 1509 DCHECK(pc_offset() == 0);
1510 emit_label_addr(&instructions); 1510 emit_label_addr(&instructions);
1511 dp(0); 1511 dp(0);
1512 dp(0); 1512 dp(0);
1513 bind(&instructions); 1513 bind(&instructions);
1514 #endif 1514 }
1515 } 1515 }
1516 1516
1517 1517
1518 int Assembler::instructions_required_for_mov(Register dst, 1518 int Assembler::instructions_required_for_mov(Register dst,
1519 const Operand& src) const { 1519 const Operand& src) const {
1520 bool canOptimize = 1520 bool canOptimize =
1521 !(src.must_output_reloc_info(this) || is_trampoline_pool_blocked()); 1521 !(src.must_output_reloc_info(this) || is_trampoline_pool_blocked());
1522 if (use_constant_pool_for_mov(dst, src, canOptimize)) { 1522 if (use_constant_pool_for_mov(dst, src, canOptimize)) {
1523 if (ConstantPoolAccessIsInOverflow()) { 1523 if (ConstantPoolAccessIsInOverflow()) {
1524 return kMovInstructionsConstantPool + 1; 1524 return kMovInstructionsConstantPool + 1;
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
2474 2474
2475 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); 2475 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_);
2476 } 2476 }
2477 } 2477 }
2478 2478
2479 2479
2480 } // namespace internal 2480 } // namespace internal
2481 } // namespace v8 2481 } // namespace v8
2482 2482
2483 #endif // V8_TARGET_ARCH_PPC 2483 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698