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

Side by Side Diff: src/register-allocator.h

Issue 149768: Don't put static variables inline (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.2/
Patch Set: Created 11 years, 5 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/parser.cc ('k') | src/register-allocator.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return *this; 85 return *this;
86 } 86 }
87 87
88 inline ~Result(); 88 inline ~Result();
89 89
90 // Static indirection table for handles to constants. If a Result 90 // Static indirection table for handles to constants. If a Result
91 // represents a constant, the data contains an index into this table 91 // represents a constant, the data contains an index into this table
92 // of handles to the actual constants. 92 // of handles to the actual constants.
93 typedef ZoneList<Handle<Object> > ZoneObjectList; 93 typedef ZoneList<Handle<Object> > ZoneObjectList;
94 94
95 static ZoneObjectList* ConstantList() { 95 static ZoneObjectList* ConstantList();
96 static ZoneObjectList list(10);
97 return &list;
98 }
99 96
100 // Clear the constants indirection table. 97 // Clear the constants indirection table.
101 static void ClearConstantList() { 98 static void ClearConstantList() {
102 ConstantList()->Clear(); 99 ConstantList()->Clear();
103 } 100 }
104 101
105 inline void Unuse(); 102 inline void Unuse();
106 103
107 Type type() const { return TypeField::decode(value_); } 104 Type type() const { return TypeField::decode(value_); }
108 105
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 286 }
290 287
291 private: 288 private:
292 CodeGenerator* cgen_; 289 CodeGenerator* cgen_;
293 RegisterFile registers_; 290 RegisterFile registers_;
294 }; 291 };
295 292
296 } } // namespace v8::internal 293 } } // namespace v8::internal
297 294
298 #endif // V8_REGISTER_ALLOCATOR_H_ 295 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698