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

Side by Side Diff: src/scopes.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/scanner.h ('k') | src/scopes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 static bool Analyze(CompilationInfo* info); 105 static bool Analyze(CompilationInfo* info);
106 106
107 static Scope* DeserializeScopeChain(CompilationInfo* info, 107 static Scope* DeserializeScopeChain(CompilationInfo* info,
108 Scope* innermost_scope); 108 Scope* innermost_scope);
109 109
110 // The scope name is only used for printing/debugging. 110 // The scope name is only used for printing/debugging.
111 void SetScopeName(Handle<String> scope_name) { scope_name_ = scope_name; } 111 void SetScopeName(Handle<String> scope_name) { scope_name_ = scope_name; }
112 112
113 void Initialize(bool inside_with); 113 void Initialize(bool inside_with);
114 114
115 // Checks if the block scope is redundant, i.e. it does not contain any
116 // block scoped declarations. In that case it is removed from the scope
117 // tree and its children are reparented.
118 Scope* FinalizeBlockScope();
119
120 // --------------------------------------------------------------------------- 115 // ---------------------------------------------------------------------------
121 // Declarations 116 // Declarations
122 117
123 // Lookup a variable in this scope. Returns the variable or NULL if not found. 118 // Lookup a variable in this scope. Returns the variable or NULL if not found.
124 Variable* LocalLookup(Handle<String> name); 119 Variable* LocalLookup(Handle<String> name);
125 120
126 // Lookup a variable in this scope or outer scopes. 121 // Lookup a variable in this scope or outer scopes.
127 // Returns the variable or NULL if not found. 122 // Returns the variable or NULL if not found.
128 Variable* Lookup(Handle<String> name); 123 Variable* Lookup(Handle<String> name);
129 124
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 451 }
457 452
458 void SetDefaults(Type type, 453 void SetDefaults(Type type,
459 Scope* outer_scope, 454 Scope* outer_scope,
460 Handle<SerializedScopeInfo> scope_info); 455 Handle<SerializedScopeInfo> scope_info);
461 }; 456 };
462 457
463 } } // namespace v8::internal 458 } } // namespace v8::internal
464 459
465 #endif // V8_SCOPES_H_ 460 #endif // V8_SCOPES_H_
OLDNEW
« no previous file with comments | « src/scanner.h ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698