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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1910 | 1910 |
1911 // SetUp the object heap. | 1911 // SetUp the object heap. |
1912 DCHECK(!heap_.HasBeenSetUp()); | 1912 DCHECK(!heap_.HasBeenSetUp()); |
1913 if (!heap_.SetUp()) { | 1913 if (!heap_.SetUp()) { |
1914 V8::FatalProcessOutOfMemory("heap setup"); | 1914 V8::FatalProcessOutOfMemory("heap setup"); |
1915 return false; | 1915 return false; |
1916 } | 1916 } |
1917 | 1917 |
1918 deoptimizer_data_ = new DeoptimizerData(memory_allocator_); | 1918 deoptimizer_data_ = new DeoptimizerData(memory_allocator_); |
1919 | 1919 |
1920 CallDescriptors::InitializeForIsolate(this); | |
1921 | |
1922 const bool create_heap_objects = (des == NULL); | 1920 const bool create_heap_objects = (des == NULL); |
1923 if (create_heap_objects && !heap_.CreateHeapObjects()) { | 1921 if (create_heap_objects && !heap_.CreateHeapObjects()) { |
1924 V8::FatalProcessOutOfMemory("heap object creation"); | 1922 V8::FatalProcessOutOfMemory("heap object creation"); |
1925 return false; | 1923 return false; |
1926 } | 1924 } |
1927 | 1925 |
1928 if (create_heap_objects) { | 1926 if (create_heap_objects) { |
1929 // Terminate the cache array with the sentinel so we can iterate. | 1927 // Terminate the cache array with the sentinel so we can iterate. |
1930 PushToPartialSnapshotCache(heap_.undefined_value()); | 1928 PushToPartialSnapshotCache(heap_.undefined_value()); |
1931 } | 1929 } |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 if (prev_ && prev_->Intercept(flag)) return true; | 2411 if (prev_ && prev_->Intercept(flag)) return true; |
2414 // Then check whether this scope intercepts. | 2412 // Then check whether this scope intercepts. |
2415 if ((flag & intercept_mask_)) { | 2413 if ((flag & intercept_mask_)) { |
2416 intercepted_flags_ |= flag; | 2414 intercepted_flags_ |= flag; |
2417 return true; | 2415 return true; |
2418 } | 2416 } |
2419 return false; | 2417 return false; |
2420 } | 2418 } |
2421 | 2419 |
2422 } } // namespace v8::internal | 2420 } } // namespace v8::internal |
OLD | NEW |