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

Unified Diff: test/unittests/compiler/js-intrinsic-lowering-unittest.cc

Issue 1104453006: [turbofan] Introduce explicit JSCreateLiteral[Array|Object]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/compiler/js-intrinsic-lowering-unittest.cc
diff --git a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc
index a9a59d5c04b063b17d3c319d61638f45b5abf24f..bc343060caa748453fca4974bd03df419942772f 100644
--- a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc
+++ b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/code-factory.h"
#include "src/compiler/access-builder.h"
#include "src/compiler/diamond.h"
#include "src/compiler/js-graph.h"
@@ -73,57 +72,6 @@ TEST_F(JSIntrinsicLoweringTest, InlineOptimizedConstructDouble) {
// -----------------------------------------------------------------------------
-// %_CreateArrayLiteral
-
-
-TEST_F(JSIntrinsicLoweringTest, InlineCreateArrayLiteral) {
- Node* const input0 = Parameter(0);
- Node* const input1 = Parameter(1);
- Node* const input2 = HeapConstant(factory()->NewFixedArray(12));
- Node* const input3 = NumberConstant(ArrayLiteral::kShallowElements);
- Node* const context = Parameter(2);
- Node* const frame_state = EmptyFrameState();
- Node* const effect = graph()->start();
- Node* const control = graph()->start();
- Reduction const r = Reduce(graph()->NewNode(
- javascript()->CallRuntime(Runtime::kInlineCreateArrayLiteral, 4), input0,
- input1, input2, input3, context, frame_state, effect, control));
- ASSERT_TRUE(r.Changed());
- EXPECT_THAT(
- r.replacement(),
- IsCall(_, IsHeapConstant(Unique<HeapObject>::CreateImmovable(
- CodeFactory::FastCloneShallowArray(isolate()).code())),
- input0, input1, input2, context, frame_state, effect, control));
-}
-
-
-// -----------------------------------------------------------------------------
-// %_CreateObjectLiteral
-
-
-TEST_F(JSIntrinsicLoweringTest, InlineCreateObjectLiteral) {
- Node* const input0 = Parameter(0);
- Node* const input1 = Parameter(1);
- Node* const input2 = HeapConstant(factory()->NewFixedArray(2 * 6));
- Node* const input3 = NumberConstant(ObjectLiteral::kShallowProperties);
- Node* const context = Parameter(2);
- Node* const frame_state = EmptyFrameState();
- Node* const effect = graph()->start();
- Node* const control = graph()->start();
- Reduction const r = Reduce(graph()->NewNode(
- javascript()->CallRuntime(Runtime::kInlineCreateObjectLiteral, 4), input0,
- input1, input2, input3, context, frame_state, effect, control));
- ASSERT_TRUE(r.Changed());
- EXPECT_THAT(
- r.replacement(),
- IsCall(_, IsHeapConstant(Unique<HeapObject>::CreateImmovable(
- CodeFactory::FastCloneShallowObject(isolate(), 6).code())),
- input0, input1, input2, input3, context, frame_state, effect,
- control));
-}
-
-
-// -----------------------------------------------------------------------------
// %_DoubleLo
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698