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

Unified Diff: Source/platform/heap/StackFrameDepth.cpp

Issue 851563003: Revert of Oilpan: Query stack frame register instead of manual bookkeeping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « Source/platform/heap/StackFrameDepth.h ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/StackFrameDepth.cpp
diff --git a/Source/platform/heap/StackFrameDepth.cpp b/Source/platform/heap/StackFrameDepth.cpp
deleted file mode 100644
index 8b495ed8c633a5ae241ce0e0b8a2e62290c3a830..0000000000000000000000000000000000000000
--- a/Source/platform/heap/StackFrameDepth.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "platform/heap/StackFrameDepth.h"
-
-namespace blink {
-
-static const char* s_avoidOptimization = nullptr;
-
-// NEVER_INLINE ensures that |dummy| array on configureLimit() is not optimized away,
-// and the stack frame base register is adjusted |kSafeStackFrameSize|.
-NEVER_INLINE static uintptr_t currentStackFrameBaseOnCallee(const char* dummy)
-{
- s_avoidOptimization = dummy;
- return StackFrameDepth::currentStackFrame();
-}
-
-void StackFrameDepth::configureLimit()
-{
- // Allocate a large object in stack and query stack frame pointer after it.
- char dummy[kSafeStackFrameSize];
- m_stackFrameLimit = currentStackFrameBaseOnCallee(dummy);
-
- // Assert that the stack frame can be used.
- dummy[sizeof(dummy) - 1] = 0;
-}
-
-} // namespace blink
« no previous file with comments | « Source/platform/heap/StackFrameDepth.h ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698