Index: test/cctest/test-asm-validator.cc |
diff --git a/test/cctest/test-asm-validator.cc b/test/cctest/test-asm-validator.cc |
index 0316921272d6fb3d45a83ac2cfe7832635121dae..b292e86189aec7fd2915183089cecf968128094d 100644 |
--- a/test/cctest/test-asm-validator.cc |
+++ b/test/cctest/test-asm-validator.cc |
@@ -400,8 +400,8 @@ TEST(ValidateMinimum) { |
namespace { |
-void CheckStdlibShortcuts(Zone* zone, ZoneVector<ExpressionTypeEntry>& types, |
- size_t& index, int& depth, TypeCache& cache) { |
+void CheckStdlibShortcuts1(Zone* zone, ZoneVector<ExpressionTypeEntry>& types, |
+ size_t& index, int& depth, TypeCache& cache) { |
// var exp = stdlib.*; (D * 12) |
CHECK_VAR_SHORTCUT(Infinity, Bounds(cache.kAsmDouble)); |
CHECK_VAR_SHORTCUT(NaN, Bounds(cache.kAsmDouble)); |
@@ -426,6 +426,11 @@ void CheckStdlibShortcuts(Zone* zone, ZoneVector<ExpressionTypeEntry>& types, |
CHECK_VAR_MATH_SHORTCUT(abs, FUNC_N2N_TYPE); |
CHECK_VAR_MATH_SHORTCUT(imul, FUNC_II2I_TYPE); |
CHECK_VAR_MATH_SHORTCUT(fround, FUNC_N2F_TYPE); |
+} |
+ |
+ |
+void CheckStdlibShortcuts2(Zone* zone, ZoneVector<ExpressionTypeEntry>& types, |
+ size_t& index, int& depth, TypeCache& cache) { |
// var exp = stdlib.Math.*; (D * 12) |
CHECK_VAR_MATH_SHORTCUT(E, Bounds(cache.kAsmDouble)); |
CHECK_VAR_MATH_SHORTCUT(LN10, Bounds(cache.kAsmDouble)); |
@@ -463,11 +468,12 @@ void CheckStdlibShortcuts(Zone* zone, ZoneVector<ExpressionTypeEntry>& types, |
CHECK_TYPES_BEGIN { \ |
/* Module. */ \ |
CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) { |
-#define CHECK_FUNC_TYPES_END_1() \ |
- /* "use asm"; */ \ |
- CHECK_EXPR(Literal, Bounds(Type::String(zone))); \ |
- /* stdlib shortcuts. */ \ |
- CheckStdlibShortcuts(zone, types, index, depth, cache); |
+#define CHECK_FUNC_TYPES_END_1() \ |
+ /* "use asm"; */ \ |
+ CHECK_EXPR(Literal, Bounds(Type::String(zone))); \ |
+ /* stdlib shortcuts. */ \ |
+ CheckStdlibShortcuts1(zone, types, index, depth, cache); \ |
+ CheckStdlibShortcuts2(zone, types, index, depth, cache); |
#define CHECK_FUNC_TYPES_END_2() \ |