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

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

Issue 10979066: MIPS: Fix ARM bug introduced in r12604 that caused crashes on ARM on crypto-md5 from SunSpider. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on r12737 Created 8 years, 2 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/mips/macro-assembler-mips.h ('k') | src/mips/stub-cache-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 3427 matching lines...) Expand 10 before | Expand all | Expand 10 after
3438 Addu(scratch1, scratch1, scratch2); 3438 Addu(scratch1, scratch1, scratch2);
3439 // scratch1 is now effective address of the double element 3439 // scratch1 is now effective address of the double element
3440 3440
3441 FloatingPointHelper::Destination destination; 3441 FloatingPointHelper::Destination destination;
3442 if (CpuFeatures::IsSupported(FPU)) { 3442 if (CpuFeatures::IsSupported(FPU)) {
3443 destination = FloatingPointHelper::kFPURegisters; 3443 destination = FloatingPointHelper::kFPURegisters;
3444 } else { 3444 } else {
3445 destination = FloatingPointHelper::kCoreRegisters; 3445 destination = FloatingPointHelper::kCoreRegisters;
3446 } 3446 }
3447 3447
3448 Register untagged_value = receiver_reg; 3448 Register untagged_value = elements_reg;
3449 SmiUntag(untagged_value, value_reg); 3449 SmiUntag(untagged_value, value_reg);
3450 FloatingPointHelper::ConvertIntToDouble(this, 3450 FloatingPointHelper::ConvertIntToDouble(this,
3451 untagged_value, 3451 untagged_value,
3452 destination, 3452 destination,
3453 f0, 3453 f0,
3454 mantissa_reg, 3454 mantissa_reg,
3455 exponent_reg, 3455 exponent_reg,
3456 scratch4, 3456 scratch4,
3457 f2); 3457 f2);
3458 if (destination == FloatingPointHelper::kFPURegisters) { 3458 if (destination == FloatingPointHelper::kFPURegisters) {
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
5481 opcode == BGTZL); 5481 opcode == BGTZL);
5482 opcode = (cond == eq) ? BEQ : BNE; 5482 opcode = (cond == eq) ? BEQ : BNE;
5483 instr = (instr & ~kOpcodeMask) | opcode; 5483 instr = (instr & ~kOpcodeMask) | opcode;
5484 masm_.emit(instr); 5484 masm_.emit(instr);
5485 } 5485 }
5486 5486
5487 5487
5488 } } // namespace v8::internal 5488 } } // namespace v8::internal
5489 5489
5490 #endif // V8_TARGET_ARCH_MIPS 5490 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698