Index: src/ast.cc |
=================================================================== |
--- src/ast.cc (revision 9808) |
+++ src/ast.cc (working copy) |
@@ -66,7 +66,6 @@ |
name_(var->name()), |
var_(NULL), // Will be set by the call to BindTo. |
is_this_(var->is_this()), |
- inside_with_(false), |
is_trivial_(false), |
position_(RelocInfo::kNoPosition) { |
BindTo(var); |
@@ -76,13 +75,11 @@ |
VariableProxy::VariableProxy(Isolate* isolate, |
Handle<String> name, |
bool is_this, |
- bool inside_with, |
int position) |
: Expression(isolate), |
name_(name), |
var_(NULL), |
is_this_(is_this), |
- inside_with_(inside_with), |
is_trivial_(false), |
position_(position) { |
// Names must be canonicalized for fast equality checks. |
@@ -468,7 +465,7 @@ |
bool ThisFunction::IsInlineable() const { |
- return false; |
+ return true; |
} |
@@ -723,7 +720,7 @@ |
holder_ = Handle<JSObject>::null(); |
} |
while (true) { |
- LookupResult lookup; |
+ LookupResult lookup(type->GetIsolate()); |
type->LookupInDescriptors(NULL, *name, &lookup); |
// If the function wasn't found directly in the map, we start |
// looking upwards through the prototype chain. |