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

Unified Diff: src/compiler-dispatcher/compiler-dispatcher-job.h

Issue 2197573002: Clean up compiler dispatcher job a bit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | src/compiler-dispatcher/compiler-dispatcher-job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler-dispatcher/compiler-dispatcher-job.h
diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.h b/src/compiler-dispatcher/compiler-dispatcher-job.h
index c498e49a1589a4b2beebe2bfd88b9f19df645bf5..0a6ff20930615aff16017dba2289cfe301e842ca 100644
--- a/src/compiler-dispatcher/compiler-dispatcher-job.h
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.h
@@ -7,7 +7,6 @@
#include <memory>
-#include "src/base/atomic-utils.h"
#include "src/base/macros.h"
#include "src/handles.h"
@@ -35,7 +34,7 @@ class CompilerDispatcherJob {
size_t max_stack_size);
~CompilerDispatcherJob();
- CompileJobStatus status() const { return status_.Value(); }
+ CompileJobStatus status() const { return status_; }
bool can_parse_on_background_thread() const {
return can_parse_on_background_thread_;
}
@@ -47,8 +46,7 @@ class CompilerDispatcherJob {
void Parse();
private:
- base::AtomicValue<CompileJobStatus> status_ =
- base::AtomicValue<CompileJobStatus>(CompileJobStatus::kInitial);
+ CompileJobStatus status_ = CompileJobStatus::kInitial;
Isolate* isolate_;
Handle<JSFunction> function_; // Global handle.
size_t max_stack_size_;
« no previous file with comments | « no previous file | src/compiler-dispatcher/compiler-dispatcher-job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698