33e571ff4b
These guards are useless anyways once you make it throw the effect/control linearizer because all memory operations and calls are connected to the control and/or effect chain anyways afterwards. Drive-by-fix: Fail in the InstructionSelector if we ever see a Guard node. R=jarin@chromium.org BUG=chromium:612142 Review-Url: https://codereview.chromium.org/1980383002 Cr-Commit-Position: refs/heads/master@{#36302}
11 lines
408 B
JavaScript
11 lines
408 B
JavaScript
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var thrower = {[Symbol.toPrimitive]: function(e) { throw e }};
|
|
try {
|
|
for (var i = 0; i < 10; i++) { }
|
|
for (var i = 0.5; i < 100000; ++i) { }
|
|
for (var i = 16 | 0 || 0 || this || 1; i;) { String.fromCharCode(thrower); }
|
|
} catch (e) { }
|