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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 9836032: Fix deopt condition in ForIn on x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | 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 4697 matching lines...) Expand 10 before | Expand all | Expand 10 after
4708 4708
4709 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { 4709 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) {
4710 Register map = ToRegister(instr->map()); 4710 Register map = ToRegister(instr->map());
4711 Register result = ToRegister(instr->result()); 4711 Register result = ToRegister(instr->result());
4712 __ LoadInstanceDescriptors(map, result); 4712 __ LoadInstanceDescriptors(map, result);
4713 __ movq(result, 4713 __ movq(result,
4714 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset)); 4714 FieldOperand(result, DescriptorArray::kEnumerationIndexOffset));
4715 __ movq(result, 4715 __ movq(result,
4716 FieldOperand(result, FixedArray::SizeFor(instr->idx()))); 4716 FieldOperand(result, FixedArray::SizeFor(instr->idx())));
4717 Condition cc = masm()->CheckSmi(result); 4717 Condition cc = masm()->CheckSmi(result);
4718 DeoptimizeIf(NegateCondition(cc), instr->environment()); 4718 DeoptimizeIf(cc, instr->environment());
4719 } 4719 }
4720 4720
4721 4721
4722 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) { 4722 void LCodeGen::DoCheckMapValue(LCheckMapValue* instr) {
4723 Register object = ToRegister(instr->value()); 4723 Register object = ToRegister(instr->value());
4724 __ cmpq(ToRegister(instr->map()), 4724 __ cmpq(ToRegister(instr->map()),
4725 FieldOperand(object, HeapObject::kMapOffset)); 4725 FieldOperand(object, HeapObject::kMapOffset));
4726 DeoptimizeIf(not_equal, instr->environment()); 4726 DeoptimizeIf(not_equal, instr->environment());
4727 } 4727 }
4728 4728
(...skipping 22 matching lines...) Expand all
4751 FixedArray::kHeaderSize - kPointerSize)); 4751 FixedArray::kHeaderSize - kPointerSize));
4752 __ bind(&done); 4752 __ bind(&done);
4753 } 4753 }
4754 4754
4755 4755
4756 #undef __ 4756 #undef __
4757 4757
4758 } } // namespace v8::internal 4758 } } // namespace v8::internal
4759 4759
4760 #endif // V8_TARGET_ARCH_X64 4760 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698