Revision: 2704 Author: [email protected] Date: Tue Aug 18 02:14:19 2009 Log: Fix regression caused by context creation optimization r2681.
The issue is that a shift operation is used when creating the snapshot. This means that the shift binary operation stub is generated at snapshot time without sse3 instructions. The fix is to use division instead. [email protected] http://code.google.com/p/v8/source/detail?r=2704 Modified: /branches/bleeding_edge/src/v8natives.js ======================================= --- /branches/bleeding_edge/src/v8natives.js Thu Aug 13 07:04:49 2009 +++ /branches/bleeding_edge/src/v8natives.js Tue Aug 18 02:14:19 2009 @@ -47,7 +47,7 @@ // Helper function used to install functions on objects. function InstallFunctions(object, attributes, functions) { if (functions.length >= 8) { - %OptimizeObjectForAddingMultipleProperties(object, functions.length >> 1); + %OptimizeObjectForAddingMultipleProperties(object, functions.length / 2); } for (var i = 0; i < functions.length; i += 2) { var key = functions[i]; --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
