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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 14649015: Merged r13828, r13847 into 3.17 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.17
Patch Set: Created 7 years, 7 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/version.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 3305 matching lines...) Expand 10 before | Expand all | Expand 10 after
3316 // (currently anything except for external arrays which means anything with 3316 // (currently anything except for external arrays which means anything with
3317 // elements of FixedArray type). Value must be a number, but only smis are 3317 // elements of FixedArray type). Value must be a number, but only smis are
3318 // accepted as the most common case. 3318 // accepted as the most common case.
3319 3319
3320 Label miss; 3320 Label miss;
3321 3321
3322 Register receiver = edx; 3322 Register receiver = edx;
3323 Register value = eax; 3323 Register value = eax;
3324 Register scratch = ebx; 3324 Register scratch = ebx;
3325 3325
3326 if (kind() == Code::KEYED_LOAD_IC) { 3326 if (kind() == Code::KEYED_STORE_IC) {
3327 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); 3327 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol()));
3328 __ j(not_equal, &miss); 3328 __ j(not_equal, &miss);
3329 } 3329 }
3330 3330
3331 // Check that the receiver isn't a smi. 3331 // Check that the receiver isn't a smi.
3332 __ JumpIfSmi(receiver, &miss); 3332 __ JumpIfSmi(receiver, &miss);
3333 3333
3334 // Check that the object is a JS array. 3334 // Check that the object is a JS array.
3335 __ CmpObjectType(receiver, JS_ARRAY_TYPE, scratch); 3335 __ CmpObjectType(receiver, JS_ARRAY_TYPE, scratch);
3336 __ j(not_equal, &miss); 3336 __ j(not_equal, &miss);
(...skipping 4344 matching lines...) Expand 10 before | Expand all | Expand 10 after
7681 // Restore ecx. 7681 // Restore ecx.
7682 __ pop(ecx); 7682 __ pop(ecx);
7683 __ ret(0); 7683 __ ret(0);
7684 } 7684 }
7685 7685
7686 #undef __ 7686 #undef __
7687 7687
7688 } } // namespace v8::internal 7688 } } // namespace v8::internal
7689 7689
7690 #endif // V8_TARGET_ARCH_IA32 7690 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698