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

Unified Diff: src/full-codegen/full-codegen.h

Issue 2251713002: [Compiler] Add compile to CompilerDispatcherJob. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_compilerdispatcher
Patch Set: Fix comment Created 4 years, 4 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/crankshaft/hydrogen.h ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/full-codegen.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 71f065b092e521a616153cfea384c1d551ab2e8a..370d16c37f46f718000818b50c9e3a062047d425 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -29,7 +29,8 @@ class JumpPatchSite;
class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> {
public:
- FullCodeGenerator(MacroAssembler* masm, CompilationInfo* info)
+ FullCodeGenerator(MacroAssembler* masm, CompilationInfo* info,
+ uintptr_t stack_limit)
: masm_(masm),
info_(info),
isolate_(info->isolate()),
@@ -50,12 +51,17 @@ class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> {
info->SourcePositionRecordingMode()),
ic_total_count_(0) {
DCHECK(!info->IsStub());
- Initialize();
+ Initialize(stack_limit);
}
- void Initialize();
+ void Initialize(uintptr_t stack_limit);
- static bool MakeCode(CompilationInfo* info);
+ static CompilationJob* NewCompilationJob(CompilationInfo* info);
+
+ static bool MakeCode(CompilationInfo* info, uintptr_t stack_limit);
+ static bool MakeCode(CompilationInfo* info) {
+ return MakeCode(info, info->isolate()->stack_guard()->real_climit());
+ }
// Encode bailout state and pc-offset as a BitField<type, start, size>.
// Only use 30 bits because we encode the result as a smi.
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698