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

Unified Diff: src/allocation-inl.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/allocation.cc ('k') | src/api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/allocation-inl.h
diff --git a/src/allocation-inl.h b/src/allocation-inl.h
index 80b35fde2c1b9b747d4ac1d536ad2bb85288dc0b..04a3fe667abca7fd54c46926033217b413ebcbab 100644
--- a/src/allocation-inl.h
+++ b/src/allocation-inl.h
@@ -34,38 +34,6 @@ namespace v8 {
namespace internal {
-NativeAllocationChecker::NativeAllocationChecker(
- NativeAllocationChecker::NativeAllocationAllowed allowed)
- : allowed_(allowed) {
-#ifdef DEBUG
- if (allowed == DISALLOW) {
- Isolate* isolate = Isolate::Current();
- isolate->set_allocation_disallowed(isolate->allocation_disallowed() + 1);
- }
-#endif
-}
-
-
-NativeAllocationChecker::~NativeAllocationChecker() {
-#ifdef DEBUG
- Isolate* isolate = Isolate::Current();
- if (allowed_ == DISALLOW) {
- isolate->set_allocation_disallowed(isolate->allocation_disallowed() - 1);
- }
- ASSERT(isolate->allocation_disallowed() >= 0);
-#endif
-}
-
-
-bool NativeAllocationChecker::allocation_allowed() {
-#ifdef DEBUG
- return Isolate::Current()->allocation_disallowed() == 0;
-#else
- return true;
-#endif // DEBUG
-}
-
-
void* PreallocatedStorage::New(size_t size) {
return Isolate::Current()->PreallocatedStorageNew(size);
}
« no previous file with comments | « src/allocation.cc ('k') | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698