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

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

Issue 14996004: Track heap objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/property-details.h ('k') | src/x64/lithium-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 3903 matching lines...) Expand 10 before | Expand all | Expand 10 after
3914 if (FLAG_track_fields && representation.IsSmi()) { 3914 if (FLAG_track_fields && representation.IsSmi()) {
3915 if (instr->value()->IsConstantOperand()) { 3915 if (instr->value()->IsConstantOperand()) {
3916 LConstantOperand* operand_value = LConstantOperand::cast(instr->value()); 3916 LConstantOperand* operand_value = LConstantOperand::cast(instr->value());
3917 if (!IsInteger32Constant(operand_value)) { 3917 if (!IsInteger32Constant(operand_value)) {
3918 DeoptimizeIf(no_condition, instr->environment()); 3918 DeoptimizeIf(no_condition, instr->environment());
3919 } 3919 }
3920 } else { 3920 } else {
3921 Register value = ToRegister(instr->value()); 3921 Register value = ToRegister(instr->value());
3922 __ Integer32ToSmi(value, value); 3922 __ Integer32ToSmi(value, value);
3923 } 3923 }
3924 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) {
3925 if (instr->value()->IsConstantOperand()) {
3926 LConstantOperand* operand_value = LConstantOperand::cast(instr->value());
3927 if (IsInteger32Constant(operand_value)) {
3928 DeoptimizeIf(no_condition, instr->environment());
3929 }
3930 } else {
3931 if (!instr->hydrogen()->value()->type().IsHeapObject()) {
3932 Register value = ToRegister(instr->value());
3933 Condition cc = masm()->CheckSmi(value);
3934 DeoptimizeIf(cc, instr->environment());
3935 }
3936 }
3924 } else if (FLAG_track_double_fields && representation.IsDouble()) { 3937 } else if (FLAG_track_double_fields && representation.IsDouble()) {
3925 ASSERT(transition.is_null()); 3938 ASSERT(transition.is_null());
3926 ASSERT(instr->is_in_object()); 3939 ASSERT(instr->is_in_object());
3927 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); 3940 ASSERT(!instr->hydrogen()->NeedsWriteBarrier());
3928 XMMRegister value = ToDoubleRegister(instr->value()); 3941 XMMRegister value = ToDoubleRegister(instr->value());
3929 __ movsd(FieldOperand(object, offset), value); 3942 __ movsd(FieldOperand(object, offset), value);
3930 return; 3943 return;
3931 } 3944 }
3932 3945
3933 if (!transition.is_null()) { 3946 if (!transition.is_null()) {
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
5597 FixedArray::kHeaderSize - kPointerSize)); 5610 FixedArray::kHeaderSize - kPointerSize));
5598 __ bind(&done); 5611 __ bind(&done);
5599 } 5612 }
5600 5613
5601 5614
5602 #undef __ 5615 #undef __
5603 5616
5604 } } // namespace v8::internal 5617 } } // namespace v8::internal
5605 5618
5606 #endif // V8_TARGET_ARCH_X64 5619 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/property-details.h ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698