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

Side by Side Diff: test/cctest/test-field-type-tracking.cc

Issue 2302283002: Forking the type system between Crankshaft & Turbofan. (Closed)
Patch Set: Nits. Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-ast-types.cc ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « test/cctest/test-ast-types.cc ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698