| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 311 |
| 312 // Input frame description. | 312 // Input frame description. |
| 313 FrameDescription* input_; | 313 FrameDescription* input_; |
| 314 // Number of output frames. | 314 // Number of output frames. |
| 315 int output_count_; | 315 int output_count_; |
| 316 // Array of output frame descriptions. | 316 // Array of output frame descriptions. |
| 317 FrameDescription** output_; | 317 FrameDescription** output_; |
| 318 | 318 |
| 319 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; | 319 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; |
| 320 | 320 |
| 321 static int table_entry_size_; | 321 static const int table_entry_size_; |
| 322 | 322 |
| 323 friend class FrameDescription; | 323 friend class FrameDescription; |
| 324 friend class DeoptimizingCodeListNode; | 324 friend class DeoptimizingCodeListNode; |
| 325 friend class DeoptimizedFrameInfo; | 325 friend class DeoptimizedFrameInfo; |
| 326 }; | 326 }; |
| 327 | 327 |
| 328 | 328 |
| 329 class FrameDescription { | 329 class FrameDescription { |
| 330 public: | 330 public: |
| 331 FrameDescription(uint32_t frame_size, | 331 FrameDescription(uint32_t frame_size, |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 491 |
| 492 class TranslationIterator BASE_EMBEDDED { | 492 class TranslationIterator BASE_EMBEDDED { |
| 493 public: | 493 public: |
| 494 TranslationIterator(ByteArray* buffer, int index) | 494 TranslationIterator(ByteArray* buffer, int index) |
| 495 : buffer_(buffer), index_(index) { | 495 : buffer_(buffer), index_(index) { |
| 496 ASSERT(index >= 0 && index < buffer->length()); | 496 ASSERT(index >= 0 && index < buffer->length()); |
| 497 } | 497 } |
| 498 | 498 |
| 499 int32_t Next(); | 499 int32_t Next(); |
| 500 | 500 |
| 501 bool HasNext() const { return index_ >= 0; } | 501 bool HasNext() const { return index_ < buffer_->length(); } |
| 502 | |
| 503 void Done() { index_ = -1; } | |
| 504 | 502 |
| 505 void Skip(int n) { | 503 void Skip(int n) { |
| 506 for (int i = 0; i < n; i++) Next(); | 504 for (int i = 0; i < n; i++) Next(); |
| 507 } | 505 } |
| 508 | 506 |
| 509 private: | 507 private: |
| 510 ByteArray* buffer_; | 508 ByteArray* buffer_; |
| 511 int index_; | 509 int index_; |
| 512 }; | 510 }; |
| 513 | 511 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 Object** parameters_; | 714 Object** parameters_; |
| 717 Object** expression_stack_; | 715 Object** expression_stack_; |
| 718 | 716 |
| 719 friend class Deoptimizer; | 717 friend class Deoptimizer; |
| 720 }; | 718 }; |
| 721 #endif | 719 #endif |
| 722 | 720 |
| 723 } } // namespace v8::internal | 721 } } // namespace v8::internal |
| 724 | 722 |
| 725 #endif // V8_DEOPTIMIZER_H_ | 723 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |