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

Side by Side Diff: testing/gtest-type-names.h

Issue 466673004: Use CommonNodeCache for heap constants in ChangeLowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Build fix Created 6 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/compiler-unittests/node-cache-unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_TESTING_GTEST_TYPE_NAMES_H_ 5 #ifndef V8_TESTING_GTEST_TYPE_NAMES_H_
6 #define V8_TESTING_GTEST_TYPE_NAMES_H_ 6 #define V8_TESTING_GTEST_TYPE_NAMES_H_
7 7
8 #include "include/v8stdint.h" 8 #include "include/v8stdint.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace testing { 11 namespace testing {
12 namespace internal { 12 namespace internal {
13 13
14 #define GET_TYPE_NAME(type) \ 14 #define GET_TYPE_NAME(type) \
15 template <> \ 15 template <> \
16 std::string GetTypeName<type>() { \ 16 inline std::string GetTypeName<type>() { \
17 return #type; \ 17 return #type; \
18 } 18 }
19 GET_TYPE_NAME(int8_t) 19 GET_TYPE_NAME(int8_t)
20 GET_TYPE_NAME(uint8_t) 20 GET_TYPE_NAME(uint8_t)
21 GET_TYPE_NAME(int16_t) 21 GET_TYPE_NAME(int16_t)
22 GET_TYPE_NAME(uint16_t) 22 GET_TYPE_NAME(uint16_t)
23 GET_TYPE_NAME(int32_t) 23 GET_TYPE_NAME(int32_t)
24 GET_TYPE_NAME(uint32_t) 24 GET_TYPE_NAME(uint32_t)
25 GET_TYPE_NAME(int64_t) 25 GET_TYPE_NAME(int64_t)
26 GET_TYPE_NAME(uint64_t) 26 GET_TYPE_NAME(uint64_t)
27 GET_TYPE_NAME(float) 27 GET_TYPE_NAME(float)
28 GET_TYPE_NAME(double) 28 GET_TYPE_NAME(double)
29 #undef GET_TYPE_NAME 29 #undef GET_TYPE_NAME
30 30
31 } // namespace internal 31 } // namespace internal
32 } // namespace testing 32 } // namespace testing
33 33
34 #endif // V8_TESTING_GTEST_TYPE_NAMES_H_ 34 #endif // V8_TESTING_GTEST_TYPE_NAMES_H_
OLDNEW
« no previous file with comments | « test/compiler-unittests/node-cache-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698