Changeset 104630 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Jan 10, 2012, 2:08:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r103384 r104630 269 269 public: 270 270 virtual ~CodeBlock(); 271 272 int numParameters() const { return m_numParameters; } 273 void setNumParameters(int newValue); 274 void addParameter(); 275 276 int* addressOfNumParameters() { return &m_numParameters; } 277 static ptrdiff_t offsetOfNumParameters() { return OBJECT_OFFSETOF(CodeBlock, m_numParameters); } 271 278 272 279 CodeBlock* alternative() { return m_alternative.get(); } … … 658 665 659 666 #if ENABLE(VALUE_PROFILER) 660 void setArgumentValueProfileSize(unsigned size)661 {662 m_argumentValueProfiles.resize(size);663 }664 667 unsigned numberOfArgumentValueProfiles() 665 668 { 669 ASSERT(m_numParameters >= 0); 670 ASSERT(m_argumentValueProfiles.size() == static_cast<unsigned>(m_numParameters)); 666 671 return m_argumentValueProfiles.size(); 667 672 } … … 1132 1137 int m_numVars; 1133 1138 int m_numCapturedVars; 1134 int m_numParameters;1135 1139 bool m_isConstructor; 1136 1140 … … 1196 1200 } 1197 1201 1202 int m_numParameters; 1203 1198 1204 WriteBarrier<ScriptExecutable> m_ownerExecutable; 1199 1205 JSGlobalData* m_globalData;
Note:
See TracChangeset
for help on using the changeset viewer.