Changeset 39697 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- Jan 7, 2009, 5:46:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r39675 r39697 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2008 Cameron Zwarich <[email protected]> 4 4 * … … 152 152 #endif 153 153 154 m_codeBlock->shrinkToFit();155 154 if ((m_codeType == FunctionCode && !m_codeBlock->needsFullScopeChain() && !m_codeBlock->usesArguments()) || m_codeType == EvalCode) 156 155 symbolTable().clear(); 156 157 #if !ENABLE(OPCODE_SAMPLING) 158 if (!m_regeneratingForExceptionInfo && (m_codeType == FunctionCode || m_codeType == EvalCode)) 159 m_codeBlock->clearExceptionInfo(); 160 #endif 161 162 m_codeBlock->shrinkToFit(); 157 163 } 158 164 … … 206 212 : m_shouldEmitDebugHooks(!!debugger) 207 213 , m_shouldEmitProfileHooks(scopeChain.globalObject()->supportsProfiling()) 214 , m_regeneratingForExceptionInfo(false) 208 215 , m_scopeChain(&scopeChain) 209 216 , m_symbolTable(symbolTable) … … 288 295 : m_shouldEmitDebugHooks(!!debugger) 289 296 , m_shouldEmitProfileHooks(scopeChain.globalObject()->supportsProfiling()) 297 , m_regeneratingForExceptionInfo(false) 290 298 , m_scopeChain(&scopeChain) 291 299 , m_symbolTable(symbolTable) … … 359 367 : m_shouldEmitDebugHooks(!!debugger) 360 368 , m_shouldEmitProfileHooks(scopeChain.globalObject()->supportsProfiling()) 369 , m_regeneratingForExceptionInfo(false) 361 370 , m_scopeChain(&scopeChain) 362 371 , m_symbolTable(symbolTable) … … 1015 1024 { 1016 1025 if (globalObject) { 1026 // op_get_global_var must be the same length as op_resolve_global. 1017 1027 emitOpcode(op_get_global_var); 1018 1028 instructions().append(dst->index()); 1019 1029 instructions().append(asCell(globalObject)); 1020 1030 instructions().append(index); 1031 instructions().append(0); 1032 instructions().append(0); 1021 1033 return dst; 1022 1034 }
Note:
See TracChangeset
for help on using the changeset viewer.