OLD | NEW |
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 #include <limits> | 5 #include <limits> |
6 | 6 |
7 #include "src/compiler/change-lowering.h" | 7 #include "src/compiler/change-lowering.h" |
8 #include "src/compiler/control-builders.h" | 8 #include "src/compiler/control-builders.h" |
9 #include "src/compiler/generic-node-inl.h" | 9 #include "src/compiler/generic-node-inl.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 297 |
298 if (Pipeline::SupportedTarget()) { | 298 if (Pipeline::SupportedTarget()) { |
299 Object* result = t.Call(0); | 299 Object* result = t.Call(0); |
300 Object* false_obj = t.heap()->false_value(); | 300 Object* false_obj = t.heap()->false_value(); |
301 CHECK_EQ(false_obj, result); | 301 CHECK_EQ(false_obj, result); |
302 } | 302 } |
303 } | 303 } |
304 | 304 |
305 | 305 |
306 #ifndef V8_TARGET_ARCH_ARM64 | 306 #ifndef V8_TARGET_ARCH_ARM64 |
| 307 #if V8_TURBOFAN_BACKEND |
307 // TODO(titzer): disabled on ARM64 because calling into the runtime to | 308 // TODO(titzer): disabled on ARM64 because calling into the runtime to |
308 // allocate uses the wrong stack pointer. | 309 // allocate uses the wrong stack pointer. |
309 // TODO(titzer): disabled on ARM | 310 // TODO(titzer): disabled on ARM |
310 | 311 |
311 TEST(RunChangeInt32ToTaggedSmi) { | 312 TEST(RunChangeInt32ToTaggedSmi) { |
312 ChangesLoweringTester<Object*> t; | 313 ChangesLoweringTester<Object*> t; |
313 int32_t input; | 314 int32_t input; |
314 t.BuildLoadAndLower(t.simplified()->ChangeInt32ToTagged(), | 315 t.BuildLoadAndLower(t.simplified()->ChangeInt32ToTagged(), |
315 t.machine()->Load(kMachInt32), &input); | 316 t.machine()->Load(kMachInt32), &input); |
316 | 317 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 if (m == 2) SimulateFullSpace(CcTest::heap()->new_space()); | 403 if (m == 2) SimulateFullSpace(CcTest::heap()->new_space()); |
403 | 404 |
404 input = *i; | 405 input = *i; |
405 Object* result = t.CallWithPotentialGC<Object>(); | 406 Object* result = t.CallWithPotentialGC<Object>(); |
406 t.CheckNumber(input, result); | 407 t.CheckNumber(input, result); |
407 } | 408 } |
408 } | 409 } |
409 } | 410 } |
410 } | 411 } |
411 | 412 |
| 413 #endif // V8_TURBOFAN_BACKEND |
412 #endif // !V8_TARGET_ARCH_ARM64 | 414 #endif // !V8_TARGET_ARCH_ARM64 |
OLD | NEW |