Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: src/scopes.cc

Issue 7830036: Optimize isFinite and isNaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made the change general by moving putting it in the NUMBER_IS_FINITE macro. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scopes.h ('k') | src/string.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 15634d09514d47daa128dc24f9d3ecf05e15587d..b2958db60fbc20d5d7689bfcb4aca8adf50ca2c6 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -331,35 +331,6 @@ void Scope::Initialize(bool inside_with) {
}
-Scope* Scope::FinalizeBlockScope() {
- ASSERT(is_block_scope());
- ASSERT(temps_.is_empty());
- ASSERT(params_.is_empty());
-
- if (num_var_or_const() > 0) return this;
-
- // Remove this scope from outer scope.
- for (int i = 0; i < outer_scope_->inner_scopes_.length(); i++) {
- if (outer_scope_->inner_scopes_[i] == this) {
- outer_scope_->inner_scopes_.Remove(i);
- break;
- }
- }
-
- // Reparent inner scopes.
- for (int i = 0; i < inner_scopes_.length(); i++) {
- outer_scope()->AddInnerScope(inner_scopes_[i]);
- }
-
- // Move unresolved variables
- for (int i = 0; i < unresolved_.length(); i++) {
- outer_scope()->unresolved_.Add(unresolved_[i]);
- }
-
- return NULL;
-}
-
-
Variable* Scope::LocalLookup(Handle<String> name) {
Variable* result = variables_.Lookup(name);
if (result != NULL || scope_info_.is_null()) {
« no previous file with comments | « src/scopes.h ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698