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

Side by Side Diff: src/mips/ic-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/code-stubs-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 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 if (check_map == kCheckMap) { 1262 if (check_map == kCheckMap) {
1263 // Check for fast double array case. If this fails, call through to the 1263 // Check for fast double array case. If this fails, call through to the
1264 // runtime. 1264 // runtime.
1265 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); 1265 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex);
1266 __ Branch(slow, ne, elements_map, Operand(at)); 1266 __ Branch(slow, ne, elements_map, Operand(at));
1267 } 1267 }
1268 __ bind(&fast_double_without_map_check); 1268 __ bind(&fast_double_without_map_check);
1269 __ StoreNumberToDoubleElements(value, 1269 __ StoreNumberToDoubleElements(value,
1270 key, 1270 key,
1271 receiver, 1271 receiver,
1272 elements, 1272 elements, // Overwritten.
1273 a3, 1273 a3, // Scratch regs...
1274 t0, 1274 t0,
1275 t1, 1275 t1,
1276 t2, 1276 t2,
1277 &transition_double_elements); 1277 &transition_double_elements);
1278 if (increment_length == kIncrementLength) { 1278 if (increment_length == kIncrementLength) {
1279 // Add 1 to receiver->length. 1279 // Add 1 to receiver->length.
1280 __ Addu(scratch_value, key, Operand(Smi::FromInt(1))); 1280 __ Addu(scratch_value, key, Operand(Smi::FromInt(1)));
1281 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); 1281 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset));
1282 } 1282 }
1283 __ Ret(); 1283 __ Ret();
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 } else { 1787 } else {
1788 ASSERT(Assembler::IsBne(branch_instr)); 1788 ASSERT(Assembler::IsBne(branch_instr));
1789 patcher.ChangeBranchCondition(eq); 1789 patcher.ChangeBranchCondition(eq);
1790 } 1790 }
1791 } 1791 }
1792 1792
1793 1793
1794 } } // namespace v8::internal 1794 } } // namespace v8::internal
1795 1795
1796 #endif // V8_TARGET_ARCH_MIPS 1796 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698