Pipe the number of processors through to V8

BUG=321060
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/76263002

git-svn-id: svn://svn.chromium.org/blink/trunk@162378 bbb929c8-8fbe-4397-9dbb-9b2b20218538
CSSGrammary.y: group
error recovery for @-rules to reduce the recovery code spreading

Error in parsing the example provided in the issue happens because error recovery in the rules block_rule_body and region_block_rule_body is designed for error recovery in ruleset (if rule starts with a selector or error). But this doesn't work for @-rules, as they have their own error recovery grammar.

To fix this, @-rules error recovery should be split into header recovery and full rule recovery parts, and then the header recovery part should be reused in the rules block_rule_body and region_block_rule_body.

This change moves the error recovery only for rules from region_block_valid_rule, to keep the grammar equivalent (non-equivalent changes will be made separately).

BUG=321540

Review URL: https://codereview.chromium.org/78123002

git-svn-id: svn://svn.chromium.org/blink/trunk@162379 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CanvasProfiler] Get valueOf() primitive values instead of wrapper objects when saving the replay log.

Some frameworks use Object wrappers with overridden valueOf method for primitive enum values, like this:

var obj = { name: "TEXTURE_2D", value: 0x0DE1,  valueOf: function() { return this.value; } };

When saving the WebGL calls log, just save the primitive values.

BUG=320474
R=pfeldman

Review URL: https://codereview.chromium.org/68273003

git-svn-id: svn://svn.chromium.org/blink/trunk@162380 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Avoid redundant markAllClientsForInvalidation() calls.

The current resource invalidation code is quite trigger-happy and can
cause repeated/redundant markAllClientsForInvalidation() /
markForLayoutAndParentResourceInvalidation() crawls as the tree is
mutated.

This CL tracks the current RenderSVGResourceContainer invalidation level
and prevents repeated crawls for the same level. The invalidation mask
needs to be cleared on a) layout and b) resource application/draw (as
some invalidation levels do not trigger a full layout).

With this change, the testcase for https://crbug.com/320422 shows
dramatic improvements (tens of seconds delay -> less than one second).

BUG=320422
R=pdr@chromium.org,schenney@chromium.org

Review URL: https://codereview.chromium.org/76363003

git-svn-id: svn://svn.chromium.org/blink/trunk@162381 bbb929c8-8fbe-4397-9dbb-9b2b20218538