Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/isolate.cc

Issue 1319153006: [heap] Remove obsolete DisallowAllocationFailure scope. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 2062
2063 if (function_entry_hook() != NULL) { 2063 if (function_entry_hook() != NULL) {
2064 // When function entry hooking is in effect, we have to create the code 2064 // When function entry hooking is in effect, we have to create the code
2065 // stubs from scratch to get entry hooks, rather than loading the previously 2065 // stubs from scratch to get entry hooks, rather than loading the previously
2066 // generated stubs from disk. 2066 // generated stubs from disk.
2067 // If this assert fires, the initialization path has regressed. 2067 // If this assert fires, the initialization path has regressed.
2068 DCHECK(des == NULL); 2068 DCHECK(des == NULL);
2069 } 2069 }
2070 2070
2071 // The initialization process does not handle memory exhaustion. 2071 // The initialization process does not handle memory exhaustion.
2072 DisallowAllocationFailure disallow_allocation_failure(this); 2072 AlwaysAllocateScope always_allocate(this);
2073 2073
2074 memory_allocator_ = new MemoryAllocator(this); 2074 memory_allocator_ = new MemoryAllocator(this);
2075 code_range_ = new CodeRange(this); 2075 code_range_ = new CodeRange(this);
2076 2076
2077 // Safe after setting Heap::isolate_, and initializing StackGuard 2077 // Safe after setting Heap::isolate_, and initializing StackGuard
2078 heap_.SetStackLimits(); 2078 heap_.SetStackLimits();
2079 2079
2080 #define ASSIGN_ELEMENT(CamelName, hacker_name) \ 2080 #define ASSIGN_ELEMENT(CamelName, hacker_name) \
2081 isolate_addresses_[Isolate::k##CamelName##Address] = \ 2081 isolate_addresses_[Isolate::k##CamelName##Address] = \
2082 reinterpret_cast<Address>(hacker_name##_address()); 2082 reinterpret_cast<Address>(hacker_name##_address());
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 // Then check whether this scope intercepts. 2817 // Then check whether this scope intercepts.
2818 if ((flag & intercept_mask_)) { 2818 if ((flag & intercept_mask_)) {
2819 intercepted_flags_ |= flag; 2819 intercepted_flags_ |= flag;
2820 return true; 2820 return true;
2821 } 2821 }
2822 return false; 2822 return false;
2823 } 2823 }
2824 2824
2825 } // namespace internal 2825 } // namespace internal
2826 } // namespace v8 2826 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698