| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index 4d881d1c864e1efb35e7dd9b11548f0d2ff157a7..7319abe6ddefc7625f68fc47a2f30fe96638ca0d 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -36,6 +36,15 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +AstSentinels::AstSentinels()
|
| + : this_proxy_(Isolate::Current(), true),
|
| + identifier_proxy_(Isolate::Current(), false),
|
| + valid_left_hand_side_sentinel_(Isolate::Current()),
|
| + this_property_(Isolate::Current(), &this_proxy_, NULL, 0),
|
| + call_sentinel_(Isolate::Current(), NULL, NULL, 0) {
|
| +}
|
| +
|
| +
|
| // ----------------------------------------------------------------------------
|
| // All the Accept member functions for each syntax tree node type.
|
|
|
| @@ -92,6 +101,15 @@ VariableProxy::VariableProxy(Isolate* isolate,
|
| }
|
|
|
|
|
| +VariableProxy::VariableProxy(Isolate* isolate, bool is_this)
|
| + : Expression(isolate),
|
| + var_(NULL),
|
| + is_this_(is_this),
|
| + inside_with_(false),
|
| + is_trivial_(false) {
|
| +}
|
| +
|
| +
|
| void VariableProxy::BindTo(Variable* var) {
|
| ASSERT(var_ == NULL); // must be bound only once
|
| ASSERT(var != NULL); // must bind
|
| @@ -469,6 +487,12 @@ bool SharedFunctionInfoLiteral::IsInlineable() const {
|
| }
|
|
|
|
|
| +bool ValidLeftHandSideSentinel::IsInlineable() const {
|
| + UNREACHABLE();
|
| + return false;
|
| +}
|
| +
|
| +
|
| bool ForStatement::IsInlineable() const {
|
| return (init() == NULL || init()->IsInlineable())
|
| && (cond() == NULL || cond()->IsInlineable())
|
|
|