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

Unified Diff: src/ast.h

Issue 669240: - Remove function boilerplate objects and use SharedFunctionInfos in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Committed Created 10 years, 9 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/arm/full-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698