Commit bf9e2cd3 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[turbolizer] Make import paths project relative

This will allow us to use ts-node to execute tests written
in TypeScript.

Bug: v8:7327
Change-Id: I0804db1f112448350c5e91135242e6ec6706d231
Reviewed-on: https://chromium-review.googlesource.com/c/1274086
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56564}
parent eac44d60
......@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {Source,SourceResolver,sourcePositionToStringKey} from "./source-resolver.js"
import {SelectionBroker} from "./selection-broker.js"
import {View} from "./view.js"
import {MySelection} from "./selection.js"
import {anyToString,ViewElements} from "./util.js"
import {Source,SourceResolver,sourcePositionToStringKey} from "../src/source-resolver"
import {SelectionBroker} from "../src/selection-broker"
import {View} from "../src/view"
import {MySelection} from "../src/selection"
import {anyToString,ViewElements} from "../src/util"
export enum CodeMode {
MAIN_SOURCE = "main function",
......
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {PROF_COLS, UNICODE_BLOCK} from "./constants.js"
import {SelectionBroker} from "./selection-broker.js"
import {TextView} from "./text-view.js"
import {PROF_COLS, UNICODE_BLOCK} from "../src/constants"
import {SelectionBroker} from "../src/selection-broker"
import {TextView} from "../src/text-view"
export class DisassemblyView extends TextView {
SOURCE_POSITION_HEADER_REGEX: any;
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {GNode, DEFAULT_NODE_BUBBLE_RADIUS} from "./node.js"
import {GNode, DEFAULT_NODE_BUBBLE_RADIUS} from "../src/node"
export const MINIMUM_EDGE_SEPARATION = 20;
......
......@@ -3,9 +3,9 @@
// found in the LICENSE file.
import {MAX_RANK_SENTINEL} from "./constants.js"
import {MINIMUM_EDGE_SEPARATION} from "./edge.js"
import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH, DEFAULT_NODE_BUBBLE_RADIUS} from "./node.js"
import {MAX_RANK_SENTINEL} from "../src/constants"
import {MINIMUM_EDGE_SEPARATION} from "../src/edge"
import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH, DEFAULT_NODE_BUBBLE_RADIUS} from "../src/node"
const DEFAULT_NODE_ROW_SEPARATION = 130
......
......@@ -3,15 +3,15 @@
// found in the LICENSE file.
import * as d3 from "d3"
import {layoutNodeGraph} from "./graph-layout.js"
import {MAX_RANK_SENTINEL} from "./constants.js"
import {GNode, nodeToStr, isNodeInitiallyVisible} from "./node.js"
import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH} from "./node.js"
import {DEFAULT_NODE_BUBBLE_RADIUS} from "./node.js"
import {Edge, edgeToStr} from "./edge.js"
import {View, PhaseView} from "./view.js"
import {MySelection} from "./selection.js"
import {partial, alignUp} from "./util.js"
import {layoutNodeGraph} from "../src/graph-layout"
import {MAX_RANK_SENTINEL} from "../src/constants"
import {GNode, nodeToStr, isNodeInitiallyVisible} from "../src/node"
import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH} from "../src/node"
import {DEFAULT_NODE_BUBBLE_RADIUS} from "../src/node"
import {Edge, edgeToStr} from "../src/edge"
import {View, PhaseView} from "../src/view"
import {MySelection} from "../src/selection"
import {partial, alignUp} from "../src/util"
function nodeToStringKey(n) {
return "" + n.id;
......
......@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {GraphView} from "./graph-view.js"
import {ScheduleView} from "./schedule-view.js"
import {SequenceView} from "./sequence-view.js"
import {SourceResolver} from "./source-resolver.js"
import {SelectionBroker} from "./selection-broker.js"
import {View, PhaseView} from "./view.js"
import {GraphView} from "../src/graph-view"
import {ScheduleView} from "../src/schedule-view"
import {SequenceView} from "../src/sequence-view"
import {SourceResolver} from "../src/source-resolver"
import {SelectionBroker} from "../src/selection-broker"
import {View, PhaseView} from "../src/view"
export class GraphMultiView extends View {
sourceResolver: SourceResolver;
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NodeOrigin} from "./source-resolver.js"
import {MINIMUM_EDGE_SEPARATION} from "./edge.js"
import {NodeOrigin} from "../src/source-resolver"
import {MINIMUM_EDGE_SEPARATION} from "../src/edge"
export const DEFAULT_NODE_BUBBLE_RADIUS = 12;
export const NODE_INPUT_WIDTH = 50;
......
......@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {Schedule,SourceResolver} from "./source-resolver.js"
import {isIterable} from "./util.js"
import {PhaseView} from "./view.js"
import {TextView} from "./text-view.js"
import {Schedule,SourceResolver} from "../src/source-resolver"
import {isIterable} from "../src/util"
import {PhaseView} from "../src/view"
import {TextView} from "../src/text-view"
export class ScheduleView extends TextView implements PhaseView {
schedule: Schedule;
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {SourceResolver, sourcePositionValid} from "./source-resolver.js"
import {SourceResolver, sourcePositionValid} from "../src/source-resolver"
export class SelectionBroker {
sourceResolver: SourceResolver;
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {isIterable} from "./util.js"
import {isIterable} from "../src/util"
export class MySelection {
selection: any;
......
......@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {Sequence} from "./source-resolver.js"
import {isIterable} from "./util.js"
import {PhaseView} from "./view.js"
import {TextView} from "./text-view.js"
import {Sequence} from "../src/source-resolver"
import {isIterable} from "../src/util"
import {PhaseView} from "../src/view"
import {TextView} from "../src/text-view"
export class SequenceView extends TextView implements PhaseView {
sequence: Sequence;
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {sortUnique, anyToString} from "./util.js"
import {sortUnique, anyToString} from "../src/util"
function sourcePositionLe(a, b) {
if (a.inliningId == b.inliningId) {
......
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {View} from "./view.js"
import {anyToString, ViewElements, isIterable} from "./util.js"
import {MySelection} from "./selection.js"
import {View} from "../src/view"
import {anyToString, ViewElements, isIterable} from "../src/util"
import {MySelection} from "../src/selection"
export abstract class TextView extends View {
selectionHandler: NodeSelectionHandler;
......
......@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as C from "./constants.js"
import {SourceResolver} from "./source-resolver.js"
import {SelectionBroker} from "./selection-broker.js"
import {DisassemblyView} from "./disassembly-view.js"
import {GraphMultiView} from "./graphmultiview.js"
import {CodeMode, CodeView} from "./code-view.js"
import * as C from "../src/constants"
import {SourceResolver} from "../src/source-resolver"
import {SelectionBroker} from "../src/selection-broker"
import {DisassemblyView} from "../src/disassembly-view"
import {GraphMultiView} from "../src/graphmultiview"
import {CodeMode, CodeView} from "../src/code-view"
import * as d3 from "d3"
class Snapper {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment