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

Side by Side Diff: test/unittests/compiler/js-typed-lowering-unittest.cc

Issue 1227893005: TypeofMode replaces TypeofState and ContextualMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 years, 5 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-disasm-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/compiler/access-builder.h" 6 #include "src/compiler/access-builder.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/js-typed-lowering.h" 9 #include "src/compiler/js-typed-lowering.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 Node* const context = Parameter(Type::Any()); 943 Node* const context = Parameter(Type::Any());
944 Node* const vector = UndefinedConstant(); 944 Node* const vector = UndefinedConstant();
945 Node* const frame_state = EmptyFrameState(); 945 Node* const frame_state = EmptyFrameState();
946 Node* const effect = graph()->start(); 946 Node* const effect = graph()->start();
947 Node* const control = graph()->start(); 947 Node* const control = graph()->start();
948 Handle<String> name = factory()->object_string(); 948 Handle<String> name = factory()->object_string();
949 VectorSlotPair feedback; 949 VectorSlotPair feedback;
950 for (int i = 0; i < DynamicGlobalAccess::kMaxCheckDepth; ++i) { 950 for (int i = 0; i < DynamicGlobalAccess::kMaxCheckDepth; ++i) {
951 uint32_t bitset = 1 << i; // Only single check. 951 uint32_t bitset = 1 << i; // Only single check.
952 Reduction r = Reduce(graph()->NewNode( 952 Reduction r = Reduce(graph()->NewNode(
953 javascript()->LoadDynamicGlobal(name, bitset, feedback, NOT_CONTEXTUAL), 953 javascript()->LoadDynamicGlobal(name, bitset, feedback,
954 NOT_INSIDE_TYPEOF),
954 vector, context, context, frame_state, frame_state, effect, control)); 955 vector, context, context, frame_state, frame_state, effect, control));
955 ASSERT_TRUE(r.Changed()); 956 ASSERT_TRUE(r.Changed());
956 EXPECT_THAT( 957 EXPECT_THAT(
957 r.replacement(), 958 r.replacement(),
958 IsPhi(kMachAnyTagged, _, _, 959 IsPhi(kMachAnyTagged, _, _,
959 IsMerge( 960 IsMerge(
960 IsIfTrue(IsBranch( 961 IsIfTrue(IsBranch(
961 IsReferenceEqual( 962 IsReferenceEqual(
962 Type::Tagged(), 963 Type::Tagged(),
963 IsLoadContext( 964 IsLoadContext(
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 EXPECT_THAT(r.replacement(), 1126 EXPECT_THAT(r.replacement(),
1126 IsFinish(IsAllocate(IsNumberConstant(Context::SizeFor( 1127 IsFinish(IsAllocate(IsNumberConstant(Context::SizeFor(
1127 Context::MIN_CONTEXT_SLOTS)), 1128 Context::MIN_CONTEXT_SLOTS)),
1128 effect, control), 1129 effect, control),
1129 _)); 1130 _));
1130 } 1131 }
1131 1132
1132 } // namespace compiler 1133 } // namespace compiler
1133 } // namespace internal 1134 } // namespace internal
1134 } // namespace v8 1135 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/test-disasm-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698