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/lithium-codegen-arm.cc

Issue 10695120: Ensure that all descriptors have a valid enumeration index, and replace NextEnumIndex with LastAdde… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment. 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 5342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 __ bind(&use_cache); 5353 __ bind(&use_cache);
5354 } 5354 }
5355 5355
5356 5356
5357 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5357 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5358 Register map = ToRegister(instr->map()); 5358 Register map = ToRegister(instr->map());
5359 Register result = ToRegister(instr->result()); 5359 Register result = ToRegister(instr->result());
5360 Register scratch = ToRegister(instr->scratch()); 5360 Register scratch = ToRegister(instr->scratch());
5361 __ LoadInstanceDescriptors(map, result, scratch); 5361 __ LoadInstanceDescriptors(map, result, scratch);
5362 __ ldr(result, 5362 __ ldr(result,
5363 FieldMemOperand(result, DescriptorArray::kEnumerationIndexOffset)); 5363 FieldMemOperand(result, DescriptorArray::kLastAddedOffset));
5364 __ ldr(result, 5364 __ ldr(result,
5365 FieldMemOperand(result, FixedArray::SizeFor(instr->idx()))); 5365 FieldMemOperand(result, FixedArray::SizeFor(instr->idx())));
5366 __ cmp(result, Operand(0)); 5366 __ cmp(result, Operand(0));
5367 DeoptimizeIf(eq, instr->environment()); 5367 DeoptimizeIf(eq, instr->environment());
5368 } 5368 }
5369 5369
5370 5370
5371 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { 5371 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) {
5372 Register object = ToRegister(instr->value()); 5372 Register object = ToRegister(instr->value());
5373 Register map = ToRegister(instr->map()); 5373 Register map = ToRegister(instr->map());
(...skipping 25 matching lines...) Expand all
5399 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5399 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5400 __ ldr(result, FieldMemOperand(scratch, 5400 __ ldr(result, FieldMemOperand(scratch,
5401 FixedArray::kHeaderSize - kPointerSize)); 5401 FixedArray::kHeaderSize - kPointerSize));
5402 __ bind(&done); 5402 __ bind(&done);
5403 } 5403 }
5404 5404
5405 5405
5406 #undef __ 5406 #undef __
5407 5407
5408 } } // namespace v8::internal 5408 } } // 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