Chromium Code Reviews| 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" |
| 11 | 11 |
| 12 #include "src/compilation-cache.h" | 12 #include "src/compilation-cache.h" |
| 13 #include "src/compilation-dependencies.h" | 13 #include "src/compilation-dependencies.h" |
| 14 #include "src/compilation-info.h" | 14 #include "src/compilation-info.h" |
| 15 #include "src/execution.h" | 15 #include "src/execution.h" |
| 16 #include "src/factory.h" | 16 #include "src/factory.h" |
| 17 #include "src/field-type.h" | 17 #include "src/field-type.h" |
| 18 #include "src/global-handles.h" | 18 #include "src/global-handles.h" |
| 19 #include "src/ic/stub-cache.h" | 19 #include "src/ic/stub-cache.h" |
| 20 #include "src/macro-assembler.h" | 20 #include "src/macro-assembler.h" |
| 21 #include "src/types.h" | 21 // #include "src/types.h" |
|
Michael Starzinger
2016/09/05 14:22:35
nit: Can we remove the line instead of commenting
mvstanton
2016/09/05 14:51:41
Done.
| |
| 22 | 22 |
| 23 using namespace v8::internal; | 23 using namespace v8::internal; |
| 24 | 24 |
| 25 | 25 |
| 26 // TODO(ishell): fix this once TransitionToPrototype stops generalizing | 26 // TODO(ishell): fix this once TransitionToPrototype stops generalizing |
| 27 // all field representations (similar to crbug/448711 where elements kind | 27 // all field representations (similar to crbug/448711 where elements kind |
| 28 // and observed transitions caused generalization of all field representations). | 28 // and observed transitions caused generalization of all field representations). |
| 29 const bool IS_PROTO_TRANS_ISSUE_FIXED = false; | 29 const bool IS_PROTO_TRANS_ISSUE_FIXED = false; |
| 30 | 30 |
| 31 | 31 |
| (...skipping 2386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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), AstType::NonInternal()); | 2422 CHECK_EQ(FieldType::Any()->Convert(&zone), AstType::NonInternal()); |
| 2423 CHECK_EQ(FieldType::None()->Convert(&zone), AstType::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 |