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

Unified Diff: src/sh4/register-allocator-sh4.h

Issue 11275184: First draft of the sh4 port Base URL: http://github.com/v8/v8.git@master
Patch Set: Created 8 years, 1 month 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
Index: src/sh4/register-allocator-sh4.h
diff --git a/test/cctest/gay-shortest.h b/src/sh4/register-allocator-sh4.h
similarity index 82%
copy from test/cctest/gay-shortest.h
copy to src/sh4/register-allocator-sh4.h
index 9b512148e6e0885988190476ef97353e4a7bf769..24c50dc43ca1f05e114ee3b692c05d69e7222987 100644
--- a/test/cctest/gay-shortest.h
+++ b/src/sh4/register-allocator-sh4.h
@@ -1,4 +1,4 @@
-// Copyright 2006-2008 the V8 project authors. All rights reserved.
+// Copyright 2011-2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,20 +25,19 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef GAY_SHORTEST_H_
-#define GAY_SHORTEST_H_
+#ifndef V8_SH4_REGISTER_ALLOCATOR_SH4_H_
+#define V8_SH4_REGISTER_ALLOCATOR_SH4_H_
namespace v8 {
namespace internal {
-struct PrecomputedShortest {
- double v;
- const char* representation;
- int decimal_point;
+class RegisterAllocatorConstants : public AllStatic {
+ public:
+ static const int kNumRegisters = 5;
+ static const int kInvalidRegister = -1;
};
-Vector<const PrecomputedShortest> PrecomputedShortestRepresentations();
} } // namespace v8::internal
-#endif // GAY_SHORTEST_H_
+#endif // V8_SH4_REGISTER_ALLOCATOR_SH4_H_

Powered by Google App Engine
This is Rietveld 408576698