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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/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 5275 matching lines...) Expand 10 before | Expand all | Expand 10 after
5286 DeoptimizeIf(not_equal, instr->environment()); 5286 DeoptimizeIf(not_equal, instr->environment());
5287 __ bind(&use_cache); 5287 __ bind(&use_cache);
5288 } 5288 }
5289 5289
5290 5290
5291 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5291 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5292 Register map = ToRegister(instr->map()); 5292 Register map = ToRegister(instr->map());
5293 Register result = ToRegister(instr->result()); 5293 Register result = ToRegister(instr->result());
5294 __ LoadInstanceDescriptors(map, result); 5294 __ LoadInstanceDescriptors(map, result);
5295 __ mov(result, 5295 __ mov(result,
5296 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset)); 5296 FieldOperand(result, DescriptorArray::kLastAddedOffset));
5297 __ mov(result, 5297 __ mov(result,
5298 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); 5298 FieldOperand(result, FixedArray::SizeFor(instr->idx())));
5299 __ test(result, result); 5299 __ test(result, result);
5300 DeoptimizeIf(equal, instr->environment()); 5300 DeoptimizeIf(equal, instr->environment());
5301 } 5301 }
5302 5302
5303 5303
5304 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { 5304 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) {
5305 Register object = ToRegister(instr->value()); 5305 Register object = ToRegister(instr->value());
5306 __ cmp(ToRegister(instr->map()), 5306 __ cmp(ToRegister(instr->map()),
(...skipping 25 matching lines...) Expand all
5332 FixedArray::kHeaderSize - kPointerSize)); 5332 FixedArray::kHeaderSize - kPointerSize));
5333 __ bind(&done); 5333 __ bind(&done);
5334 } 5334 }
5335 5335
5336 5336
5337 #undef __ 5337 #undef __
5338 5338
5339 } } // namespace v8::internal 5339 } } // namespace v8::internal
5340 5340
5341 #endif // V8_TARGET_ARCH_IA32 5341 #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