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

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

Issue 153983002: MIPS: Fixes for patch sites if long branches are emitted. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | src/mips/deoptimizer-mips.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 // 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 if (temp2.code() < temp3.code()) { 1016 if (temp2.code() < temp3.code()) {
1017 __ sll(at, temp1, 20); 1017 __ sll(at, temp1, 20);
1018 __ Or(temp1, temp3, at); 1018 __ Or(temp1, temp3, at);
1019 __ Move(double_scratch1, temp2, temp1); 1019 __ Move(double_scratch1, temp2, temp1);
1020 } else { 1020 } else {
1021 __ sll(at, temp1, 20); 1021 __ sll(at, temp1, 20);
1022 __ Or(temp1, temp2, at); 1022 __ Or(temp1, temp2, at);
1023 __ Move(double_scratch1, temp3, temp1); 1023 __ Move(double_scratch1, temp3, temp1);
1024 } 1024 }
1025 __ mul_d(result, result, double_scratch1); 1025 __ mul_d(result, result, double_scratch1);
1026 __ Branch(&done); 1026 __ BranchShort(&done);
1027 1027
1028 __ bind(&zero); 1028 __ bind(&zero);
1029 __ Move(result, kDoubleRegZero); 1029 __ Move(result, kDoubleRegZero);
1030 __ Branch(&done); 1030 __ BranchShort(&done);
1031 1031
1032 __ bind(&infinity); 1032 __ bind(&infinity);
1033 __ ldc1(result, ExpConstant(2, temp3)); 1033 __ ldc1(result, ExpConstant(2, temp3));
1034 1034
1035 __ bind(&done); 1035 __ bind(&done);
1036 } 1036 }
1037 1037
1038 #ifdef DEBUG 1038 #ifdef DEBUG
1039 // nop(CODE_AGE_MARKER_NOP) 1039 // nop(CODE_AGE_MARKER_NOP)
1040 static const uint32_t kCodeAgePatchFirstInstruction = 0x00010180; 1040 static const uint32_t kCodeAgePatchFirstInstruction = 0x00010180;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 patcher.masm()->nop(); // Pad the empty space. 1113 patcher.masm()->nop(); // Pad the empty space.
1114 } 1114 }
1115 } 1115 }
1116 1116
1117 1117
1118 #undef __ 1118 #undef __
1119 1119
1120 } } // namespace v8::internal 1120 } } // namespace v8::internal
1121 1121
1122 #endif // V8_TARGET_ARCH_MIPS 1122 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/deoptimizer-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698