OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "test/cctest/test-api.h" | 8 #include "test/cctest/test-api.h" |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2412 TestTransitionTo(transition_op, transition_op, checker); | 2412 TestTransitionTo(transition_op, transition_op, checker); |
2413 } | 2413 } |
2414 | 2414 |
2415 TEST(FieldTypeConvertSimple) { | 2415 TEST(FieldTypeConvertSimple) { |
2416 CcTest::InitializeVM(); | 2416 CcTest::InitializeVM(); |
2417 v8::HandleScope scope(CcTest::isolate()); | 2417 v8::HandleScope scope(CcTest::isolate()); |
2418 Isolate* isolate = CcTest::i_isolate(); | 2418 Isolate* isolate = CcTest::i_isolate(); |
2419 | 2419 |
2420 Zone zone(isolate->allocator()); | 2420 Zone zone(isolate->allocator()); |
2421 | 2421 |
2422 CHECK_EQ(FieldType::Any()->Convert(&zone), Type::NonInternal()); | 2422 CHECK_EQ(FieldType::Any()->Convert(&zone), AstType::NonInternal()); |
2423 CHECK_EQ(FieldType::None()->Convert(&zone), Type::None()); | 2423 CHECK_EQ(FieldType::None()->Convert(&zone), AstType::None()); |
2424 } | 2424 } |
2425 | 2425 |
2426 // TODO(ishell): add this test once IS_ACCESSOR_FIELD_SUPPORTED is supported. | 2426 // TODO(ishell): add this test once IS_ACCESSOR_FIELD_SUPPORTED is supported. |
2427 // TEST(TransitionAccessorConstantToAnotherAccessorConstant) | 2427 // TEST(TransitionAccessorConstantToAnotherAccessorConstant) |
OLD | NEW |