Commit 27433918 authored by titzer's avatar titzer Committed by Commit bot

Move machine-type.h from src/compiler to src/.

R=bmeurer@chromium.org,jarin@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1498833002

Cr-Commit-Position: refs/heads/master@{#32564}
parent 33142c12
...@@ -797,8 +797,6 @@ source_set("v8_base") { ...@@ -797,8 +797,6 @@ source_set("v8_base") {
"src/compiler/machine-operator-reducer.h", "src/compiler/machine-operator-reducer.h",
"src/compiler/machine-operator.cc", "src/compiler/machine-operator.cc",
"src/compiler/machine-operator.h", "src/compiler/machine-operator.h",
"src/compiler/machine-type.cc",
"src/compiler/machine-type.h",
"src/compiler/move-optimizer.cc", "src/compiler/move-optimizer.cc",
"src/compiler/move-optimizer.h", "src/compiler/move-optimizer.h",
"src/compiler/node-aux-data.h", "src/compiler/node-aux-data.h",
...@@ -1096,6 +1094,8 @@ source_set("v8_base") { ...@@ -1096,6 +1094,8 @@ source_set("v8_base") {
"src/lookup.cc", "src/lookup.cc",
"src/lookup.h", "src/lookup.h",
"src/macro-assembler.h", "src/macro-assembler.h",
"src/machine-type.cc",
"src/machine-type.h",
"src/messages.cc", "src/messages.cc",
"src/messages.h", "src/messages.h",
"src/msan.h", "src/msan.h",
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#include "src/compiler/graph.h" #include "src/compiler/graph.h"
#include "src/compiler/instruction-selector.h" #include "src/compiler/instruction-selector.h"
#include "src/compiler/linkage.h" #include "src/compiler/linkage.h"
#include "src/compiler/machine-type.h"
#include "src/compiler/pipeline.h" #include "src/compiler/pipeline.h"
#include "src/compiler/raw-machine-assembler.h" #include "src/compiler/raw-machine-assembler.h"
#include "src/compiler/schedule.h" #include "src/compiler/schedule.h"
#include "src/frames.h" #include "src/frames.h"
#include "src/interface-descriptors.h" #include "src/interface-descriptors.h"
#include "src/interpreter/bytecodes.h" #include "src/interpreter/bytecodes.h"
#include "src/machine-type.h"
#include "src/macro-assembler.h" #include "src/macro-assembler.h"
#include "src/zone.h" #include "src/zone.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define V8_COMPILER_COMMON_OPERATOR_H_ #define V8_COMPILER_COMMON_OPERATOR_H_
#include "src/compiler/frame-states.h" #include "src/compiler/frame-states.h"
#include "src/compiler/machine-type.h" #include "src/machine-type.h"
#include "src/zone-containers.h" #include "src/zone-containers.h"
namespace v8 { namespace v8 {
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#include "src/compiler/graph.h" #include "src/compiler/graph.h"
#include "src/compiler/instruction-selector.h" #include "src/compiler/instruction-selector.h"
#include "src/compiler/linkage.h" #include "src/compiler/linkage.h"
#include "src/compiler/machine-type.h"
#include "src/compiler/pipeline.h" #include "src/compiler/pipeline.h"
#include "src/compiler/raw-machine-assembler.h" #include "src/compiler/raw-machine-assembler.h"
#include "src/compiler/schedule.h" #include "src/compiler/schedule.h"
#include "src/frames.h" #include "src/frames.h"
#include "src/interface-descriptors.h" #include "src/interface-descriptors.h"
#include "src/interpreter/bytecodes.h" #include "src/interpreter/bytecodes.h"
#include "src/machine-type.h"
#include "src/macro-assembler.h" #include "src/macro-assembler.h"
#include "src/zone.h" #include "src/zone.h"
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
#include "src/base/flags.h" #include "src/base/flags.h"
#include "src/compiler/frame.h" #include "src/compiler/frame.h"
#include "src/compiler/machine-type.h"
#include "src/compiler/operator.h" #include "src/compiler/operator.h"
#include "src/frames.h" #include "src/frames.h"
#include "src/machine-type.h"
#include "src/runtime/runtime.h" #include "src/runtime/runtime.h"
#include "src/zone.h" #include "src/zone.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define V8_COMPILER_MACHINE_OPERATOR_H_ #define V8_COMPILER_MACHINE_OPERATOR_H_
#include "src/base/flags.h" #include "src/base/flags.h"
#include "src/compiler/machine-type.h" #include "src/machine-type.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include <iosfwd> #include <iosfwd>
#include "src/compiler/machine-type.h"
#include "src/handles.h" #include "src/handles.h"
#include "src/machine-type.h"
#include "src/objects.h" #include "src/objects.h"
namespace v8 { namespace v8 {
......
...@@ -2,12 +2,11 @@ ...@@ -2,12 +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.
#include "src/compiler/machine-type.h" #include "src/machine-type.h"
#include "src/ostreams.h" #include "src/ostreams.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
namespace compiler {
#define PRINT(bit) \ #define PRINT(bit) \
if (type & bit) { \ if (type & bit) { \
...@@ -41,6 +40,5 @@ std::ostream& operator<<(std::ostream& os, const MachineType& type) { ...@@ -41,6 +40,5 @@ std::ostream& operator<<(std::ostream& os, const MachineType& type) {
#undef PRINT #undef PRINT
} // namespace compiler
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
...@@ -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.
#ifndef V8_COMPILER_MACHINE_TYPE_H_ #ifndef V8_MACHINE_TYPE_H_
#define V8_COMPILER_MACHINE_TYPE_H_ #define V8_MACHINE_TYPE_H_
#include <iosfwd> #include <iosfwd>
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
namespace compiler {
// Machine-level types and representations. // Machine-level types and representations.
// TODO(titzer): Use the real type system instead of MachineType. // TODO(titzer): Use the real type system instead of MachineType.
...@@ -123,8 +122,7 @@ inline bool IsFloatingPoint(MachineType type) { ...@@ -123,8 +122,7 @@ inline bool IsFloatingPoint(MachineType type) {
typedef Signature<MachineType> MachineSignature; typedef Signature<MachineType> MachineSignature;
} // namespace compiler
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
#endif // V8_COMPILER_MACHINE_TYPE_H_ #endif // V8_MACHINE_TYPE_H_
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef V8_COMPILER_C_SIGNATURE_H_ #ifndef V8_COMPILER_C_SIGNATURE_H_
#define V8_COMPILER_C_SIGNATURE_H_ #define V8_COMPILER_C_SIGNATURE_H_
#include "src/compiler/machine-type.h" #include "src/machine-type.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -36,7 +36,7 @@ CallDescriptor* GetCallDescriptor(Zone* zone, int return_count, ...@@ -36,7 +36,7 @@ CallDescriptor* GetCallDescriptor(Zone* zone, int return_count,
// Add return location(s). // Add return location(s).
DCHECK(return_count <= config->num_allocatable_general_registers()); DCHECK(return_count <= config->num_allocatable_general_registers());
for (int i = 0; i < return_count; i++) { for (int i = 0; i < return_count; i++) {
msig.AddReturn(compiler::kMachInt32); msig.AddReturn(kMachInt32);
locations.AddReturn( locations.AddReturn(
LinkageLocation::ForRegister(config->allocatable_general_codes()[i])); LinkageLocation::ForRegister(config->allocatable_general_codes()[i]));
} }
...@@ -44,7 +44,7 @@ CallDescriptor* GetCallDescriptor(Zone* zone, int return_count, ...@@ -44,7 +44,7 @@ CallDescriptor* GetCallDescriptor(Zone* zone, int return_count,
// Add register and/or stack parameter(s). // Add register and/or stack parameter(s).
DCHECK(param_count <= config->num_allocatable_general_registers()); DCHECK(param_count <= config->num_allocatable_general_registers());
for (int i = 0; i < param_count; i++) { for (int i = 0; i < param_count; i++) {
msig.AddParam(compiler::kMachInt32); msig.AddParam(kMachInt32);
locations.AddParam( locations.AddParam(
LinkageLocation::ForRegister(config->allocatable_general_codes()[i])); LinkageLocation::ForRegister(config->allocatable_general_codes()[i]));
} }
...@@ -53,7 +53,7 @@ CallDescriptor* GetCallDescriptor(Zone* zone, int return_count, ...@@ -53,7 +53,7 @@ CallDescriptor* GetCallDescriptor(Zone* zone, int return_count,
const RegList kCalleeSaveFPRegisters = 0; const RegList kCalleeSaveFPRegisters = 0;
// The target for WASM calls is always a code object. // The target for WASM calls is always a code object.
MachineType target_type = compiler::kMachAnyTagged; MachineType target_type = kMachAnyTagged;
LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); LinkageLocation target_loc = LinkageLocation::ForAnyRegister();
return new (zone) CallDescriptor( // -- return new (zone) CallDescriptor( // --
CallDescriptor::kCallCodeObject, // kind CallDescriptor::kCallCodeObject, // kind
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include "src/assembler.h" #include "src/assembler.h"
#include "src/codegen.h" #include "src/codegen.h"
#include "src/compiler/linkage.h" #include "src/compiler/linkage.h"
#include "src/compiler/machine-type.h"
#include "src/compiler/raw-machine-assembler.h" #include "src/compiler/raw-machine-assembler.h"
#include "src/machine-type.h"
#include "src/register-configuration.h" #include "src/register-configuration.h"
#include "test/cctest/cctest.h" #include "test/cctest/cctest.h"
...@@ -208,7 +208,7 @@ class RegisterConfig { ...@@ -208,7 +208,7 @@ class RegisterConfig {
const RegList kCalleeSaveRegisters = 0; const RegList kCalleeSaveRegisters = 0;
const RegList kCalleeSaveFPRegisters = 0; const RegList kCalleeSaveFPRegisters = 0;
MachineType target_type = compiler::kMachAnyTagged; MachineType target_type = kMachAnyTagged;
LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); LinkageLocation target_loc = LinkageLocation::ForAnyRegister();
int stack_param_count = params.stack_offset; int stack_param_count = params.stack_offset;
return new (zone) CallDescriptor( // -- return new (zone) CallDescriptor( // --
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#include "src/compiler/common-operator.h" #include "src/compiler/common-operator.h"
#include "src/compiler/common-operator-reducer.h" #include "src/compiler/common-operator-reducer.h"
#include "src/compiler/machine-operator.h" #include "src/compiler/machine-operator.h"
#include "src/compiler/machine-type.h"
#include "src/compiler/operator.h" #include "src/compiler/operator.h"
#include "src/compiler/simplified-operator.h" #include "src/compiler/simplified-operator.h"
#include "src/machine-type.h"
#include "test/unittests/compiler/graph-reducer-unittest.h" #include "test/unittests/compiler/graph-reducer-unittest.h"
#include "test/unittests/compiler/graph-unittest.h" #include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h" #include "test/unittests/compiler/node-test-utils.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
#include "src/compiler/machine-operator.h" #include "src/compiler/machine-operator.h"
#include "src/compiler/machine-type.h" #include "src/machine-type.h"
#include "testing/gmock/include/gmock/gmock.h" #include "testing/gmock/include/gmock/gmock.h"
namespace v8 { namespace v8 {
......
...@@ -576,8 +576,6 @@ ...@@ -576,8 +576,6 @@
'../../src/compiler/machine-operator-reducer.h', '../../src/compiler/machine-operator-reducer.h',
'../../src/compiler/machine-operator.cc', '../../src/compiler/machine-operator.cc',
'../../src/compiler/machine-operator.h', '../../src/compiler/machine-operator.h',
'../../src/compiler/machine-type.cc',
'../../src/compiler/machine-type.h',
'../../src/compiler/move-optimizer.cc', '../../src/compiler/move-optimizer.cc',
'../../src/compiler/move-optimizer.h', '../../src/compiler/move-optimizer.h',
'../../src/compiler/node-aux-data.h', '../../src/compiler/node-aux-data.h',
...@@ -877,6 +875,8 @@ ...@@ -877,6 +875,8 @@
'../../src/lookup.cc', '../../src/lookup.cc',
'../../src/lookup.h', '../../src/lookup.h',
'../../src/macro-assembler.h', '../../src/macro-assembler.h',
'../../src/machine-type.cc',
'../../src/machine-type.h',
'../../src/messages.cc', '../../src/messages.cc',
'../../src/messages.h', '../../src/messages.h',
'../../src/msan.h', '../../src/msan.h',
......
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