Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: src/compiler/machine-type.cc

Issue 1498833002: Move machine-type.h from src/compiler to src/. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/machine-type.h ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/machine-type.cc
diff --git a/src/compiler/machine-type.cc b/src/compiler/machine-type.cc
deleted file mode 100644
index 7475a038cc0d2a35ffea40464ce2bd022d73f499..0000000000000000000000000000000000000000
--- a/src/compiler/machine-type.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 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.
-
-#include "src/compiler/machine-type.h"
-#include "src/ostreams.h"
-
-namespace v8 {
-namespace internal {
-namespace compiler {
-
-#define PRINT(bit) \
- if (type & bit) { \
- if (before) os << "|"; \
- os << #bit; \
- before = true; \
- }
-
-
-std::ostream& operator<<(std::ostream& os, const MachineType& type) {
- bool before = false;
- PRINT(kRepBit);
- PRINT(kRepWord8);
- PRINT(kRepWord16);
- PRINT(kRepWord32);
- PRINT(kRepWord64);
- PRINT(kRepFloat32);
- PRINT(kRepFloat64);
- PRINT(kRepTagged);
-
- PRINT(kTypeBool);
- PRINT(kTypeInt32);
- PRINT(kTypeUint32);
- PRINT(kTypeInt64);
- PRINT(kTypeUint64);
- PRINT(kTypeNumber);
- PRINT(kTypeAny);
- return os;
-}
-
-
-#undef PRINT
-
-} // namespace compiler
-} // namespace internal
-} // namespace v8
« no previous file with comments | « src/compiler/machine-type.h ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698