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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/arm/stub-cache-arm.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 4211 matching lines...) Expand 10 before | Expand all | Expand 10 after
4222 int offset = instr->offset(); 4222 int offset = instr->offset();
4223 4223
4224 Handle<Map> transition = instr->transition(); 4224 Handle<Map> transition = instr->transition();
4225 4225
4226 if (FLAG_track_fields && representation.IsSmi()) { 4226 if (FLAG_track_fields && representation.IsSmi()) {
4227 Register value = ToRegister(instr->value()); 4227 Register value = ToRegister(instr->value());
4228 __ SmiTag(value, value, SetCC); 4228 __ SmiTag(value, value, SetCC);
4229 if (!instr->hydrogen()->value()->range()->IsInSmiRange()) { 4229 if (!instr->hydrogen()->value()->range()->IsInSmiRange()) {
4230 DeoptimizeIf(vs, instr->environment()); 4230 DeoptimizeIf(vs, instr->environment());
4231 } 4231 }
4232 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) {
4233 Register value = ToRegister(instr->value());
4234 if (!instr->hydrogen()->value()->type().IsHeapObject()) {
4235 __ tst(value, Operand(kSmiTagMask));
4236 DeoptimizeIf(eq, instr->environment());
4237 }
4232 } else if (FLAG_track_double_fields && representation.IsDouble()) { 4238 } else if (FLAG_track_double_fields && representation.IsDouble()) {
4233 ASSERT(transition.is_null()); 4239 ASSERT(transition.is_null());
4234 ASSERT(instr->is_in_object()); 4240 ASSERT(instr->is_in_object());
4235 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); 4241 ASSERT(!instr->hydrogen()->NeedsWriteBarrier());
4236 DwVfpRegister value = ToDoubleRegister(instr->value()); 4242 DwVfpRegister value = ToDoubleRegister(instr->value());
4237 __ vstr(value, FieldMemOperand(object, offset)); 4243 __ vstr(value, FieldMemOperand(object, offset));
4238 return; 4244 return;
4239 } 4245 }
4240 4246
4241 if (!transition.is_null()) { 4247 if (!transition.is_null()) {
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after
5911 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5917 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5912 __ ldr(result, FieldMemOperand(scratch, 5918 __ ldr(result, FieldMemOperand(scratch,
5913 FixedArray::kHeaderSize - kPointerSize)); 5919 FixedArray::kHeaderSize - kPointerSize));
5914 __ bind(&done); 5920 __ bind(&done);
5915 } 5921 }
5916 5922
5917 5923
5918 #undef __ 5924 #undef __
5919 5925
5920 } } // namespace v8::internal 5926 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698