Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 4e413c5426e8135642eba99ba6e148e112cdd810..13992abaf4ffc35af929e68134fe69db3c60324b 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -2301,6 +2301,8 @@ class FunctionLiteral V8_FINAL : public Expression { |
bool AllowsLazyCompilation(); |
bool AllowsLazyCompilationWithoutContext(); |
+ void InitializeSharedInfo(Handle<Code> code); |
+ |
Handle<String> debug_name() const { |
if (name_->length() > 0) return name_; |
return inferred_name(); |
@@ -2311,6 +2313,9 @@ class FunctionLiteral V8_FINAL : public Expression { |
inferred_name_ = inferred_name; |
} |
+ // 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); } |
@@ -2386,6 +2391,7 @@ class FunctionLiteral V8_FINAL : public Expression { |
private: |
Handle<String> name_; |
+ Handle<SharedFunctionInfo> shared_info_; |
Scope* scope_; |
ZoneList<Statement*>* body_; |
Handle<String> inferred_name_; |