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

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

Issue 11412120: MIPS: Support all fast elements kinds in the major array operations. Currently missing support for … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
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 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 __ bind(fast_double); 1261 __ bind(fast_double);
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,
1272 elements, // Overwritten. 1271 elements, // Overwritten.
1273 a3, // Scratch regs... 1272 a3, // Scratch regs...
1274 t0, 1273 t0,
1275 t1, 1274 t1,
1276 t2, 1275 t2,
1277 &transition_double_elements); 1276 &transition_double_elements);
1278 if (increment_length == kIncrementLength) { 1277 if (increment_length == kIncrementLength) {
1279 // Add 1 to receiver->length. 1278 // Add 1 to receiver->length.
1280 __ Addu(scratch_value, key, Operand(Smi::FromInt(1))); 1279 __ Addu(scratch_value, key, Operand(Smi::FromInt(1)));
1281 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); 1280 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset));
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 } else { 1766 } else {
1768 ASSERT(Assembler::IsBne(branch_instr)); 1767 ASSERT(Assembler::IsBne(branch_instr));
1769 patcher.ChangeBranchCondition(eq); 1768 patcher.ChangeBranchCondition(eq);
1770 } 1769 }
1771 } 1770 }
1772 1771
1773 1772
1774 } } // namespace v8::internal 1773 } } // namespace v8::internal
1775 1774
1776 #endif // V8_TARGET_ARCH_MIPS 1775 #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') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698