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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 7327016: MIPS: port Fix a typo in KeyedStoreIC, restore Kraken performance. (Closed)
Patch Set: Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4183 matching lines...) Expand 10 before | Expand all | Expand 10 after
4194 Register receiver_reg = a2; 4194 Register receiver_reg = a2;
4195 Register scratch = a3; 4195 Register scratch = a3;
4196 Register elements_reg = t0; 4196 Register elements_reg = t0;
4197 Register scratch2 = t1; 4197 Register scratch2 = t1;
4198 Register scratch3 = t2; 4198 Register scratch3 = t2;
4199 4199
4200 // This stub is meant to be tail-jumped to, the receiver must already 4200 // This stub is meant to be tail-jumped to, the receiver must already
4201 // have been verified by the caller to not be a smi. 4201 // have been verified by the caller to not be a smi.
4202 4202
4203 // Check that the key is a smi. 4203 // Check that the key is a smi.
4204 __ JumpIfNotSmi(a0, &miss_force_generic); 4204 __ JumpIfNotSmi(key_reg, &miss_force_generic);
4205 4205
4206 // Get the elements array and make sure it is a fast element array, not 'cow'. 4206 // Get the elements array and make sure it is a fast element array, not 'cow'.
4207 __ lw(elements_reg, 4207 __ lw(elements_reg,
4208 FieldMemOperand(receiver_reg, JSObject::kElementsOffset)); 4208 FieldMemOperand(receiver_reg, JSObject::kElementsOffset));
4209 __ CheckMap(elements_reg, 4209 __ CheckMap(elements_reg,
4210 scratch, 4210 scratch,
4211 Heap::kFixedArrayMapRootIndex, 4211 Heap::kFixedArrayMapRootIndex,
4212 &miss_force_generic, 4212 &miss_force_generic,
4213 DONT_DO_SMI_CHECK); 4213 DONT_DO_SMI_CHECK);
4214 4214
(...skipping 23 matching lines...) Expand all
4238 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); 4238 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric();
4239 __ Jump(ic, RelocInfo::CODE_TARGET); 4239 __ Jump(ic, RelocInfo::CODE_TARGET);
4240 } 4240 }
4241 4241
4242 4242
4243 #undef __ 4243 #undef __
4244 4244
4245 } } // namespace v8::internal 4245 } } // namespace v8::internal
4246 4246
4247 #endif // V8_TARGET_ARCH_MIPS 4247 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698