diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-18 17:13:30 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-18 17:13:30 -0700 |
commit | 1b2f6f9e29bf7137e177b8d9b600fe558d36f512 (patch) | |
tree | c67553632967b08349b9b5e83a897d189dafd8f2 /deps/v8/src/data-flow.cc | |
parent | 5d400cfd3a2a9faf27a88bf82f33a57f78fa65af (diff) | |
download | node-new-1b2f6f9e29bf7137e177b8d9b600fe558d36f512.tar.gz |
Upgrade V8 to 2.5.0
Diffstat (limited to 'deps/v8/src/data-flow.cc')
-rw-r--r-- | deps/v8/src/data-flow.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/src/data-flow.cc b/deps/v8/src/data-flow.cc index 02aacb5b81..be824460f0 100644 --- a/deps/v8/src/data-flow.cc +++ b/deps/v8/src/data-flow.cc @@ -50,12 +50,13 @@ void BitVector::Print() { #endif -bool AssignedVariablesAnalyzer::Analyze() { - Scope* scope = fun_->scope(); +bool AssignedVariablesAnalyzer::Analyze(CompilationInfo* info) { + info_ = info; + Scope* scope = info->scope(); int variables = scope->num_parameters() + scope->num_stack_slots(); if (variables == 0) return true; av_.ExpandTo(variables); - VisitStatements(fun_->body()); + VisitStatements(info->function()->body()); return !HasStackOverflow(); } @@ -129,7 +130,7 @@ int AssignedVariablesAnalyzer::BitIndex(Variable* var) { if (slot->type() == Slot::PARAMETER) { return slot->index(); } else { - return fun_->scope()->num_parameters() + slot->index(); + return info_->scope()->num_parameters() + slot->index(); } } |