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

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

Issue 819001: Revert change to always call builtins for Array functions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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 | Annotate | Revision Log
« 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
919 default: 931 default:
920 UNREACHABLE(); 932 UNREACHABLE();
921 } 933 }
922 934
923 __ InvokeFunction(function, arguments(), JUMP_FUNCTION); 935 __ InvokeFunction(function, arguments(), JUMP_FUNCTION);
924 936
925 // Handle call cache miss. 937 // Handle call cache miss.
926 __ bind(&miss); 938 __ bind(&miss);
927 Handle<Code> ic = ComputeCallMiss(arguments().immediate()); 939 Handle<Code> ic = ComputeCallMiss(arguments().immediate());
928 __ Jump(ic, RelocInfo::CODE_TARGET); 940 __ Jump(ic, RelocInfo::CODE_TARGET);
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1801 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1790 1802
1791 // Return the generated code. 1803 // Return the generated code.
1792 return GetCode(); 1804 return GetCode();
1793 } 1805 }
1794 1806
1795 1807
1796 #undef __ 1808 #undef __
1797 1809
1798 } } // namespace v8::internal 1810 } } // 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