| 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 #include "src/isolate.h" | 5 #include "src/isolate.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 2691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2702 // SetUp the object heap. | 2702 // SetUp the object heap. |
| 2703 DCHECK(!heap_.HasBeenSetUp()); | 2703 DCHECK(!heap_.HasBeenSetUp()); |
| 2704 if (!heap_.SetUp()) { | 2704 if (!heap_.SetUp()) { |
| 2705 V8::FatalProcessOutOfMemory("heap setup"); | 2705 V8::FatalProcessOutOfMemory("heap setup"); |
| 2706 return false; | 2706 return false; |
| 2707 } | 2707 } |
| 2708 | 2708 |
| 2709 code_aging_helper_ = new CodeAgingHelper(this); | 2709 code_aging_helper_ = new CodeAgingHelper(this); |
| 2710 | 2710 |
| 2711 // Initialize the interface descriptors ahead of time. | 2711 // Initialize the interface descriptors ahead of time. |
| 2712 #define INTERFACE_DESCRIPTOR(V) \ | 2712 #define INTERFACE_DESCRIPTOR(Name, ...) \ |
| 2713 { V##Descriptor(this); } | 2713 { Name##Descriptor(this); } |
| 2714 INTERFACE_DESCRIPTOR_LIST(INTERFACE_DESCRIPTOR) | 2714 INTERFACE_DESCRIPTOR_LIST(INTERFACE_DESCRIPTOR) |
| 2715 #undef INTERFACE_DESCRIPTOR | 2715 #undef INTERFACE_DESCRIPTOR |
| 2716 | 2716 |
| 2717 deoptimizer_data_ = new DeoptimizerData(heap()->memory_allocator()); | 2717 deoptimizer_data_ = new DeoptimizerData(heap()->memory_allocator()); |
| 2718 | 2718 |
| 2719 const bool create_heap_objects = (des == NULL); | 2719 const bool create_heap_objects = (des == NULL); |
| 2720 if (create_heap_objects && !heap_.CreateHeapObjects()) { | 2720 if (create_heap_objects && !heap_.CreateHeapObjects()) { |
| 2721 V8::FatalProcessOutOfMemory("heap object creation"); | 2721 V8::FatalProcessOutOfMemory("heap object creation"); |
| 2722 return false; | 2722 return false; |
| 2723 } | 2723 } |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3720 // Then check whether this scope intercepts. | 3720 // Then check whether this scope intercepts. |
| 3721 if ((flag & intercept_mask_)) { | 3721 if ((flag & intercept_mask_)) { |
| 3722 intercepted_flags_ |= flag; | 3722 intercepted_flags_ |= flag; |
| 3723 return true; | 3723 return true; |
| 3724 } | 3724 } |
| 3725 return false; | 3725 return false; |
| 3726 } | 3726 } |
| 3727 | 3727 |
| 3728 } // namespace internal | 3728 } // namespace internal |
| 3729 } // namespace v8 | 3729 } // namespace v8 |
| OLD | NEW |