AstValueFactory* ast_value_factory, FunctionKind function_kind)
: inner_scopes_(4, zone),
variables_(zone),
- internals_(4, zone),
temps_(4, zone),
params_(4, zone),
unresolved_(16, zone),
Handle<ScopeInfo> scope_info, AstValueFactory* value_factory)
: inner_scopes_(4, zone),
variables_(zone),
- internals_(4, zone),
temps_(4, zone),
params_(4, zone),
unresolved_(16, zone),
AstValueFactory* value_factory)
: inner_scopes_(1, zone),
variables_(zone),
- internals_(0, zone),
temps_(0, zone),
params_(0, zone),
unresolved_(0, zone),
Scope* Scope::FinalizeBlockScope() {
DCHECK(is_block_scope());
- DCHECK(internals_.is_empty());
DCHECK(temps_.is_empty());
DCHECK(params_.is_empty());
int declaration_group_start) {
DCHECK(!already_resolved());
// This function handles VAR, LET, and CONST modes. DYNAMIC variables are
- // introduces during variable allocation, INTERNAL variables are allocated
- // explicitly, and TEMPORARY variables are allocated via NewTemporary().
+ // introduces during variable allocation, and TEMPORARY variables are
+ // allocated via NewTemporary().
DCHECK(IsDeclaredVariableMode(mode));
++num_var_or_const_;
return variables_.Declare(this, name, mode, kind, init_flag,
DCHECK(context_locals != NULL);
DCHECK(context_globals != NULL);
- // Collect internals which are always allocated on the heap.
- for (int i = 0; i < internals_.length(); i++) {
- Variable* var = internals_[i];
- if (var->is_used()) {
- DCHECK(var->IsContextSlot());
- context_locals->Add(var, zone());
- }
- }
-
// Collect temporaries which are always allocated on the stack, unless the
// context as a whole has forced context allocation.
for (int i = 0; i < temps_.length(); i++) {
}
}
- if (internals_.length() > 0) {
- Indent(n1, "// internal vars:\n");
- for (int i = 0; i < internals_.length(); i++) {
- PrintVar(n1, internals_[i]);
- }
- }
-
if (variables_.Start() != NULL) {
Indent(n1, "// local vars:\n");
PrintMap(n1, &variables_);
AllocateNonParameterLocal(isolate, temps_[i]);
}
- for (int i = 0; i < internals_.length(); i++) {
- AllocateNonParameterLocal(isolate, internals_[i]);
- }
-
ZoneList<VarAndOrder> vars(variables_.occupancy(), zone());
for (VariableMap::Entry* p = variables_.Start();
p != NULL;
// variables may be implicitly 'declared' by being used (possibly in
// an inner scope) with no intervening with statements or eval calls.
VariableMap variables_;
- // Compiler-allocated (user-invisible) internals.
- ZoneList<Variable*> internals_;
// Compiler-allocated (user-invisible) temporaries.
ZoneList<Variable*> temps_;
// Parameter list in source order.
// The number of modules (including nested ones).
int num_modules_;
- // For module scopes, the host scope's internal variable binding this module.
+ // For module scopes, the host scope's temporary variable binding this module.
Variable* module_var_;
// Rest parameter