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

Side by Side Diff: third_party/WebKit/Source/platform/heap/SafePoint.cpp

Issue 2703713003: Remove SafePointBarrier (Closed)
Patch Set: temp Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "platform/heap/SafePoint.h"
6
7 #include "platform/heap/Heap.h"
8
9 namespace blink {
10
11 using PushAllRegistersCallback = void (*)(SafePointBarrier*,
12 ThreadState*,
13 intptr_t*);
14 extern "C" void pushAllRegisters(SafePointBarrier*,
15 ThreadState*,
16 PushAllRegistersCallback);
17
18 SafePointBarrier::SafePointBarrier() {}
19
20 SafePointBarrier::~SafePointBarrier() {}
21
22 void SafePointBarrier::enterSafePoint(ThreadState* state) {
23 ASSERT(!state->sweepForbidden());
24 pushAllRegisters(this, state, enterSafePointAfterPushRegisters);
25 }
26
27 void SafePointBarrier::leaveSafePoint() {}
28
29 void SafePointBarrier::doEnterSafePoint(ThreadState* state,
30 intptr_t* stackEnd) {
31 state->recordStackEnd(stackEnd);
32 state->copyStackUntilSafePointScope();
33 }
34
35 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/SafePoint.h ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698