| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef V8_DEOPTIMIZER_H_ | 5 #ifndef V8_DEOPTIMIZER_H_ | 
| 6 #define V8_DEOPTIMIZER_H_ | 6 #define V8_DEOPTIMIZER_H_ | 
| 7 | 7 | 
| 8 #include "src/v8.h" | 8 #include "src/v8.h" | 
| 9 | 9 | 
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" | 
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 524   FrameDescription(uint32_t frame_size, | 524   FrameDescription(uint32_t frame_size, | 
| 525                    JSFunction* function); | 525                    JSFunction* function); | 
| 526 | 526 | 
| 527   void* operator new(size_t size, uint32_t frame_size) { | 527   void* operator new(size_t size, uint32_t frame_size) { | 
| 528     // Subtracts kPointerSize, as the member frame_content_ already supplies | 528     // Subtracts kPointerSize, as the member frame_content_ already supplies | 
| 529     // the first element of the area to store the frame. | 529     // the first element of the area to store the frame. | 
| 530     return malloc(size + frame_size - kPointerSize); | 530     return malloc(size + frame_size - kPointerSize); | 
| 531   } | 531   } | 
| 532 | 532 | 
| 533 // Bug in VS2015 RC, reported fixed in RTM. Microsoft bug: 1153909. | 533 // Bug in VS2015 RC, reported fixed in RTM. Microsoft bug: 1153909. | 
| 534 #if !defined(_MSC_FULL_VER) || _MSC_FULL_VER != 190022720 | 534 #if !defined(_MSC_FULL_VER) || _MSC_FULL_VER != 190022816 | 
| 535   void operator delete(void* pointer, uint32_t frame_size) { | 535   void operator delete(void* pointer, uint32_t frame_size) { | 
| 536     free(pointer); | 536     free(pointer); | 
| 537   } | 537   } | 
| 538 #endif  // _MSC_FULL_VER | 538 #endif  // _MSC_FULL_VER | 
| 539 | 539 | 
| 540   void operator delete(void* description) { | 540   void operator delete(void* description) { | 
| 541     free(description); | 541     free(description); | 
| 542   } | 542   } | 
| 543 | 543 | 
| 544   uint32_t GetFrameSize() const { | 544   uint32_t GetFrameSize() const { | 
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1054   Object** parameters_; | 1054   Object** parameters_; | 
| 1055   Object** expression_stack_; | 1055   Object** expression_stack_; | 
| 1056   int source_position_; | 1056   int source_position_; | 
| 1057 | 1057 | 
| 1058   friend class Deoptimizer; | 1058   friend class Deoptimizer; | 
| 1059 }; | 1059 }; | 
| 1060 | 1060 | 
| 1061 } }  // namespace v8::internal | 1061 } }  // namespace v8::internal | 
| 1062 | 1062 | 
| 1063 #endif  // V8_DEOPTIMIZER_H_ | 1063 #endif  // V8_DEOPTIMIZER_H_ | 
| OLD | NEW | 
|---|