| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 enum DeoptMode { | 178 enum DeoptMode { |
| 179 kNoLazyDeopt, | 179 kNoLazyDeopt, |
| 180 kLazyDeopt | 180 kLazyDeopt |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 static const int kNoDeoptimizationIndex = | 183 static const int kNoDeoptimizationIndex = |
| 184 (1 << (SafepointEntry::kDeoptIndexBits)) - 1; | 184 (1 << (SafepointEntry::kDeoptIndexBits)) - 1; |
| 185 | 185 |
| 186 void DefinePointerSlot(int index, Zone* zone) { indexes_->Add(index, zone); } | 186 void DefinePointerSlot(int index, Zone* zone) { indexes_->Add(index, zone); } |
| 187 void DefinePointerRegister(Register reg); | 187 void DefinePointerRegister(Register reg, Zone* zone); |
| 188 | 188 |
| 189 private: | 189 private: |
| 190 Safepoint(ZoneList<int>* indexes, ZoneList<int>* registers) : | 190 Safepoint(ZoneList<int>* indexes, ZoneList<int>* registers) : |
| 191 indexes_(indexes), registers_(registers) { } | 191 indexes_(indexes), registers_(registers) { } |
| 192 ZoneList<int>* indexes_; | 192 ZoneList<int>* indexes_; |
| 193 ZoneList<int>* registers_; | 193 ZoneList<int>* registers_; |
| 194 | 194 |
| 195 friend class SafepointTableBuilder; | 195 friend class SafepointTableBuilder; |
| 196 }; | 196 }; |
| 197 | 197 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 int last_lazy_safepoint_; | 244 int last_lazy_safepoint_; |
| 245 | 245 |
| 246 Zone* zone_; | 246 Zone* zone_; |
| 247 | 247 |
| 248 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); | 248 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); |
| 249 }; | 249 }; |
| 250 | 250 |
| 251 } } // namespace v8::internal | 251 } } // namespace v8::internal |
| 252 | 252 |
| 253 #endif // V8_SAFEPOINT_TABLE_H_ | 253 #endif // V8_SAFEPOINT_TABLE_H_ |
| OLD | NEW |