Lines Matching defs:VARIABLE
181 Variable* arguments = scope()->arguments();
206 Variable* arguments_shadow = scope()->arguments_shadow();
229 EmitDeclaration(scope()->function(), Variable::CONST, NULL);
652 void FullCodeGenerator::EmitDeclaration(Variable* variable,
653 Variable::Mode mode,
656 ASSERT(variable != NULL); // Must have been resolved.
657 Slot* slot = variable->AsSlot();
658 Property* prop = variable->AsProperty();
664 if (mode == Variable::CONST) {
677 // The variable in the decl always resides in the current context.
678 ASSERT_EQ(0, scope()->ContextChainLength(variable->scope()));
685 if (mode == Variable::CONST) {
700 __ Push(variable->name());
702 ASSERT(mode == Variable::VAR || mode == Variable::CONST);
703 PropertyAttributes attr = (mode == Variable::VAR) ? NONE : READ_ONLY;
709 if (mode == Variable::CONST) {
722 if (function != NULL || mode == Variable::CONST) {
1004 // Update the 'each' property or variable from the possibly filtered
1174 if (slot->var()->mode() == Variable::DYNAMIC_GLOBAL) {
1177 } else if (slot->var()->mode() == Variable::DYNAMIC_LOCAL) {
1184 if (potential_slot->var()->mode() == Variable::CONST) {
1218 void FullCodeGenerator::EmitVariableLoad(Variable* var) {
1226 Comment cmnt(masm_, "Global variable");
1227 // Use inline caching. Variable name is passed in rcx and the global
1255 if (var->mode() == Variable::CONST) {
1276 Variable* object_var = property->obj()->AsVariableProxy()->AsVariable();
1530 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
1531 LhsKind assign_type = VARIABLE;
1541 case VARIABLE:
1584 // variable/property load.
1588 case VARIABLE:
1632 case VARIABLE:
1743 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
1744 LhsKind assign_type = VARIABLE;
1753 case VARIABLE: {
1754 Variable* var = expr->AsVariableProxy()->var();
1800 void FullCodeGenerator::EmitVariableAssignment(Variable* var,
1809 // Assignment to a global variable. Use inline caching for the
1810 // assignment. Right-hand-side value is passed in rax, variable name in
1857 } else if (var->mode() != Variable::CONST) {
2107 Variable* var = fun->AsVariableProxy()->AsVariable();
2130 if (var->AsSlot() != NULL && var->mode() == Variable::DYNAMIC_GLOBAL) {
2165 // Call to a global variable.
2171 // Call to a lookup slot (dynamically introduced variable).
3615 Variable* var = expr->expression()->AsVariableProxy()->AsVariable();
3645 // Non-global variable. Call the runtime to try to delete from the
3646 // context where the variable was introduced.
3653 // Result of deleting non-property, non-variable reference is true.
3772 enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
3773 LhsKind assign_type = VARIABLE;
3783 if (assign_type == VARIABLE) {
3815 if (assign_type == VARIABLE) {
3837 case VARIABLE:
3890 case VARIABLE:
3956 Comment cmnt(masm_, "Global variable");