Changeset 104630 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Jan 10, 2012, 2:08:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r104094 r104630 1414 1414 , m_numVars(other.m_numVars) 1415 1415 , m_numCapturedVars(other.m_numCapturedVars) 1416 , m_numParameters(other.m_numParameters)1417 1416 , m_isConstructor(other.m_isConstructor) 1418 1417 , m_shouldDiscardBytecode(false) … … 1449 1448 , m_reoptimizationRetryCounter(0) 1450 1449 { 1450 setNumParameters(other.numParameters()); 1451 1451 optimizeAfterWarmUp(); 1452 1452 … … 1470 1470 , m_numCalleeRegisters(0) 1471 1471 , m_numVars(0) 1472 , m_numParameters(0)1473 1472 , m_isConstructor(isConstructor) 1474 1473 , m_shouldDiscardBytecode(false) 1474 , m_numParameters(0) 1475 1475 , m_ownerExecutable(globalObject->globalData(), ownerExecutable, ownerExecutable) 1476 1476 , m_globalData(0) … … 1536 1536 #if DUMP_CODE_BLOCK_STATISTICS 1537 1537 liveCodeBlockSet.remove(this); 1538 #endif 1539 } 1540 1541 void CodeBlock::setNumParameters(int newValue) 1542 { 1543 m_numParameters = newValue; 1544 1545 #if ENABLE(VALUE_PROFILER) 1546 m_argumentValueProfiles.resize(newValue); 1547 #endif 1548 } 1549 1550 void CodeBlock::addParameter() 1551 { 1552 m_numParameters++; 1553 1554 #if ENABLE(VALUE_PROFILER) 1555 m_argumentValueProfiles.append(ValueProfile()); 1538 1556 #endif 1539 1557 }
Note:
See TracChangeset
for help on using the changeset viewer.