Changeset 154120 in webkit for trunk/Source/JavaScriptCore/dfg/DFGCapabilities.cpp
- Timestamp:
- Aug 15, 2013, 12:44:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGCapabilities.cpp
r153248 r154120 171 171 case op_in: 172 172 case op_get_from_scope: 173 case op_put_to_scope:174 173 return CanCompileAndInline; 174 175 case op_put_to_scope: { 176 ResolveType resolveType = ResolveModeAndType(pc[4].u.operand).type(); 177 // If we're writing to a readonly property we emit a Dynamic put that 178 // the DFG can't currently handle. 179 if (resolveType == Dynamic) 180 return CannotCompile; 181 return CanCompileAndInline; 182 } 175 183 176 184 case op_resolve_scope: { 177 185 // We don't compile 'catch' or 'with', so there's no point in compiling variable resolution within them. 178 ResolveType resolveType = static_cast<ResolveType>(pc[3].u.operand);186 ResolveType resolveType = ResolveModeAndType(pc[4].u.operand).type(); 179 187 if (resolveType == Dynamic) 180 188 return CannotCompile;
Note:
See TracChangeset
for help on using the changeset viewer.