| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 indexes_(indexes), registers_(registers) { } | 197 indexes_(indexes), registers_(registers) { } |
| 198 ZoneList<int>* indexes_; | 198 ZoneList<int>* indexes_; |
| 199 ZoneList<int>* registers_; | 199 ZoneList<int>* registers_; |
| 200 | 200 |
| 201 friend class SafepointTableBuilder; | 201 friend class SafepointTableBuilder; |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 | 204 |
| 205 class SafepointTableBuilder BASE_EMBEDDED { | 205 class SafepointTableBuilder BASE_EMBEDDED { |
| 206 public: | 206 public: |
| 207 SafepointTableBuilder() | 207 SafepointTableBuilder(); |
| 208 : deoptimization_info_(32), | |
| 209 indexes_(32), | |
| 210 registers_(32), | |
| 211 emitted_(false) { } | |
| 212 | 208 |
| 213 // Get the offset of the emitted safepoint table in the code. | 209 // Get the offset of the emitted safepoint table in the code. |
| 214 unsigned GetCodeOffset() const; | 210 unsigned GetCodeOffset() const; |
| 215 | 211 |
| 216 // Define a new safepoint for the current position in the body. | 212 // Define a new safepoint for the current position in the body. |
| 217 Safepoint DefineSafepoint(Assembler* assembler, | 213 Safepoint DefineSafepoint(Assembler* assembler, |
| 218 Safepoint::Kind kind, | 214 Safepoint::Kind kind, |
| 219 int arguments, | 215 int arguments, |
| 220 int deoptimization_index); | 216 int deoptimization_index); |
| 221 | 217 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 257 |
| 262 unsigned offset_; | 258 unsigned offset_; |
| 263 bool emitted_; | 259 bool emitted_; |
| 264 | 260 |
| 265 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); | 261 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); |
| 266 }; | 262 }; |
| 267 | 263 |
| 268 } } // namespace v8::internal | 264 } } // namespace v8::internal |
| 269 | 265 |
| 270 #endif // V8_SAFEPOINT_TABLE_H_ | 266 #endif // V8_SAFEPOINT_TABLE_H_ |
| OLD | NEW |