Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 3a3d896262b14ddb04b0f7664d895691ff94aff0..61a6ea936963bab05811fc36f53a4ca58bc6f308 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -2512,6 +2512,8 @@ |
bool AllowsLazyCompilation(); |
bool AllowsLazyCompilationWithoutContext(); |
+ void InitializeSharedInfo(Handle<Code> code); |
+ |
Handle<String> debug_name() const { |
if (raw_name_ != NULL && !raw_name_->IsEmpty()) { |
return raw_name_->string(); |
@@ -2545,6 +2547,9 @@ |
DCHECK(inferred_name_.is_null()); |
inferred_name_ = Handle<String>(); |
} |
+ |
+ // shared_info may be null if it's not cached in full code. |
+ Handle<SharedFunctionInfo> shared_info() { return shared_info_; } |
bool pretenure() { return Pretenure::decode(bitfield_); } |
void set_pretenure() { bitfield_ |= Pretenure::encode(true); } |
@@ -2627,6 +2632,7 @@ |
private: |
const AstRawString* raw_name_; |
Handle<String> name_; |
+ Handle<SharedFunctionInfo> shared_info_; |
Scope* scope_; |
ZoneList<Statement*>* body_; |
const AstString* raw_inferred_name_; |