| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index 7319abe6ddefc7625f68fc47a2f30fe96638ca0d..a44d9ee460edf3b12585bcddb8099694e351a514 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -36,20 +36,9 @@
|
| 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.
|
|
|
| -void Slot::Accept(AstVisitor* v) { v->VisitSlot(this); }
|
| -
|
| #define DECL_ACCEPT(type) \
|
| void type::Accept(AstVisitor* v) { v->Visit##type(this); }
|
| AST_NODE_LIST(DECL_ACCEPT)
|
| @@ -101,15 +90,6 @@ 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
|
| @@ -414,12 +394,6 @@ bool TargetCollector::IsInlineable() const {
|
| }
|
|
|
|
|
| -bool Slot::IsInlineable() const {
|
| - UNREACHABLE();
|
| - return false;
|
| -}
|
| -
|
| -
|
| bool ForInStatement::IsInlineable() const {
|
| return false;
|
| }
|
| @@ -430,11 +404,6 @@ bool WithStatement::IsInlineable() const {
|
| }
|
|
|
|
|
| -bool ExitContextStatement::IsInlineable() const {
|
| - return false;
|
| -}
|
| -
|
| -
|
| bool SwitchStatement::IsInlineable() const {
|
| return false;
|
| }
|
| @@ -487,12 +456,6 @@ bool SharedFunctionInfoLiteral::IsInlineable() const {
|
| }
|
|
|
|
|
| -bool ValidLeftHandSideSentinel::IsInlineable() const {
|
| - UNREACHABLE();
|
| - return false;
|
| -}
|
| -
|
| -
|
| bool ForStatement::IsInlineable() const {
|
| return (init() == NULL || init()->IsInlineable())
|
| && (cond() == NULL || cond()->IsInlineable())
|
| @@ -566,7 +529,7 @@ bool Conditional::IsInlineable() const {
|
|
|
|
|
| bool VariableProxy::IsInlineable() const {
|
| - return var()->is_global() || var()->IsStackAllocated();
|
| + return var()->IsUnallocated() || var()->IsStackAllocated();
|
| }
|
|
|
|
|
|
|