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

Side by Side Diff: src/assembler.h

Issue 7247002: Estimate a (close) upper bound on the size of black-marked objects on each page. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Address review comments. Make compile on x64. Created 9 years, 6 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 | « no previous file | src/builtins.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 class Label BASE_EMBEDDED { 83 class Label BASE_EMBEDDED {
84 public: 84 public:
85 enum Distance { 85 enum Distance {
86 kNear, kFar 86 kNear, kFar
87 }; 87 };
88 88
89 INLINE(Label()) { 89 INLINE(Label()) {
90 Unuse(); 90 Unuse();
91 UnuseNear(); 91 UnuseNear();
92 } 92 }
93 INLINE(~Label()) { ASSERT(!is_linked()); } 93 INLINE(~Label()) {
94 ASSERT(!is_linked());
95 ASSERT(!is_near_linked());
96 }
94 97
95 INLINE(void Unuse()) { pos_ = 0; } 98 INLINE(void Unuse()) { pos_ = 0; }
96 INLINE(void UnuseNear()) { near_link_pos_ = 0; } 99 INLINE(void UnuseNear()) { near_link_pos_ = 0; }
97 100
98 INLINE(bool is_bound() const) { return pos_ < 0; } 101 INLINE(bool is_bound() const) { return pos_ < 0; }
99 INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; } 102 INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; }
100 INLINE(bool is_linked() const) { return pos_ > 0; } 103 INLINE(bool is_linked() const) { return pos_ > 0; }
101 INLINE(bool is_near_linked() const) { return near_link_pos_ > 0; } 104 INLINE(bool is_near_linked() const) { return near_link_pos_ > 0; }
102 105
103 // Returns the position of bound or linked labels. Cannot be used 106 // Returns the position of bound or linked labels. Cannot be used
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 public: 863 public:
861 NullCallWrapper() { } 864 NullCallWrapper() { }
862 virtual ~NullCallWrapper() { } 865 virtual ~NullCallWrapper() { }
863 virtual void BeforeCall(int call_size) const { } 866 virtual void BeforeCall(int call_size) const { }
864 virtual void AfterCall() const { } 867 virtual void AfterCall() const { }
865 }; 868 };
866 869
867 } } // namespace v8::internal 870 } } // namespace v8::internal
868 871
869 #endif // V8_ASSEMBLER_H_ 872 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698