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

Side by Side Diff: src/lithium.h

Issue 11575007: Make embedded maps in optimized code weak. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test that reproduces memleak and rebase. Created 7 years, 11 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/heap.cc ('k') | src/lithium.cc » ('j') | src/lithium.cc » ('J')
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 : spill_slot_count_(0), 691 : spill_slot_count_(0),
692 info_(info), 692 info_(info),
693 graph_(graph), 693 graph_(graph),
694 instructions_(32, graph->zone()), 694 instructions_(32, graph->zone()),
695 pointer_maps_(8, graph->zone()), 695 pointer_maps_(8, graph->zone()),
696 inlined_closures_(1, graph->zone()) { } 696 inlined_closures_(1, graph->zone()) { }
697 697
698 int spill_slot_count_; 698 int spill_slot_count_;
699 699
700 private: 700 private:
701 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code);
Michael Starzinger 2013/01/21 10:31:48 Let's make this function protected instead of priv
ulan 2013/01/21 13:11:57 Done.
701 CompilationInfo* info_; 702 CompilationInfo* info_;
702 HGraph* const graph_; 703 HGraph* const graph_;
703 ZoneList<LInstruction*> instructions_; 704 ZoneList<LInstruction*> instructions_;
704 ZoneList<LPointerMap*> pointer_maps_; 705 ZoneList<LPointerMap*> pointer_maps_;
705 ZoneList<Handle<JSFunction> > inlined_closures_; 706 ZoneList<Handle<JSFunction> > inlined_closures_;
706 }; 707 };
707 708
708 709
709 int ElementsKindToShiftSize(ElementsKind elements_kind); 710 int ElementsKindToShiftSize(ElementsKind elements_kind);
710 711
711 712
712 } } // namespace v8::internal 713 } } // namespace v8::internal
713 714
714 #endif // V8_LITHIUM_H_ 715 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/lithium.cc » ('j') | src/lithium.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698