| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |