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 @@ ...@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {Source,SourceResolver,sourcePositionToStringKey} from "./source-resolver.js" import {Source,SourceResolver,sourcePositionToStringKey} from "../src/source-resolver"
import {SelectionBroker} from "./selection-broker.js" import {SelectionBroker} from "../src/selection-broker"
import {View} from "./view.js" import {View} from "../src/view"
import {MySelection} from "./selection.js" import {MySelection} from "../src/selection"
import {anyToString,ViewElements} from "./util.js" import {anyToString,ViewElements} from "../src/util"
export enum CodeMode { export enum CodeMode {
MAIN_SOURCE = "main function", MAIN_SOURCE = "main function",
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {PROF_COLS, UNICODE_BLOCK} from "./constants.js" import {PROF_COLS, UNICODE_BLOCK} from "../src/constants"
import {SelectionBroker} from "./selection-broker.js" import {SelectionBroker} from "../src/selection-broker"
import {TextView} from "./text-view.js" import {TextView} from "../src/text-view"
export class DisassemblyView extends TextView { export class DisassemblyView extends TextView {
SOURCE_POSITION_HEADER_REGEX: any; SOURCE_POSITION_HEADER_REGEX: any;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // 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; export const MINIMUM_EDGE_SEPARATION = 20;
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// found in the LICENSE file. // found in the LICENSE file.
import {MAX_RANK_SENTINEL} from "./constants.js" import {MAX_RANK_SENTINEL} from "../src/constants"
import {MINIMUM_EDGE_SEPARATION} from "./edge.js" import {MINIMUM_EDGE_SEPARATION} from "../src/edge"
import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH, DEFAULT_NODE_BUBBLE_RADIUS} from "./node.js" import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH, DEFAULT_NODE_BUBBLE_RADIUS} from "../src/node"
const DEFAULT_NODE_ROW_SEPARATION = 130 const DEFAULT_NODE_ROW_SEPARATION = 130
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
// found in the LICENSE file. // found in the LICENSE file.
import * as d3 from "d3" import * as d3 from "d3"
import {layoutNodeGraph} from "./graph-layout.js" import {layoutNodeGraph} from "../src/graph-layout"
import {MAX_RANK_SENTINEL} from "./constants.js" import {MAX_RANK_SENTINEL} from "../src/constants"
import {GNode, nodeToStr, isNodeInitiallyVisible} from "./node.js" import {GNode, nodeToStr, isNodeInitiallyVisible} from "../src/node"
import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH} from "./node.js" import {NODE_INPUT_WIDTH, MINIMUM_NODE_OUTPUT_APPROACH} from "../src/node"
import {DEFAULT_NODE_BUBBLE_RADIUS} from "./node.js" import {DEFAULT_NODE_BUBBLE_RADIUS} from "../src/node"
import {Edge, edgeToStr} from "./edge.js" import {Edge, edgeToStr} from "../src/edge"
import {View, PhaseView} from "./view.js" import {View, PhaseView} from "../src/view"
import {MySelection} from "./selection.js" import {MySelection} from "../src/selection"
import {partial, alignUp} from "./util.js" import {partial, alignUp} from "../src/util"
function nodeToStringKey(n) { function nodeToStringKey(n) {
return "" + n.id; return "" + n.id;
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {GraphView} from "./graph-view.js" import {GraphView} from "../src/graph-view"
import {ScheduleView} from "./schedule-view.js" import {ScheduleView} from "../src/schedule-view"
import {SequenceView} from "./sequence-view.js" import {SequenceView} from "../src/sequence-view"
import {SourceResolver} from "./source-resolver.js" import {SourceResolver} from "../src/source-resolver"
import {SelectionBroker} from "./selection-broker.js" import {SelectionBroker} from "../src/selection-broker"
import {View, PhaseView} from "./view.js" import {View, PhaseView} from "../src/view"
export class GraphMultiView extends View { export class GraphMultiView extends View {
sourceResolver: SourceResolver; sourceResolver: SourceResolver;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {NodeOrigin} from "./source-resolver.js" import {NodeOrigin} from "../src/source-resolver"
import {MINIMUM_EDGE_SEPARATION} from "./edge.js" import {MINIMUM_EDGE_SEPARATION} from "../src/edge"
export const DEFAULT_NODE_BUBBLE_RADIUS = 12; export const DEFAULT_NODE_BUBBLE_RADIUS = 12;
export const NODE_INPUT_WIDTH = 50; export const NODE_INPUT_WIDTH = 50;
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {Schedule,SourceResolver} from "./source-resolver.js" import {Schedule,SourceResolver} from "../src/source-resolver"
import {isIterable} from "./util.js" import {isIterable} from "../src/util"
import {PhaseView} from "./view.js" import {PhaseView} from "../src/view"
import {TextView} from "./text-view.js" import {TextView} from "../src/text-view"
export class ScheduleView extends TextView implements PhaseView { export class ScheduleView extends TextView implements PhaseView {
schedule: Schedule; schedule: Schedule;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {SourceResolver, sourcePositionValid} from "./source-resolver.js" import {SourceResolver, sourcePositionValid} from "../src/source-resolver"
export class SelectionBroker { export class SelectionBroker {
sourceResolver: SourceResolver; sourceResolver: SourceResolver;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {isIterable} from "./util.js" import {isIterable} from "../src/util"
export class MySelection { export class MySelection {
selection: any; selection: any;
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {Sequence} from "./source-resolver.js" import {Sequence} from "../src/source-resolver"
import {isIterable} from "./util.js" import {isIterable} from "../src/util"
import {PhaseView} from "./view.js" import {PhaseView} from "../src/view"
import {TextView} from "./text-view.js" import {TextView} from "../src/text-view"
export class SequenceView extends TextView implements PhaseView { export class SequenceView extends TextView implements PhaseView {
sequence: Sequence; sequence: Sequence;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {sortUnique, anyToString} from "./util.js" import {sortUnique, anyToString} from "../src/util"
function sourcePositionLe(a, b) { function sourcePositionLe(a, b) {
if (a.inliningId == b.inliningId) { if (a.inliningId == b.inliningId) {
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import {View} from "./view.js" import {View} from "../src/view"
import {anyToString, ViewElements, isIterable} from "./util.js" import {anyToString, ViewElements, isIterable} from "../src/util"
import {MySelection} from "./selection.js" import {MySelection} from "../src/selection"
export abstract class TextView extends View { export abstract class TextView extends View {
selectionHandler: NodeSelectionHandler; selectionHandler: NodeSelectionHandler;
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import * as C from "./constants.js" import * as C from "../src/constants"
import {SourceResolver} from "./source-resolver.js" import {SourceResolver} from "../src/source-resolver"
import {SelectionBroker} from "./selection-broker.js" import {SelectionBroker} from "../src/selection-broker"
import {DisassemblyView} from "./disassembly-view.js" import {DisassemblyView} from "../src/disassembly-view"
import {GraphMultiView} from "./graphmultiview.js" import {GraphMultiView} from "../src/graphmultiview"
import {CodeMode, CodeView} from "./code-view.js" import {CodeMode, CodeView} from "../src/code-view"
import * as d3 from "d3" import * as d3 from "d3"
class Snapper { 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