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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-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 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 5277 matching lines...) Expand 10 before | Expand all | Expand 10 after
5288 DeoptimizeIf(not_equal, instr->environment()); 5288 DeoptimizeIf(not_equal, instr->environment());
5289 __ bind(&use_cache); 5289 __ bind(&use_cache);
5290 } 5290 }
5291 5291
5292 5292
5293 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5293 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5294 Register map = ToRegister(instr->map()); 5294 Register map = ToRegister(instr->map());
5295 Register result = ToRegister(instr->result()); 5295 Register result = ToRegister(instr->result());
5296 __ LoadInstanceDescriptors(map, result); 5296 __ LoadInstanceDescriptors(map, result);
5297 __ mov(result, 5297 __ mov(result,
5298 FieldOperand(result, DescriptorArray::kLastAddedOffset)); 5298 FieldOperand(result, DescriptorArray::kEnumCacheOffset));
5299 __ mov(result, 5299 __ mov(result,
5300 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); 5300 FieldOperand(result, FixedArray::SizeFor(instr->idx())));
5301 __ test(result, result); 5301 __ test(result, result);
5302 DeoptimizeIf(equal, instr->environment()); 5302 DeoptimizeIf(equal, instr->environment());
5303 } 5303 }
5304 5304
5305 5305
5306 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { 5306 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) {
5307 Register object = ToRegister(instr->value()); 5307 Register object = ToRegister(instr->value());
5308 __ cmp(ToRegister(instr->map()), 5308 __ cmp(ToRegister(instr->map()),
(...skipping 25 matching lines...) Expand all
5334 FixedArray::kHeaderSize - kPointerSize)); 5334 FixedArray::kHeaderSize - kPointerSize));
5335 __ bind(&done); 5335 __ bind(&done);
5336 } 5336 }
5337 5337
5338 5338
5339 #undef __ 5339 #undef __
5340 5340
5341 } } // namespace v8::internal 5341 } } // namespace v8::internal
5342 5342
5343 #endif // V8_TARGET_ARCH_IA32 5343 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698