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

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

Issue 660298: Always invoke C++ ArrayPush builtin. (Closed)
Patch Set: Next round Created 10 years, 9 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 | src/bootstrapper.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 // Check that the maps starting from the prototype haven't changed. 909 // Check that the maps starting from the prototype haven't changed.
910 GenerateLoadGlobalFunctionPrototype(masm(), 910 GenerateLoadGlobalFunctionPrototype(masm(),
911 Context::BOOLEAN_FUNCTION_INDEX, 911 Context::BOOLEAN_FUNCTION_INDEX,
912 r0); 912 r0);
913 CheckPrototypes(JSObject::cast(object->GetPrototype()), r0, holder, r3, 913 CheckPrototypes(JSObject::cast(object->GetPrototype()), r0, holder, r3,
914 r1, name, &miss); 914 r1, name, &miss);
915 } 915 }
916 break; 916 break;
917 } 917 }
918 918
919 case JSARRAY_HAS_FAST_ELEMENTS_CHECK:
920 CheckPrototypes(JSObject::cast(object), r1, holder, r3, r0, name, &miss);
921 // Make sure object->HasFastElements().
922 // Get the elements array of the object.
923 __ ldr(r3, FieldMemOperand(r1, JSObject::kElementsOffset));
924 // Check that the object is in fast mode (not dictionary).
925 __ ldr(r0, FieldMemOperand(r3, HeapObject::kMapOffset));
926 __ LoadRoot(ip, Heap::kFixedArrayMapRootIndex);
927 __ cmp(r0, ip);
928 __ b(ne, &miss);
929 break;
930
931 default: 919 default:
932 UNREACHABLE(); 920 UNREACHABLE();
933 } 921 }
934 922
935 __ InvokeFunction(function, arguments(), JUMP_FUNCTION); 923 __ InvokeFunction(function, arguments(), JUMP_FUNCTION);
936 924
937 // Handle call cache miss. 925 // Handle call cache miss.
938 __ bind(&miss); 926 __ bind(&miss);
939 Handle<Code> ic = ComputeCallMiss(arguments().immediate()); 927 Handle<Code> ic = ComputeCallMiss(arguments().immediate());
940 __ Jump(ic, RelocInfo::CODE_TARGET); 928 __ Jump(ic, RelocInfo::CODE_TARGET);
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1789 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1802 1790
1803 // Return the generated code. 1791 // Return the generated code.
1804 return GetCode(); 1792 return GetCode();
1805 } 1793 }
1806 1794
1807 1795
1808 #undef __ 1796 #undef __
1809 1797
1810 } } // namespace v8::internal 1798 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698