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

Unified Diff: test/cctest/test-code-stub-assembler.cc

Issue 2637523002: [promises] Clean up promise utils and remove dead code (Closed)
Patch Set: Fix nits Created 3 years, 11 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/v8.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-code-stub-assembler.cc
diff --git a/test/cctest/test-code-stub-assembler.cc b/test/cctest/test-code-stub-assembler.cc
index 372f695aa9902e3448bdce9719b2647f28c77117..068ef9c3d169205ba7a38bb7ffb807f2c88a0c9e 100644
--- a/test/cctest/test-code-stub-assembler.cc
+++ b/test/cctest/test-code-stub-assembler.cc
@@ -8,7 +8,6 @@
#include "src/code-stub-assembler.h"
#include "src/compiler/node.h"
#include "src/isolate.h"
-#include "src/promise-utils.h"
#include "test/cctest/compiler/code-assembler-tester.h"
#include "test/cctest/compiler/function-tester.h"
@@ -2005,10 +2004,11 @@ TEST(CreatePromiseResolvingFunctionsContext) {
CHECK_EQ(isolate->native_context()->closure(), context_js->closure());
CHECK_EQ(isolate->heap()->the_hole_value(), context_js->extension());
CHECK_EQ(*isolate->native_context(), context_js->native_context());
- CHECK_EQ(Smi::FromInt(0), context_js->get(PromiseUtils::kAlreadyVisitedSlot));
- CHECK(context_js->get(PromiseUtils::kPromiseSlot)->IsJSPromise());
+ CHECK_EQ(Smi::FromInt(0),
+ context_js->get(PromiseBuiltinsAssembler::kAlreadyVisitedSlot));
+ CHECK(context_js->get(PromiseBuiltinsAssembler::kPromiseSlot)->IsJSPromise());
CHECK_EQ(isolate->heap()->false_value(),
- context_js->get(PromiseUtils::kDebugEventSlot));
+ context_js->get(PromiseBuiltinsAssembler::kDebugEventSlot));
}
TEST(CreatePromiseResolvingFunctions) {
@@ -2175,11 +2175,12 @@ TEST(CreatePromiseGetCapabilitiesExecutorContext) {
ft.Call(isolate->factory()->undefined_value()).ToHandleChecked();
CHECK(result_obj->IsContext());
Handle<Context> context_js = Handle<Context>::cast(result_obj);
- CHECK_EQ(GetPromiseCapabilityExecutor::kContextLength, context_js->length());
+ CHECK_EQ(PromiseBuiltinsAssembler::kCapabilitiesContextLength,
+ context_js->length());
CHECK_EQ(isolate->native_context()->closure(), context_js->closure());
CHECK_EQ(isolate->heap()->the_hole_value(), context_js->extension());
CHECK_EQ(*isolate->native_context(), context_js->native_context());
- CHECK(context_js->get(GetPromiseCapabilityExecutor::kCapabilitySlot)
+ CHECK(context_js->get(PromiseBuiltinsAssembler::kCapabilitySlot)
->IsJSPromiseCapability());
}
@@ -2226,8 +2227,10 @@ TEST(NewPromiseCapability) {
CHECK_EQ(isolate->native_context()->closure(), context->closure());
CHECK_EQ(isolate->heap()->the_hole_value(), context->extension());
CHECK_EQ(*isolate->native_context(), context->native_context());
- CHECK_EQ(PromiseUtils::kPromiseContextLength, context->length());
- CHECK_EQ(context->get(PromiseUtils::kPromiseSlot), result->promise());
+ CHECK_EQ(PromiseBuiltinsAssembler::kPromiseContextLength,
+ context->length());
+ CHECK_EQ(context->get(PromiseBuiltinsAssembler::kPromiseSlot),
+ result->promise());
}
}
« no previous file with comments | « src/v8.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698