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

Side by Side Diff: src/scopes.h

Issue 10832342: Rename "global context" to "native context", (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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
« src/heap.h ('K') | « src/runtime.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 // Make sure this scope and all outer scopes are eagerly compiled. 372 // Make sure this scope and all outer scopes are eagerly compiled.
373 void ForceEagerCompilation() { force_eager_compilation_ = true; } 373 void ForceEagerCompilation() { force_eager_compilation_ = true; }
374 374
375 // Determine if we can use lazy compilation for this scope. 375 // Determine if we can use lazy compilation for this scope.
376 bool AllowsLazyCompilation() const; 376 bool AllowsLazyCompilation() const;
377 377
378 // Determine if we can use lazy compilation for this scope without a context. 378 // Determine if we can use lazy compilation for this scope without a context.
379 bool AllowsLazyCompilationWithoutContext() const; 379 bool AllowsLazyCompilationWithoutContext() const;
380 380
381 // True if the outer context of this scope is always the global context. 381 // True if the outer context of this scope is always the native context.
382 bool HasTrivialOuterContext() const; 382 bool HasTrivialOuterContext() const;
383 383
384 // True if the outer context allows lazy compilation of this scope. 384 // True if the outer context allows lazy compilation of this scope.
385 bool HasLazyCompilableOuterContext() const; 385 bool HasLazyCompilableOuterContext() const;
386 386
387 // The number of contexts between this and scope; zero if this == scope. 387 // The number of contexts between this and scope; zero if this == scope.
388 int ContextChainLength(Scope* scope); 388 int ContextChainLength(Scope* scope);
389 389
390 // Find the first function, global, or eval scope. This is the scope 390 // Find the first function, global, or eval scope. This is the scope
391 // where var declarations will be hoisted to in the implementation. 391 // where var declarations will be hoisted to in the implementation.
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 void SetDefaults(ScopeType type, 616 void SetDefaults(ScopeType type,
617 Scope* outer_scope, 617 Scope* outer_scope,
618 Handle<ScopeInfo> scope_info); 618 Handle<ScopeInfo> scope_info);
619 619
620 Zone* zone_; 620 Zone* zone_;
621 }; 621 };
622 622
623 } } // namespace v8::internal 623 } } // namespace v8::internal
624 624
625 #endif // V8_SCOPES_H_ 625 #endif // V8_SCOPES_H_
OLDNEW
« src/heap.h ('K') | « src/runtime.cc ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698