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

Side by Side Diff: src/heap.h

Issue 10910161: Partial ia32 implementation of optimized try/catch (by Kevin Millikin) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed build. Created 8 years, 3 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/full-codegen.cc ('k') | src/heap.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 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after
2759 // done for all matches. 2759 // done for all matches.
2760 PathTracer(Object* search_target, 2760 PathTracer(Object* search_target,
2761 WhatToFind what_to_find, 2761 WhatToFind what_to_find,
2762 VisitMode visit_mode) 2762 VisitMode visit_mode)
2763 : search_target_(search_target), 2763 : search_target_(search_target),
2764 found_target_(false), 2764 found_target_(false),
2765 found_target_in_trace_(false), 2765 found_target_in_trace_(false),
2766 what_to_find_(what_to_find), 2766 what_to_find_(what_to_find),
2767 visit_mode_(visit_mode), 2767 visit_mode_(visit_mode),
2768 object_stack_(20), 2768 object_stack_(20),
2769 no_alloc() {} 2769 no_alloc_() {}
2770 2770
2771 virtual void VisitPointers(Object** start, Object** end); 2771 virtual void VisitPointers(Object** start, Object** end);
2772 2772
2773 void Reset(); 2773 void Reset();
2774 void TracePathFrom(Object** root); 2774 void TracePathFrom(Object** root);
2775 2775
2776 bool found() const { return found_target_; } 2776 bool found() const { return found_target_; }
2777 2777
2778 static Object* const kAnyGlobalObject; 2778 static Object* const kAnyGlobalObject;
2779 2779
2780 protected: 2780 protected:
2781 class MarkVisitor; 2781 class MarkVisitor;
2782 class UnmarkVisitor; 2782 class UnmarkVisitor;
2783 2783
2784 void MarkRecursively(Object** p, MarkVisitor* mark_visitor); 2784 void MarkRecursively(Object** p, MarkVisitor* mark_visitor);
2785 void UnmarkRecursively(Object** p, UnmarkVisitor* unmark_visitor); 2785 void UnmarkRecursively(Object** p, UnmarkVisitor* unmark_visitor);
2786 virtual void ProcessResults(); 2786 virtual void ProcessResults();
2787 2787
2788 // Tags 0, 1, and 3 are used. Use 2 for marking visited HeapObject. 2788 // Tags 0, 1, and 3 are used. Use 2 for marking visited HeapObject.
2789 static const int kMarkTag = 2; 2789 static const int kMarkTag = 2;
2790 2790
2791 Object* search_target_; 2791 Object* search_target_;
2792 bool found_target_; 2792 bool found_target_;
2793 bool found_target_in_trace_; 2793 bool found_target_in_trace_;
2794 WhatToFind what_to_find_; 2794 WhatToFind what_to_find_;
2795 VisitMode visit_mode_; 2795 VisitMode visit_mode_;
2796 List<Object*> object_stack_; 2796 List<Object*> object_stack_;
2797 2797
2798 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2798 AssertNoAllocation no_alloc_; // i.e. no gc allowed.
2799 2799
2800 private: 2800 private:
2801 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2801 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2802 }; 2802 };
2803 #endif // DEBUG || LIVE_OBJECT_LIST 2803 #endif // DEBUG || LIVE_OBJECT_LIST
2804 2804
2805 } } // namespace v8::internal 2805 } } // namespace v8::internal
2806 2806
2807 #endif // V8_HEAP_H_ 2807 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698