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

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

Issue 22982003: Mark CheckMaps that can cause migration with ChangesNewSpacePromotion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 4 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/hydrogen-instructions.h ('k') | 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 2833 matching lines...) Expand 10 before | Expand all | Expand 10 after
2844 } 2844 }
2845 2845
2846 2846
2847 HCheckMaps* HCheckMaps::New(Zone* zone, 2847 HCheckMaps* HCheckMaps::New(Zone* zone,
2848 HValue* context, 2848 HValue* context,
2849 HValue* value, 2849 HValue* value,
2850 Handle<Map> map, 2850 Handle<Map> map,
2851 CompilationInfo* info, 2851 CompilationInfo* info,
2852 HValue* typecheck) { 2852 HValue* typecheck) {
2853 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck); 2853 HCheckMaps* check_map = new(zone) HCheckMaps(value, zone, typecheck);
2854 check_map->map_set_.Add(map, zone); 2854 check_map->Add(map, zone);
2855 check_map->has_migration_target_ = map->is_migration_target();
2856 if (map->CanOmitMapChecks() && 2855 if (map->CanOmitMapChecks() &&
2857 value->IsConstant() && 2856 value->IsConstant() &&
2858 HConstant::cast(value)->InstanceOf(map)) { 2857 HConstant::cast(value)->InstanceOf(map)) {
2859 check_map->omit(info); 2858 check_map->omit(info);
2860 } 2859 }
2861 return check_map; 2860 return check_map;
2862 } 2861 }
2863 2862
2864 2863
2865 void HCheckMaps::FinalizeUniqueValueId() { 2864 void HCheckMaps::FinalizeUniqueValueId() {
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
3998 break; 3997 break;
3999 case kExternalMemory: 3998 case kExternalMemory:
4000 stream->Add("[external-memory]"); 3999 stream->Add("[external-memory]");
4001 break; 4000 break;
4002 } 4001 }
4003 4002
4004 stream->Add("@%d", offset()); 4003 stream->Add("@%d", offset());
4005 } 4004 }
4006 4005
4007 } } // namespace v8::internal 4006 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698