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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 9699071: MIPS: Branch delay slot and other optimizations. (Closed)
Patch Set: Created 8 years, 9 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/mips/ic-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 if (FLAG_trap_on_deopt) { 629 if (FLAG_trap_on_deopt) {
630 Label skip; 630 Label skip;
631 if (cc != al) { 631 if (cc != al) {
632 __ Branch(&skip, NegateCondition(cc), src1, src2); 632 __ Branch(&skip, NegateCondition(cc), src1, src2);
633 } 633 }
634 __ stop("trap_on_deopt"); 634 __ stop("trap_on_deopt");
635 __ bind(&skip); 635 __ bind(&skip);
636 } 636 }
637 637
638 if (cc == al) { 638 // TODO(plind): The Arm port is a little different here, due to their
639 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); 639 // DeOpt jump table, which is not used for Mips yet.
640 } else { 640 __ Jump(entry, RelocInfo::RUNTIME_ENTRY, cc, src1, src2);
641 // TODO(plind): The Arm port is a little different here, due to their
642 // DeOpt jump table, which is not used for Mips yet.
643 __ Jump(entry, RelocInfo::RUNTIME_ENTRY, cc, src1, src2);
644 }
645 } 641 }
646 642
647 643
648 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 644 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
649 int length = deoptimizations_.length(); 645 int length = deoptimizations_.length();
650 if (length == 0) return; 646 if (length == 0) return;
651 Handle<DeoptimizationInputData> data = 647 Handle<DeoptimizationInputData> data =
652 factory()->NewDeoptimizationInputData(length, TENURED); 648 factory()->NewDeoptimizationInputData(length, TENURED);
653 649
654 Handle<ByteArray> translations = translations_.CreateByteArray(); 650 Handle<ByteArray> translations = translations_.CreateByteArray();
(...skipping 4391 matching lines...) Expand 10 before | Expand all | Expand 10 after
5046 __ Subu(scratch, result, scratch); 5042 __ Subu(scratch, result, scratch);
5047 __ lw(result, FieldMemOperand(scratch, 5043 __ lw(result, FieldMemOperand(scratch,
5048 FixedArray::kHeaderSize - kPointerSize)); 5044 FixedArray::kHeaderSize - kPointerSize));
5049 __ bind(&done); 5045 __ bind(&done);
5050 } 5046 }
5051 5047
5052 5048
5053 #undef __ 5049 #undef __
5054 5050
5055 } } // namespace v8::internal 5051 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698