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

Side by Side Diff: src/frame-element.h

Issue 155679: Patch by Mark Mentovai. Don't put static variables inline.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 SyncFlag is_synced) { 84 SyncFlag is_synced) {
85 FrameElement result(value, is_synced); 85 FrameElement result(value, is_synced);
86 return result; 86 return result;
87 } 87 }
88 88
89 // Static indirection table for handles to constants. If a frame 89 // Static indirection table for handles to constants. If a frame
90 // element represents a constant, the data contains an index into 90 // element represents a constant, the data contains an index into
91 // this table of handles to the actual constants. 91 // this table of handles to the actual constants.
92 typedef ZoneList<Handle<Object> > ZoneObjectList; 92 typedef ZoneList<Handle<Object> > ZoneObjectList;
93 93
94 static ZoneObjectList* ConstantList() { 94 static ZoneObjectList* ConstantList();
95 static ZoneObjectList list(10);
96 return &list;
97 }
98 95
99 // Clear the constants indirection table. 96 // Clear the constants indirection table.
100 static void ClearConstantList() { 97 static void ClearConstantList() {
101 ConstantList()->Clear(); 98 ConstantList()->Clear();
102 } 99 }
103 100
104 bool is_synced() const { return SyncedField::decode(value_); } 101 bool is_synced() const { return SyncedField::decode(value_); }
105 102
106 void set_sync() { 103 void set_sync() {
107 ASSERT(type() != MEMORY); 104 ASSERT(type() != MEMORY);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 class CopiedField: public BitField<uint32_t, 3, 1> {}; 226 class CopiedField: public BitField<uint32_t, 3, 1> {};
230 class SyncedField: public BitField<uint32_t, 4, 1> {}; 227 class SyncedField: public BitField<uint32_t, 4, 1> {};
231 class DataField: public BitField<uint32_t, 5, 32 - 6> {}; 228 class DataField: public BitField<uint32_t, 5, 32 - 6> {};
232 229
233 friend class VirtualFrame; 230 friend class VirtualFrame;
234 }; 231 };
235 232
236 } } // namespace v8::internal 233 } } // namespace v8::internal
237 234
238 #endif // V8_FRAME_ELEMENT_H_ 235 #endif // V8_FRAME_ELEMENT_H_
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/frame-element.cc » ('j') | src/ia32/register-allocator-ia32-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698