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

Side by Side Diff: src/hydrogen-instructions.h

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/flag-definitions.h ('k') | src/ia32/lithium-codegen-ia32.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 5200 matching lines...) Expand 10 before | Expand all | Expand 10 after
5211 offset_(offset) { 5211 offset_(offset) {
5212 ASSERT(object != NULL); 5212 ASSERT(object != NULL);
5213 SetOperandAt(0, object); 5213 SetOperandAt(0, object);
5214 SetOperandAt(1, typecheck != NULL ? typecheck : object); 5214 SetOperandAt(1, typecheck != NULL ? typecheck : object);
5215 5215
5216 if (FLAG_track_fields && field_representation.IsSmi()) { 5216 if (FLAG_track_fields && field_representation.IsSmi()) {
5217 set_type(HType::Smi()); 5217 set_type(HType::Smi());
5218 set_representation(Representation::Tagged()); 5218 set_representation(Representation::Tagged());
5219 } else if (FLAG_track_double_fields && field_representation.IsDouble()) { 5219 } else if (FLAG_track_double_fields && field_representation.IsDouble()) {
5220 set_representation(field_representation); 5220 set_representation(field_representation);
5221 } else if (FLAG_track_heap_object_fields &&
5222 field_representation.IsHeapObject()) {
5223 set_type(HType::NonPrimitive());
5224 set_representation(Representation::Tagged());
5221 } else { 5225 } else {
5222 set_representation(Representation::Tagged()); 5226 set_representation(Representation::Tagged());
5223 } 5227 }
5224 SetFlag(kUseGVN); 5228 SetFlag(kUseGVN);
5225 if (FLAG_track_double_fields && representation().IsDouble()) { 5229 if (FLAG_track_double_fields && representation().IsDouble()) {
5226 ASSERT(is_in_object); 5230 ASSERT(is_in_object);
5227 ASSERT(offset == HeapNumber::kValueOffset); 5231 ASSERT(offset == HeapNumber::kValueOffset);
5228 SetGVNFlag(kDependsOnDoubleFields); 5232 SetGVNFlag(kDependsOnDoubleFields);
5229 } else if (is_in_object) { 5233 } else if (is_in_object) {
5230 SetGVNFlag(kDependsOnInobjectFields); 5234 SetGVNFlag(kDependsOnInobjectFields);
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
6462 virtual bool IsDeletable() const { return true; } 6466 virtual bool IsDeletable() const { return true; }
6463 }; 6467 };
6464 6468
6465 6469
6466 #undef DECLARE_INSTRUCTION 6470 #undef DECLARE_INSTRUCTION
6467 #undef DECLARE_CONCRETE_INSTRUCTION 6471 #undef DECLARE_CONCRETE_INSTRUCTION
6468 6472
6469 } } // namespace v8::internal 6473 } } // namespace v8::internal
6470 6474
6471 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6475 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698