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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 4987 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 DeoptimizeIf(not_equal, instr->environment()); 4998 DeoptimizeIf(not_equal, instr->environment());
4999 __ bind(&use_cache); 4999 __ bind(&use_cache);
5000 } 5000 }
5001 5001
5002 5002
5003 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 5003 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
5004 Register map = ToRegister(instr->map()); 5004 Register map = ToRegister(instr->map());
5005 Register result = ToRegister(instr->result()); 5005 Register result = ToRegister(instr->result());
5006 __ LoadInstanceDescriptors(map, result); 5006 __ LoadInstanceDescriptors(map, result);
5007 __ movq(result, 5007 __ movq(result,
5008 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset)); 5008 FieldOperand(result, DescriptorArray::kLastAddedOffset));
5009 __ movq(result, 5009 __ movq(result,
5010 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); 5010 FieldOperand(result, FixedArray::SizeFor(instr->idx())));
5011 Condition cc = masm()->CheckSmi(result); 5011 Condition cc = masm()->CheckSmi(result);
5012 DeoptimizeIf(cc, instr->environment()); 5012 DeoptimizeIf(cc, instr->environment());
5013 } 5013 }
5014 5014
5015 5015
5016 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { 5016 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) {
5017 Register object = ToRegister(instr->value()); 5017 Register object = ToRegister(instr->value());
5018 __ cmpq(ToRegister(instr->map()), 5018 __ cmpq(ToRegister(instr->map()),
(...skipping 26 matching lines...) Expand all
5045 FixedArray::kHeaderSize - kPointerSize)); 5045 FixedArray::kHeaderSize - kPointerSize));
5046 __ bind(&done); 5046 __ bind(&done);
5047 } 5047 }
5048 5048
5049 5049
5050 #undef __ 5050 #undef __
5051 5051
5052 } } // namespace v8::internal 5052 } } // namespace v8::internal
5053 5053
5054 #endif // V8_TARGET_ARCH_X64 5054 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698