2016-04-18 08:28:33 +00:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
#ifndef V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
|
|
|
|
#define V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
|
|
|
|
|
2019-05-10 13:35:01 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2019-05-22 12:44:24 +00:00
|
|
|
#include "src/handles/handles.h"
|
2016-04-18 08:28:33 +00:00
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
|
|
|
|
2019-05-10 13:35:01 +00:00
|
|
|
class Map;
|
2016-04-18 08:28:33 +00:00
|
|
|
class Zone;
|
|
|
|
|
|
|
|
namespace compiler {
|
|
|
|
|
|
|
|
class JSGraph;
|
2019-05-10 13:35:01 +00:00
|
|
|
class NodeOriginTable;
|
2016-04-18 08:28:33 +00:00
|
|
|
class Schedule;
|
2016-11-16 15:06:05 +00:00
|
|
|
class SourcePositionTable;
|
2016-06-10 07:41:45 +00:00
|
|
|
|
2019-05-10 13:35:01 +00:00
|
|
|
enum class MaskArrayIndexEnable { kDoNotMaskArrayIndex, kMaskArrayIndex };
|
2019-03-18 15:50:32 +00:00
|
|
|
|
2019-05-10 13:35:01 +00:00
|
|
|
V8_EXPORT_PRIVATE void LinearizeEffectControl(
|
|
|
|
JSGraph* graph, Schedule* schedule, Zone* temp_zone,
|
|
|
|
SourcePositionTable* source_positions, NodeOriginTable* node_origins,
|
|
|
|
MaskArrayIndexEnable mask_array_index,
|
|
|
|
std::vector<Handle<Map>>* embedded_maps);
|
2016-04-18 08:28:33 +00:00
|
|
|
|
|
|
|
} // namespace compiler
|
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|
|
|
|
|
|
|
|
#endif // V8_COMPILER_EFFECT_CONTROL_LINEARIZER_H_
|