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

Unified Diff: test/cctest/test-asm-validator.cc

Issue 1409763004: [types] Use the TypeCache consistently for common types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/zone-type-cache.h ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-asm-validator.cc
diff --git a/test/cctest/test-asm-validator.cc b/test/cctest/test-asm-validator.cc
index 28ab1e91a62c8a27d90540a9e0c3740b357ccbc2..45b5e278d6bcf48ae312c5fded2526e4b762caca 100644
--- a/test/cctest/test-asm-validator.cc
+++ b/test/cctest/test-asm-validator.cc
@@ -9,8 +9,8 @@
#include "src/parser.h"
#include "src/rewriter.h"
#include "src/scopes.h"
+#include "src/type-cache.h"
#include "src/typing-asm.h"
-#include "src/zone-type-cache.h"
#include "test/cctest/cctest.h"
#include "test/cctest/expression-type-collector.h"
#include "test/cctest/expression-type-collector-macros.h"
@@ -116,7 +116,7 @@ TEST(ValidateMinimum) {
Zone* zone = handles.main_zone();
ZoneVector<ExpressionTypeEntry> types(zone);
CHECK_EQ("", Validate(zone, test_function, &types));
- ZoneTypeCache cache;
+ TypeCache cache;
CHECK_TYPES_BEGIN {
// Module.
@@ -395,7 +395,7 @@ TEST(ValidateMinimum) {
namespace {
void CheckStdlibShortcuts(Zone* zone, ZoneVector<ExpressionTypeEntry>& types,
- size_t& index, int& depth, ZoneTypeCache& cache) {
+ size_t& index, int& depth, TypeCache& cache) {
// var exp = stdlib.*; (D * 12)
CHECK_VAR_SHORTCUT(Infinity, Bounds(cache.kFloat64));
CHECK_VAR_SHORTCUT(NaN, Bounds(cache.kFloat64));
@@ -452,7 +452,7 @@ void CheckStdlibShortcuts(Zone* zone, ZoneVector<ExpressionTypeEntry>& types,
Zone* zone = handles.main_zone(); \
ZoneVector<ExpressionTypeEntry> types(zone); \
CHECK_EQ("", Validate(zone, test_function, &types)); \
- ZoneTypeCache cache; \
+ TypeCache cache; \
\
CHECK_TYPES_BEGIN { \
/* Module. */ \
« no previous file with comments | « src/zone-type-cache.h ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698