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

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

Issue 15102002: MIPS: 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 | « no previous file | src/mips/lithium-mips.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 3893 matching lines...) Expand 10 before | Expand all | Expand 10 after
3904 int offset = instr->offset(); 3904 int offset = instr->offset();
3905 3905
3906 Handle<Map> transition = instr->transition(); 3906 Handle<Map> transition = instr->transition();
3907 3907
3908 if (FLAG_track_fields && representation.IsSmi()) { 3908 if (FLAG_track_fields && representation.IsSmi()) {
3909 Register value = ToRegister(instr->value()); 3909 Register value = ToRegister(instr->value());
3910 __ SmiTagCheckOverflow(value, value, scratch); 3910 __ SmiTagCheckOverflow(value, value, scratch);
3911 if (!instr->hydrogen()->value()->range()->IsInSmiRange()) { 3911 if (!instr->hydrogen()->value()->range()->IsInSmiRange()) {
3912 DeoptimizeIf(lt, instr->environment(), scratch, Operand(zero_reg)); 3912 DeoptimizeIf(lt, instr->environment(), scratch, Operand(zero_reg));
3913 } 3913 }
3914 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) {
3915 Register value = ToRegister(instr->value());
3916 if (!instr->hydrogen()->value()->type().IsHeapObject()) {
3917 __ And(scratch, value, Operand(kSmiTagMask));
3918 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg));
3919 }
3914 } else if (FLAG_track_double_fields && representation.IsDouble()) { 3920 } else if (FLAG_track_double_fields && representation.IsDouble()) {
3915 ASSERT(transition.is_null()); 3921 ASSERT(transition.is_null());
3916 ASSERT(instr->is_in_object()); 3922 ASSERT(instr->is_in_object());
3917 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); 3923 ASSERT(!instr->hydrogen()->NeedsWriteBarrier());
3918 DoubleRegister value = ToDoubleRegister(instr->value()); 3924 DoubleRegister value = ToDoubleRegister(instr->value());
3919 __ sdc1(value, FieldMemOperand(object, offset)); 3925 __ sdc1(value, FieldMemOperand(object, offset));
3920 return; 3926 return;
3921 } 3927 }
3922 3928
3923 if (!transition.is_null()) { 3929 if (!transition.is_null()) {
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after
5654 __ Subu(scratch, result, scratch); 5660 __ Subu(scratch, result, scratch);
5655 __ lw(result, FieldMemOperand(scratch, 5661 __ lw(result, FieldMemOperand(scratch,
5656 FixedArray::kHeaderSize - kPointerSize)); 5662 FixedArray::kHeaderSize - kPointerSize));
5657 __ bind(&done); 5663 __ bind(&done);
5658 } 5664 }
5659 5665
5660 5666
5661 #undef __ 5667 #undef __
5662 5668
5663 } } // namespace v8::internal 5669 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698