Lines Matching refs:variable
424 Target(Target** variable, AstNode* node)
425 : variable_(variable), node_(node), previous_(*variable) {
426 *variable = this;
445 explicit TargetScope(Target** variable)
446 : variable_(variable), previous_(*variable) {
447 *variable = NULL;
1013 // Variable assigned.
1016 // Check whether the variable assigned matches an argument name.
1291 Variable::Mode mode,
1295 Variable* var = NULL;
1296 // If we are inside a function, a declaration of a variable
1297 // is a truly local variable, and the scope of the variable
1301 // variable and also set its mode. In any case, a Declaration node
1307 // Declare the variable in the function scope.
1317 if ((mode == Variable::CONST) || (var->mode() == Variable::CONST)) {
1319 ASSERT(var->mode() == Variable::VAR ||
1320 var->mode() == Variable::CONST);
1321 const char* type = (var->mode() == Variable::VAR) ? "var" : "const";
1340 // bound during variable resolution time unless it was pre-bound
1344 // same variable if it is declared several times. This is not a
1351 // For global const variables we bind the proxy to a variable.
1352 if (mode == Variable::CONST && top_scope_->is_global_scope()) {
1354 Variable::Kind kind = Variable::NORMAL;
1355 var = new(zone()) Variable(top_scope_, name, Variable::CONST, true, kind);
1358 // If requested and we have a local variable, bind the proxy to the variable
1360 // statements: the corresponding function (or const) variable must be in the
1445 VariableProxy* var = Declare(name, Variable::VAR, NULL, true, CHECK_OK);
1466 Declare(name, Variable::VAR, fun, true, CHECK_OK);
1508 // If the variable declaration declares exactly one non-const
1509 // variable, then *var is set to that variable. In all other cases,
1519 Variable::Mode mode = Variable::VAR;
1530 mode = Variable::CONST;
1536 // The scope of a variable/const declared anywhere inside a function
1538 // transform a source-level variable/const declaration into a (Function)
1550 VariableProxy* last_var = NULL; // the last variable declared
1555 // Parse variable name.
1567 // Declare variable.
1570 // when the variable is encountered in the source. But the variable/constant
1572 // which the variable or constant is declared. Only function variables have
1577 // bound to the declared variable (independent of possibly surrounding with
1613 // The "variable" c initialized to x is the same as the declared
1633 // Global variable declarations must be compiled in a specific
1634 // way. When the script containing the global variable declaration
1635 // is entered, the global variable must be declared, so that if it
1641 // *not* touched until the variable declaration statement is
1644 // Executing the variable declaration statement will always
1645 // guarantee to give the global object a "local" variable; a
1646 // variable defined in the global object and not in any
1647 // prototype. This way, global variable declarations can shadow
1648 // properties in the prototype chain, but only after the variable
1679 // Be careful not to assign a value to the global variable if
1704 // between variables and constants: Variable initializations are simply
1725 // We have a single, non-const variable.
1774 // Remove the "ghost" variable that turned out to be a label
2068 Variable* catch_var = NULL;
2121 // Declare a variable for holding the finally state while
2238 // Parsed for-in loop w/ variable/const declaration.
2662 // Keep track of eval() calls since they disable all local variable
2678 Variable* var = top_scope_->Lookup(name);
3529 // variable declared and initialized with the function (expression). In
3577 Variable* parameter = top_scope_->DeclareLocal(param_name,
3578 Variable::VAR,
3595 // If we have a named function expression, we add a local variable
3602 Variable* fvar = top_scope_->DeclareFunctionVar(function_name);
3736 // %IS_VAR(x) evaluates to x if x is a variable,
4304 // Cache the builder in a local variable for quick access.