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

Unified Diff: src/compiler.h

Issue 1297203002: Add CompileInfo::GetDebugName() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@interpreter_immed_bytecodes
Patch Set: Fix test crash Created 5 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/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 8ac0eea7efb306468ea76dc8b85b0f8fffeaf454..8cff39e7e9dbed99203ff209f318eac039025baf 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -135,6 +135,8 @@ class CompilationInfo {
explicit CompilationInfo(ParseInfo* parse_info);
CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone);
+ CompilationInfo(const char* code_stub_debug_name, Isolate* isolate,
+ Zone* zone);
virtual ~CompilationInfo();
ParseInfo* parse_info() const { return parse_info_; }
@@ -306,10 +308,7 @@ class CompilationInfo {
}
Type::FunctionType* function_type() const { return function_type_; }
- void SetStub(CodeStub* code_stub) {
- SetMode(STUB);
- code_stub_ = code_stub;
- }
+ void SetStub(CodeStub* code_stub);
// Deoptimization support.
bool HasDeoptimizationSupport() const {
@@ -319,6 +318,7 @@ class CompilationInfo {
DCHECK_EQ(BASE, mode_);
SetFlag(kDeoptimizationSupport);
}
+ bool ShouldEnsureSpaceForLazyDeopt() { return !IsStub(); }
// Determines whether or not to insert a self-optimization header.
bool ShouldSelfOptimize();
@@ -412,6 +412,8 @@ class CompilationInfo {
inlined_functions_.push_back(inlined_function);
}
+ base::SmartArrayPointer<char> GetDebugName() const;
+
protected:
ParseInfo* parse_info_;
@@ -431,8 +433,9 @@ class CompilationInfo {
STUB
};
- CompilationInfo(ParseInfo* parse_info, CodeStub* code_stub, Mode mode,
- Isolate* isolate, Zone* zone);
+ CompilationInfo(ParseInfo* parse_info, CodeStub* code_stub,
+ const char* code_stub_debug_name, Mode mode, Isolate* isolate,
+ Zone* zone);
Isolate* isolate_;
@@ -501,6 +504,8 @@ class CompilationInfo {
Type::FunctionType* function_type_;
+ const char* code_stub_debug_name_;
+
DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
};
« no previous file with comments | « src/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698