Lines Matching defs:assignment

118   // The minimum number of contiguous assignment that will
1436 Assignment* assignment = AsAssignment(stat);
1438 if (BlockContinues(assignment)) {
1439 UpdateBlock(assignment);
1444 if (!InBlock() && (assignment != NULL) &&
1445 (assignment->op() == Token::ASSIGN)) {
1446 StartBlock(assignment);
1484 bool BlockContinues(Assignment* assignment) {
1485 if ((assignment == NULL) || (first_in_block_ == NULL)) return false;
1486 if (assignment->op() != Token::ASSIGN) return false;
1488 assignment->target());
1491 void StartBlock(Assignment* assignment) {
1492 first_in_block_ = assignment;
1493 last_in_block_ = assignment;
1497 void UpdateBlock(Assignment* assignment) {
1498 last_in_block_ = assignment;
1533 // Bail out if function already has property assignment that are
1540 Assignment* assignment = AsAssignment(stat);
1541 if (IsThisPropertyAssignment(assignment)) {
1542 HandleThisPropertyAssignment(scope, assignment);
1554 // Returns a fixed array containing three elements for each assignment of the
1575 bool IsThisPropertyAssignment(Assignment* assignment) {
1576 if (assignment != NULL) {
1577 Property* property = assignment->target()->AsProperty();
1578 return assignment->op() == Token::ASSIGN
1586 void HandleThisPropertyAssignment(Scope* scope, Assignment* assignment) {
1588 Property* property = assignment->target()->AsProperty();
1599 if (assignment->value()->AsLiteral() != NULL) {
1601 Literal* literal = assignment->value()->AsLiteral();
1604 } else if (assignment->value()->AsVariableProxy() != NULL) {
1607 assignment->value()->AsVariableProxy()->name();
1618 // It is not a simple "this.x = value;" assignment with a constant
1638 // The this assignment is not a simple one.
2060 // assignment statement. We use a block to collect multiple assignments.
2063 // rewriter to add a '.result' assignment to such a block (to get compliant
2065 // reasons when pretty-printing. Also, unless an assignment (initialization)
2079 // assignment for variables and constants because the value must be assigned
2161 // which is why we need to generate a separate assignment node.
2165 value = NULL; // zap the value to avoid the unnecessary assignment
2188 // Add an assignment node to the initialization statement block if
2200 Assignment* assignment = NEW(Assignment(op, last_var, value, position));
2201 if (block) block->AddStatement(NEW(ExpressionStatement(assignment)));
2799 // Parsed conditional expression only (no assignment).
2812 Token::Value op = Next(); // Get assignment operator.
2818 // assignment to a property of 'this'. We should probably only add
2843 // In parsing the first assignment expression in conditional