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

Side by Side Diff: src/scopes.h

Issue 7383013: Avoid TLS load in AstNode constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/rewriter.cc ('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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively 312 void Print(int n = 0); // n = indentation; n < 0 => don't print recursively
313 #endif 313 #endif
314 314
315 // --------------------------------------------------------------------------- 315 // ---------------------------------------------------------------------------
316 // Implementation. 316 // Implementation.
317 protected: 317 protected:
318 friend class ParserFactory; 318 friend class ParserFactory;
319 319
320 explicit Scope(Type type); 320 explicit Scope(Type type);
321 321
322 Isolate* const isolate_;
323
322 // Scope tree. 324 // Scope tree.
323 Scope* outer_scope_; // the immediately enclosing outer scope, or NULL 325 Scope* outer_scope_; // the immediately enclosing outer scope, or NULL
324 ZoneList<Scope*> inner_scopes_; // the immediately enclosed inner scopes 326 ZoneList<Scope*> inner_scopes_; // the immediately enclosed inner scopes
325 327
326 // The scope type. 328 // The scope type.
327 Type type_; 329 Type type_;
328 330
329 // Debugging support. 331 // Debugging support.
330 Handle<String> scope_name_; 332 Handle<String> scope_name_;
331 333
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 } 433 }
432 434
433 void SetDefaults(Type type, 435 void SetDefaults(Type type,
434 Scope* outer_scope, 436 Scope* outer_scope,
435 Handle<SerializedScopeInfo> scope_info); 437 Handle<SerializedScopeInfo> scope_info);
436 }; 438 };
437 439
438 } } // namespace v8::internal 440 } } // namespace v8::internal
439 441
440 #endif // V8_SCOPES_H_ 442 #endif // V8_SCOPES_H_
OLDNEW
« no previous file with comments | « src/rewriter.cc ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698