Index: src/ast.h |
=================================================================== |
--- src/ast.h (revision 4210) |
+++ src/ast.h (working copy) |
@@ -73,7 +73,7 @@ |
#define EXPRESSION_NODE_LIST(V) \ |
V(FunctionLiteral) \ |
- V(FunctionBoilerplateLiteral) \ |
+ V(SharedFunctionInfoLiteral) \ |
V(Conditional) \ |
V(Slot) \ |
V(VariableProxy) \ |
@@ -1646,15 +1646,16 @@ |
}; |
-class FunctionBoilerplateLiteral: public Expression { |
+class SharedFunctionInfoLiteral: public Expression { |
public: |
- explicit FunctionBoilerplateLiteral(Handle<JSFunction> boilerplate) |
- : boilerplate_(boilerplate) { |
- ASSERT(boilerplate->IsBoilerplate()); |
+ explicit SharedFunctionInfoLiteral( |
+ Handle<SharedFunctionInfo> shared_function_info) |
+ : shared_function_info_(shared_function_info) { } |
+ |
+ Handle<SharedFunctionInfo> shared_function_info() const { |
+ return shared_function_info_; |
} |
- Handle<JSFunction> boilerplate() const { return boilerplate_; } |
- |
virtual bool IsLeaf() { return true; } |
virtual void Accept(AstVisitor* v); |
@@ -1662,7 +1663,7 @@ |
virtual bool IsPrimitive(); |
private: |
- Handle<JSFunction> boilerplate_; |
+ Handle<SharedFunctionInfo> shared_function_info_; |
}; |