Changeset 12593 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Feb 5, 2006, 11:49:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r12564 r12593 336 336 } 337 337 338 void ElementNode::breakCycle() 339 { 340 next = 0; 341 } 342 338 343 // ------------------------------ ArrayNode ------------------------------------ 339 344 … … 403 408 } 404 409 410 void PropertyListNode::breakCycle() 411 { 412 next = 0; 413 } 414 405 415 // ------------------------------ PropertyNode ----------------------------- 406 416 // ECMA 11.1.5 … … 474 484 475 485 return l; 486 } 487 488 void ArgumentListNode::breakCycle() 489 { 490 next = 0; 476 491 } 477 492 … … 1436 1451 : statement(s), next(this) 1437 1452 { 1438 setLoc(s->firstLine(), s->lastLine(), s->sourceId()); 1453 Parser::noteNodeCycle(this); 1454 setLoc(s->firstLine(), s->lastLine(), s->sourceId()); 1439 1455 } 1440 1456 … … 1476 1492 } 1477 1493 1494 void StatListNode::breakCycle() 1495 { 1496 next = 0; 1497 } 1498 1478 1499 // ------------------------------ AssignExprNode ------------------------------- 1479 1500 … … 1558 1579 } 1559 1580 1581 void VarDeclListNode::breakCycle() 1582 { 1583 next = 0; 1584 } 1585 1560 1586 // ------------------------------ VarStatementNode ----------------------------- 1561 1587 … … 1582 1608 if (s) { 1583 1609 source = s->next; 1610 Parser::removeNodeCycle(source.get()); 1584 1611 s->next = 0; 1585 1612 setLoc(s->firstLine(), s->lastLine(), s->sourceId()); … … 2035 2062 } 2036 2063 2064 void ClauseListNode::breakCycle() 2065 { 2066 next = 0; 2067 } 2068 2037 2069 // ------------------------------ CaseBlockNode -------------------------------- 2038 2070 … … 2042 2074 if (l1) { 2043 2075 list1 = l1->next; 2076 Parser::removeNodeCycle(list1.get()); 2044 2077 l1->next = 0; 2045 2078 } else { … … 2051 2084 if (l2) { 2052 2085 list2 = l2->next; 2086 Parser::removeNodeCycle(list2.get()); 2053 2087 l2->next = 0; 2054 2088 } else { … … 2237 2271 } 2238 2272 2273 void ParameterNode::breakCycle() 2274 { 2275 next = 0; 2276 } 2277 2239 2278 // ------------------------------ FunctionBodyNode ----------------------------- 2240 2279 … … 2332 2371 : node(s1), next(this) 2333 2372 { 2334 setLoc(s1->firstLine(), s1->lastLine(), s1->sourceId()); 2373 Parser::noteNodeCycle(this); 2374 setLoc(s1->firstLine(), s1->lastLine(), s1->sourceId()); 2335 2375 } 2336 2376 … … 2378 2418 } 2379 2419 2420 void SourceElementsNode::breakCycle() 2421 { 2422 next = 0; 2423 } 2424 2380 2425 ProgramNode::ProgramNode(SourceElementsNode *s) : FunctionBodyNode(s) 2381 2426 {
Note:
See TracChangeset
for help on using the changeset viewer.