Changeset 128898 in webkit for trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
- Timestamp:
- Sep 18, 2012, 8:22:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
r128832 r128898 1194 1194 EncodedJSValue DFG_OPERATION operationGetArgumentsLength(ExecState* exec, int32_t argumentsRegister) 1195 1195 { 1196 JSGlobalData& globalData = exec->globalData(); 1197 NativeCallFrameTracer tracer(&globalData, exec); 1196 1198 // Here we can assume that the argumernts were created. Because otherwise the JIT code would 1197 1199 // have not made this call. 1198 Identifier ident(& exec->globalData(), "length");1200 Identifier ident(&globalData, "length"); 1199 1201 JSValue baseValue = exec->uncheckedR(argumentsRegister).jsValue(); 1200 1202 PropertySlot slot(baseValue); … … 1204 1206 EncodedJSValue DFG_OPERATION operationGetArgumentByVal(ExecState* exec, int32_t argumentsRegister, int32_t index) 1205 1207 { 1208 JSGlobalData& globalData = exec->globalData(); 1209 NativeCallFrameTracer tracer(&globalData, exec); 1210 1206 1211 JSValue argumentsValue = exec->uncheckedR(argumentsRegister).jsValue(); 1207 1212 … … 1217 1222 ExecState* exec, int32_t argumentsRegister, InlineCallFrame* inlineCallFrame, int32_t index) 1218 1223 { 1224 JSGlobalData& globalData = exec->globalData(); 1225 NativeCallFrameTracer tracer(&globalData, exec); 1226 1219 1227 JSValue argumentsValue = exec->uncheckedR(argumentsRegister).jsValue(); 1220 1228 … … 1240 1248 { 1241 1249 ASSERT(functionExecutableAsCell->inherits(&FunctionExecutable::s_info)); 1250 1251 JSGlobalData& globalData = exec->globalData(); 1252 NativeCallFrameTracer tracer(&globalData, exec); 1253 1242 1254 FunctionExecutable* functionExecutable = 1243 1255 static_cast<FunctionExecutable*>(functionExecutableAsCell); … … 1258 1270 { 1259 1271 JSGlobalData& globalData = exec->globalData(); 1272 NativeCallFrameTracer tracer(&globalData, exec); 1273 1260 1274 ASSERT(structure->outOfLineCapacity() > base->structure()->outOfLineCapacity()); 1261 1275 ASSERT(!globalData.heap.storageAllocator().fastPathShouldSucceed(structure->outOfLineCapacity() * sizeof(JSValue))); … … 1266 1280 char* DFG_OPERATION operationAllocatePropertyStorageWithInitialCapacity(ExecState* exec) 1267 1281 { 1282 JSGlobalData& globalData = exec->globalData(); 1283 NativeCallFrameTracer tracer(&globalData, exec); 1284 1268 1285 return reinterpret_cast<char*>( 1269 Butterfly::createUninitialized( exec->globalData(), 0, initialOutOfLineCapacity, false, 0));1286 Butterfly::createUninitialized(globalData, 0, initialOutOfLineCapacity, false, 0)); 1270 1287 } 1271 1288 1272 1289 char* DFG_OPERATION operationAllocatePropertyStorage(ExecState* exec, size_t newSize) 1273 1290 { 1291 JSGlobalData& globalData = exec->globalData(); 1292 NativeCallFrameTracer tracer(&globalData, exec); 1293 1274 1294 return reinterpret_cast<char*>( 1275 Butterfly::createUninitialized( exec->globalData(), 0, newSize, false, 0));1295 Butterfly::createUninitialized(globalData, 0, newSize, false, 0)); 1276 1296 } 1277 1297 1278 1298 char* DFG_OPERATION operationReallocateButterflyToHavePropertyStorageWithInitialCapacity(ExecState* exec, JSObject* object) 1279 1299 { 1300 JSGlobalData& globalData = exec->globalData(); 1301 NativeCallFrameTracer tracer(&globalData, exec); 1302 1280 1303 ASSERT(!object->structure()->outOfLineCapacity()); 1281 Butterfly* result = object->growOutOfLineStorage( exec->globalData(), 0, initialOutOfLineCapacity);1304 Butterfly* result = object->growOutOfLineStorage(globalData, 0, initialOutOfLineCapacity); 1282 1305 object->setButterflyWithoutChangingStructure(result); 1283 1306 return reinterpret_cast<char*>(result); … … 1286 1309 char* DFG_OPERATION operationReallocateButterflyToGrowPropertyStorage(ExecState* exec, JSObject* object, size_t newSize) 1287 1310 { 1288 Butterfly* result = object->growOutOfLineStorage(exec->globalData(), object->structure()->outOfLineCapacity(), newSize); 1311 JSGlobalData& globalData = exec->globalData(); 1312 NativeCallFrameTracer tracer(&globalData, exec); 1313 1314 Butterfly* result = object->growOutOfLineStorage(globalData, object->structure()->outOfLineCapacity(), newSize); 1289 1315 object->setButterflyWithoutChangingStructure(result); 1290 1316 return reinterpret_cast<char*>(result);
Note:
See TracChangeset
for help on using the changeset viewer.