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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 6581031: ARM: Port r5445... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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 | « src/arm/full-codegen-arm.cc ('k') | 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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 __ j(not_equal, &call_runtime); 888 __ j(not_equal, &call_runtime);
889 889
890 // Check that instance descriptors are not empty so that we can 890 // Check that instance descriptors are not empty so that we can
891 // check for an enum cache. Leave the map in ebx for the subsequent 891 // check for an enum cache. Leave the map in ebx for the subsequent
892 // prototype load. 892 // prototype load.
893 __ mov(ebx, FieldOperand(ecx, HeapObject::kMapOffset)); 893 __ mov(ebx, FieldOperand(ecx, HeapObject::kMapOffset));
894 __ mov(edx, FieldOperand(ebx, Map::kInstanceDescriptorsOffset)); 894 __ mov(edx, FieldOperand(ebx, Map::kInstanceDescriptorsOffset));
895 __ cmp(edx, Factory::empty_descriptor_array()); 895 __ cmp(edx, Factory::empty_descriptor_array());
896 __ j(equal, &call_runtime); 896 __ j(equal, &call_runtime);
897 897
898 // Check that there in an enum cache in the non-empty instance 898 // Check that there is an enum cache in the non-empty instance
899 // descriptors (edx). This is the case if the next enumeration 899 // descriptors (edx). This is the case if the next enumeration
900 // index field does not contain a smi. 900 // index field does not contain a smi.
901 __ mov(edx, FieldOperand(edx, DescriptorArray::kEnumerationIndexOffset)); 901 __ mov(edx, FieldOperand(edx, DescriptorArray::kEnumerationIndexOffset));
902 __ test(edx, Immediate(kSmiTagMask)); 902 __ test(edx, Immediate(kSmiTagMask));
903 __ j(zero, &call_runtime); 903 __ j(zero, &call_runtime);
904 904
905 // For all objects but the receiver, check that the cache is empty. 905 // For all objects but the receiver, check that the cache is empty.
906 NearLabel check_prototype; 906 NearLabel check_prototype;
907 __ cmp(ecx, Operand(eax)); 907 __ cmp(ecx, Operand(eax));
908 __ j(equal, &check_prototype); 908 __ j(equal, &check_prototype);
(...skipping 3526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4435 // And return. 4435 // And return.
4436 __ ret(0); 4436 __ ret(0);
4437 } 4437 }
4438 4438
4439 4439
4440 #undef __ 4440 #undef __
4441 4441
4442 } } // namespace v8::internal 4442 } } // namespace v8::internal
4443 4443
4444 #endif // V8_TARGET_ARCH_IA32 4444 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698