| 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 2697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2708 // SetUp the object heap. | 2708 // SetUp the object heap. |
| 2709 DCHECK(!heap_.HasBeenSetUp()); | 2709 DCHECK(!heap_.HasBeenSetUp()); |
| 2710 if (!heap_.SetUp()) { | 2710 if (!heap_.SetUp()) { |
| 2711 V8::FatalProcessOutOfMemory("heap setup"); | 2711 V8::FatalProcessOutOfMemory("heap setup"); |
| 2712 return false; | 2712 return false; |
| 2713 } | 2713 } |
| 2714 | 2714 |
| 2715 code_aging_helper_ = new CodeAgingHelper(this); | 2715 code_aging_helper_ = new CodeAgingHelper(this); |
| 2716 | 2716 |
| 2717 // Initialize the interface descriptors ahead of time. | 2717 // Initialize the interface descriptors ahead of time. |
| 2718 #define INTERFACE_DESCRIPTOR(V) \ | 2718 #define INTERFACE_DESCRIPTOR(Name, ...) \ |
| 2719 { V##Descriptor(this); } | 2719 { Name##Descriptor(this); } |
| 2720 INTERFACE_DESCRIPTOR_LIST(INTERFACE_DESCRIPTOR) | 2720 INTERFACE_DESCRIPTOR_LIST(INTERFACE_DESCRIPTOR) |
| 2721 #undef INTERFACE_DESCRIPTOR | 2721 #undef INTERFACE_DESCRIPTOR |
| 2722 | 2722 |
| 2723 deoptimizer_data_ = new DeoptimizerData(heap()->memory_allocator()); | 2723 deoptimizer_data_ = new DeoptimizerData(heap()->memory_allocator()); |
| 2724 | 2724 |
| 2725 const bool create_heap_objects = (des == NULL); | 2725 const bool create_heap_objects = (des == NULL); |
| 2726 if (create_heap_objects && !heap_.CreateHeapObjects()) { | 2726 if (create_heap_objects && !heap_.CreateHeapObjects()) { |
| 2727 V8::FatalProcessOutOfMemory("heap object creation"); | 2727 V8::FatalProcessOutOfMemory("heap object creation"); |
| 2728 return false; | 2728 return false; |
| 2729 } | 2729 } |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3731 // Then check whether this scope intercepts. | 3731 // Then check whether this scope intercepts. |
| 3732 if ((flag & intercept_mask_)) { | 3732 if ((flag & intercept_mask_)) { |
| 3733 intercepted_flags_ |= flag; | 3733 intercepted_flags_ |= flag; |
| 3734 return true; | 3734 return true; |
| 3735 } | 3735 } |
| 3736 return false; | 3736 return false; |
| 3737 } | 3737 } |
| 3738 | 3738 |
| 3739 } // namespace internal | 3739 } // namespace internal |
| 3740 } // namespace v8 | 3740 } // namespace v8 |
| OLD | NEW |