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

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

Issue 159500: Fix pixel array support for x64 and make the fast Array functions... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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/ia32/stub-cache-ia32.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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 GenerateLoadGlobalFunctionPrototype(masm(), 671 GenerateLoadGlobalFunctionPrototype(masm(),
672 Context::BOOLEAN_FUNCTION_INDEX, 672 Context::BOOLEAN_FUNCTION_INDEX,
673 r2); 673 r2);
674 CheckPrototypes(JSObject::cast(object->GetPrototype()), r2, holder, r3, 674 CheckPrototypes(JSObject::cast(object->GetPrototype()), r2, holder, r3,
675 r1, name, &miss); 675 r1, name, &miss);
676 break; 676 break;
677 } 677 }
678 678
679 case JSARRAY_HAS_FAST_ELEMENTS_CHECK: 679 case JSARRAY_HAS_FAST_ELEMENTS_CHECK:
680 CheckPrototypes(JSObject::cast(object), r1, holder, r3, r2, name, &miss); 680 CheckPrototypes(JSObject::cast(object), r1, holder, r3, r2, name, &miss);
681 // Make sure object->elements()->map() != Heap::hash_table_map() 681 // Make sure object->HasFastElements().
682 // Get the elements array of the object. 682 // Get the elements array of the object.
683 __ ldr(r3, FieldMemOperand(r1, JSObject::kElementsOffset)); 683 __ ldr(r3, FieldMemOperand(r1, JSObject::kElementsOffset));
684 // Check that the object is in fast mode (not dictionary). 684 // Check that the object is in fast mode (not dictionary).
685 __ ldr(r2, FieldMemOperand(r3, HeapObject::kMapOffset)); 685 __ ldr(r2, FieldMemOperand(r3, HeapObject::kMapOffset));
686 __ cmp(r2, Operand(Factory::hash_table_map())); 686 __ cmp(r2, Operand(Factory::fixed_array_map()));
687 __ b(eq, &miss); 687 __ b(ne, &miss);
688 break; 688 break;
689 689
690 default: 690 default:
691 UNREACHABLE(); 691 UNREACHABLE();
692 } 692 }
693 693
694 // Get the function and setup the context. 694 // Get the function and setup the context.
695 __ mov(r1, Operand(Handle<JSFunction>(function))); 695 __ mov(r1, Operand(Handle<JSFunction>(function)));
696 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); 696 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
697 697
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 __ Jump(ic, RelocInfo::CODE_TARGET); 1324 __ Jump(ic, RelocInfo::CODE_TARGET);
1325 1325
1326 // Return the generated code. 1326 // Return the generated code.
1327 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name); 1327 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name);
1328 } 1328 }
1329 1329
1330 1330
1331 #undef __ 1331 #undef __
1332 1332
1333 } } // namespace v8::internal 1333 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698