| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index a4836e575b9bdf0a96261df17d85264cfbef5213..bdd587bbc2f9def6b91d1568cbf500b976f7c0a3 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2010 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -1126,7 +1126,6 @@ class VariableProxy: public Expression {
|
| Variable* var() const { return var_; }
|
| bool is_this() const { return is_this_; }
|
| bool inside_with() const { return inside_with_; }
|
| - int position() const { return position_; }
|
|
|
| void MarkAsTrivial() { is_trivial_ = true; }
|
|
|
| @@ -1139,12 +1138,8 @@ class VariableProxy: public Expression {
|
| bool is_this_;
|
| bool inside_with_;
|
| bool is_trivial_;
|
| - int position_;
|
|
|
| - VariableProxy(Handle<String> name,
|
| - bool is_this,
|
| - bool inside_with,
|
| - int position = RelocInfo::kNoPosition);
|
| + VariableProxy(Handle<String> name, bool is_this, bool inside_with);
|
| explicit VariableProxy(bool is_this);
|
|
|
| friend class Scope;
|
| @@ -1295,7 +1290,7 @@ class Call: public Expression {
|
| Handle<JSGlobalPropertyCell> cell() { return cell_; }
|
|
|
| bool ComputeTarget(Handle<Map> type, Handle<String> name);
|
| - bool ComputeGlobalTarget(Handle<GlobalObject> global, LookupResult* lookup);
|
| + bool ComputeGlobalTarget(Handle<GlobalObject> global, Handle<String> name);
|
|
|
| // Bailout support.
|
| int ReturnId() const { return return_id_; }
|
| @@ -1722,6 +1717,7 @@ class FunctionLiteral: public Expression {
|
| contains_loops_(contains_loops),
|
| function_token_position_(RelocInfo::kNoPosition),
|
| inferred_name_(HEAP->empty_string()),
|
| + try_full_codegen_(false),
|
| pretenure_(false) { }
|
|
|
| DECLARE_NODE_TYPE(FunctionLiteral)
|
| @@ -1759,6 +1755,9 @@ class FunctionLiteral: public Expression {
|
| inferred_name_ = inferred_name;
|
| }
|
|
|
| + bool try_full_codegen() { return try_full_codegen_; }
|
| + void set_try_full_codegen(bool flag) { try_full_codegen_ = flag; }
|
| +
|
| bool pretenure() { return pretenure_; }
|
| void set_pretenure(bool value) { pretenure_ = value; }
|
|
|
| @@ -1778,6 +1777,7 @@ class FunctionLiteral: public Expression {
|
| bool strict_mode_;
|
| int function_token_position_;
|
| Handle<String> inferred_name_;
|
| + bool try_full_codegen_;
|
| bool pretenure_;
|
| };
|
|
|
|
|