Changeset 65177 in webkit for trunk/JavaScriptCore/bytecode
- Timestamp:
- Aug 11, 2010, 12:52:41 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/bytecode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.cpp
r64943 r65177 31 31 #include "CodeBlock.h" 32 32 33 #include "BytecodeGenerator.h" 34 #include "Debugger.h" 35 #include "Interpreter.h" 33 36 #include "JIT.h" 34 #include "JSValue.h"35 #include "Interpreter.h"36 37 #include "JSFunction.h" 37 38 #include "JSStaticScopeObject.h" 38 #include " Debugger.h"39 #include " BytecodeGenerator.h"39 #include "JSValue.h" 40 #include "StringConcatenate.h" 40 41 #include <stdio.h> 41 42 #include <wtf/StringExtras.h> … … 71 72 static CString constantName(ExecState* exec, int k, JSValue value) 72 73 { 73 return makeString(valueToSourceString(exec, value), "(@k", UString:: from(k - FirstConstantRegisterIndex), ")").UTF8String();74 return makeString(valueToSourceString(exec, value), "(@k", UString::number(k - FirstConstantRegisterIndex), ")").UTF8String(); 74 75 } 75 76 76 77 static CString idName(int id0, const Identifier& ident) 77 78 { 78 return makeString(ident.ustring(), "(@id", UString:: from(id0), ")").UTF8String();79 return makeString(ident.ustring(), "(@id", UString::number(id0), ")").UTF8String(); 79 80 } 80 81 … … 87 88 return constantName(exec, r, getConstant(r)); 88 89 89 return makeString("r", UString:: from(r)).UTF8String();90 return makeString("r", UString::number(r)).UTF8String(); 90 91 } 91 92 … … 106 107 static CString regexpName(int re, RegExp* regexp) 107 108 { 108 return makeString(regexpToSourceString(regexp), "(@re", UString:: from(re), ")").UTF8String();109 return makeString(regexpToSourceString(regexp), "(@re", UString::number(re), ")").UTF8String(); 109 110 } 110 111 -
trunk/JavaScriptCore/bytecode/EvalCodeCache.h
r65104 r65177 48 48 RefPtr<EvalExecutable> evalExecutable; 49 49 50 if (evalSource. size() < maxCacheableSourceLength && (*scopeChain->begin())->isVariableObject())50 if (evalSource.length() < maxCacheableSourceLength && (*scopeChain->begin())->isVariableObject()) 51 51 evalExecutable = m_cacheMap.get(evalSource.impl()); 52 52 … … 57 57 return 0; 58 58 59 if (evalSource. size() < maxCacheableSourceLength && (*scopeChain->begin())->isVariableObject() && m_cacheMap.size() < maxCacheEntries)59 if (evalSource.length() < maxCacheableSourceLength && (*scopeChain->begin())->isVariableObject() && m_cacheMap.size() < maxCacheEntries) 60 60 m_cacheMap.set(evalSource.impl(), evalExecutable); 61 61 }
Note:
See TracChangeset
for help on using the changeset viewer.