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

Side by Side Diff: src/arm/lithium-codegen-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/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 5346 matching lines...) Expand 10 before | Expand all | Expand 10 after
5357 __ bind(&use_cache); 5357 __ bind(&use_cache);
5358 } 5358 }
5359 5359
5360 5360
5361 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5361 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5362 Register map = ToRegister(instr->map()); 5362 Register map = ToRegister(instr->map());
5363 Register result = ToRegister(instr->result()); 5363 Register result = ToRegister(instr->result());
5364 Register scratch = ToRegister(instr->scratch()); 5364 Register scratch = ToRegister(instr->scratch());
5365 __ LoadInstanceDescriptors(map, result, scratch); 5365 __ LoadInstanceDescriptors(map, result, scratch);
5366 __ ldr(result, 5366 __ ldr(result,
5367 FieldMemOperand(result, DescriptorArray::kLastAddedOffset)); 5367 FieldMemOperand(result, DescriptorArray::kEnumCacheOffset));
5368 __ ldr(result, 5368 __ ldr(result,
5369 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); 5369 FieldMemOperand(result, FixedArray::SizeFor(instr->idx())));
5370 __ cmp(result, Operand(0)); 5370 __ cmp(result, Operand(0));
5371 DeoptimizeIf(eq, instr->environment()); 5371 DeoptimizeIf(eq, instr->environment());
5372 } 5372 }
5373 5373
5374 5374
5375 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { 5375 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) {
5376 Register object = ToRegister(instr->value()); 5376 Register object = ToRegister(instr->value());
5377 Register map = ToRegister(instr->map()); 5377 Register map = ToRegister(instr->map());
(...skipping 25 matching lines...) Expand all
5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5404 __ ldr(result, FieldMemOperand(scratch, 5404 __ ldr(result, FieldMemOperand(scratch,
5405 FixedArray::kHeaderSize - kPointerSize)); 5405 FixedArray::kHeaderSize - kPointerSize));
5406 __ bind(&done); 5406 __ bind(&done);
5407 } 5407 }
5408 5408
5409 5409
5410 #undef __ 5410 #undef __
5411 5411
5412 } } // namespace v8::internal 5412 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698