Skip to content

Commit

Permalink
move parseVatSlots.js out of src/vats/ up to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Sep 9, 2019
1 parent fa5c054 commit 2e24d8d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/kernel/deviceManager.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import harden from '@agoric/harden';
import { insist } from '../insist';
import { insistKernelType } from './parseKernelSlots';
import { insistVatType, parseVatSlot } from '../vats/parseVatSlots';
import { insistVatType, parseVatSlot } from '../parseVatSlots';

export default function makeDeviceManager(
deviceName,
Expand Down
6 changes: 1 addition & 5 deletions src/kernel/deviceSlots.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import harden from '@agoric/harden';
import Nat from '@agoric/nat';
import { QCLASS, mustPassByPresence, makeMarshal } from '@agoric/marshal';
import { insist } from '../insist';
import {
insistVatType,
makeVatSlot,
parseVatSlot,
} from '../vats/parseVatSlots';
import { insistVatType, makeVatSlot, parseVatSlot } from '../parseVatSlots';

// 'makeDeviceSlots' is a subset of makeLiveSlots, for device code

Expand Down
2 changes: 1 addition & 1 deletion src/kernel/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import makeVatManager from './vatManager';
import makeDeviceManager from './deviceManager';
import makeKernelKeeper from './state/kernelKeeper';
import { insistKernelType, parseKernelSlot } from './parseKernelSlots';
import { makeVatSlot } from '../vats/parseVatSlots';
import { makeVatSlot } from '../parseVatSlots';
import { insist } from '../insist';

function abbreviateReviver(_, arg) {
Expand Down
6 changes: 1 addition & 5 deletions src/kernel/liveSlots.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import harden from '@agoric/harden';
import Nat from '@agoric/nat';
import { QCLASS, mustPassByPresence, makeMarshal } from '@agoric/marshal';
import { insist } from '../insist';
import {
insistVatType,
makeVatSlot,
parseVatSlot,
} from '../vats/parseVatSlots';
import { insistVatType, makeVatSlot, parseVatSlot } from '../parseVatSlots';

// 'makeLiveSlots' is a dispatcher which uses javascript Maps to keep track
// of local objects which have been exported. These cannot be persisted
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/state/deviceKeeper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import harden from '@agoric/harden';
import { insist } from '../../insist';
import { parseKernelSlot } from '../parseKernelSlots';
import { makeVatSlot, parseVatSlot } from '../../vats/parseVatSlots';
import { makeVatSlot, parseVatSlot } from '../../parseVatSlots';

// makeVatKeeper is a pure function: all state is kept in the argument object

Expand Down
2 changes: 1 addition & 1 deletion src/kernel/state/vatKeeper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import harden from '@agoric/harden';
import { insist } from '../../insist';
import { parseKernelSlot } from '../parseKernelSlots';
import { makeVatSlot, parseVatSlot } from '../../vats/parseVatSlots';
import { makeVatSlot, parseVatSlot } from '../../parseVatSlots';

// makeVatKeeper is a pure function: all state is kept in the argument object

Expand Down
2 changes: 1 addition & 1 deletion src/kernel/vatManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import harden from '@agoric/harden';
import djson from './djson';
import { insist } from '../insist';
import { insistKernelType, parseKernelSlot } from './parseKernelSlots';
import { insistVatType, parseVatSlot } from '../vats/parseVatSlots';
import { insistVatType, parseVatSlot } from '../parseVatSlots';

export default function makeVatManager(
vatID,
Expand Down
2 changes: 1 addition & 1 deletion src/vats/parseVatSlots.js → src/parseVatSlots.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Nat from '@agoric/nat';
import { insist } from '../insist';
import { insist } from './insist';

// Object/promise references (in vats) contain a three-tuple of (type,
// allocator flag, index). The 'ownership' flag is expressed as a sign: "-"
Expand Down
2 changes: 1 addition & 1 deletion src/vats/comms/clist.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Nat from '@agoric/nat';
import { makeVatSlot, parseVatSlot, insistVatType } from '../parseVatSlots';
import { makeVatSlot, parseVatSlot, insistVatType } from '../../parseVatSlots';
import {
flipRemoteSlot,
insistRemoteType,
Expand Down
2 changes: 1 addition & 1 deletion src/vats/comms/dispatch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import harden from '@agoric/harden';
import { makeVatSlot } from '../parseVatSlots';
import { makeVatSlot } from '../../parseVatSlots';
import { getRemote } from './remote';
import { makeState } from './state';
import { deliverToRemote, resolvePromiseToRemote } from './outbound';
Expand Down
2 changes: 1 addition & 1 deletion src/vats/comms/outbound.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { insistVatType } from '../parseVatSlots';
import { insistVatType } from '../../parseVatSlots';
import { insistRemoteType } from './parseRemoteSlot';
import { getOutbound, mapOutbound, mapOutboundResult } from './clist';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/vats/comms/remote.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Nat from '@agoric/nat';
import { makeVatSlot, insistVatType } from '../parseVatSlots';
import { makeVatSlot, insistVatType } from '../../parseVatSlots';
import { insist } from '../../insist';

function makeRemoteID(index) {
Expand Down
2 changes: 1 addition & 1 deletion src/vats/comms/state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { insist } from '../../insist';
import { makeVatSlot } from '../parseVatSlots';
import { makeVatSlot } from '../../parseVatSlots';

export function makeState() {
const state = {
Expand Down
2 changes: 1 addition & 1 deletion test/test-kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* global setImmediate */
import { test } from 'tape-promise/tape';
import buildKernel from '../src/kernel/index';
import { makeVatSlot } from '../src/vats/parseVatSlots';
import { makeVatSlot } from '../src/parseVatSlots';
import { checkKT } from './util';

function checkPromises(t, kernel, expected) {
Expand Down

0 comments on commit 2e24d8d

Please sign in to comment.