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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 10802034: Moved lastadded from DescriptorArray to Map. Renamed kLastAdded to kEnumCache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 8 years, 5 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/lithium-codegen-arm.cc ('k') | src/factory.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 3705 matching lines...) Expand 10 before | Expand all | Expand 10 after
3716 3716
3717 CheckMap(r3, 3717 CheckMap(r3,
3718 r7, 3718 r7,
3719 isolate()->factory()->fixed_array_map(), 3719 isolate()->factory()->fixed_array_map(),
3720 call_runtime, 3720 call_runtime,
3721 DONT_DO_SMI_CHECK); 3721 DONT_DO_SMI_CHECK);
3722 3722
3723 // Check that there is an enum cache in the non-empty instance 3723 // Check that there is an enum cache in the non-empty instance
3724 // descriptors (r3). This is the case if the next enumeration 3724 // descriptors (r3). This is the case if the next enumeration
3725 // index field does not contain a smi. 3725 // index field does not contain a smi.
3726 ldr(r3, FieldMemOperand(r3, DescriptorArray::kLastAddedOffset)); 3726 ldr(r3, FieldMemOperand(r3, DescriptorArray::kEnumCacheOffset));
3727 JumpIfSmi(r3, call_runtime); 3727 JumpIfSmi(r3, call_runtime);
3728 3728
3729 // For all objects but the receiver, check that the cache is empty. 3729 // For all objects but the receiver, check that the cache is empty.
3730 Label check_prototype; 3730 Label check_prototype;
3731 cmp(r1, r0); 3731 cmp(r1, r0);
3732 b(eq, &check_prototype); 3732 b(eq, &check_prototype);
3733 ldr(r3, FieldMemOperand(r3, DescriptorArray::kEnumCacheBridgeCacheOffset)); 3733 ldr(r3, FieldMemOperand(r3, DescriptorArray::kEnumCacheBridgeCacheOffset));
3734 cmp(r3, empty_fixed_array_value); 3734 cmp(r3, empty_fixed_array_value);
3735 b(ne, call_runtime); 3735 b(ne, call_runtime);
3736 3736
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
3801 void CodePatcher::EmitCondition(Condition cond) { 3801 void CodePatcher::EmitCondition(Condition cond) {
3802 Instr instr = Assembler::instr_at(masm_.pc_); 3802 Instr instr = Assembler::instr_at(masm_.pc_);
3803 instr = (instr & ~kCondMask) | cond; 3803 instr = (instr & ~kCondMask) | cond;
3804 masm_.emit(instr); 3804 masm_.emit(instr);
3805 } 3805 }
3806 3806
3807 3807
3808 } } // namespace v8::internal 3808 } } // namespace v8::internal
3809 3809
3810 #endif // V8_TARGET_ARCH_ARM 3810 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698