From 75ad46a4b00af64e3f1caab3c1041168e729198f Mon Sep 17 00:00:00 2001 From: Georg Neis Date: Mon, 9 Jul 2018 10:14:57 +0200 Subject: [PATCH] [turbofan] Add Disallow* scopes to type narrowing reducer. No changes were necessary. R=jarin@chromium.org Bug: v8:7790 Change-Id: I8a5c308b9534ee1fb669a901b6626c338883fbf8 Reviewed-on: https://chromium-review.googlesource.com/1128741 Reviewed-by: Jaroslav Sevcik Commit-Queue: Georg Neis Cr-Commit-Position: refs/heads/master@{#54315} --- src/compiler/type-narrowing-reducer.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/type-narrowing-reducer.cc b/src/compiler/type-narrowing-reducer.cc index a3044fd341..e9c8ff88a7 100644 --- a/src/compiler/type-narrowing-reducer.cc +++ b/src/compiler/type-narrowing-reducer.cc @@ -20,6 +20,11 @@ TypeNarrowingReducer::TypeNarrowingReducer(Editor* editor, JSGraph* jsgraph, TypeNarrowingReducer::~TypeNarrowingReducer() {} Reduction TypeNarrowingReducer::Reduce(Node* node) { + DisallowHeapAllocation no_heap_allocation; + DisallowHandleAllocation no_handle_allocation; + DisallowHandleDereference no_handle_dereference; + DisallowCodeDependencyChange no_dependency_change; + Type new_type = Type::Any(); switch (node->opcode()) {