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

Unified Diff: src/code-stubs.cc

Issue 2405203002: [stubs] Simplify the ArrayConstructorStub. (Closed)
Patch Set: Created 4 years, 2 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/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index ee8dd6160552844cd2304e48302591802c9cc453..eb2bf32b6b6d116a7bfd1fa38224f3e99a934ee1 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -2692,26 +2692,6 @@ void StoreFastElementStub::GenerateAheadOfTime(Isolate* isolate) {
}
}
-void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT
- os << "ArrayConstructorStub";
- switch (argument_count()) {
- case ANY:
- os << "_Any";
- break;
- case NONE:
- os << "_None";
- break;
- case ONE:
- os << "_One";
- break;
- case MORE_THAN_ONE:
- os << "_More_Than_One";
- break;
- }
- return;
-}
-
-
bool ToBooleanICStub::UpdateStatus(Handle<Object> object) {
Types new_types = types();
Types old_types = new_types;
@@ -2976,23 +2956,7 @@ void GrowArrayElementsStub::GenerateAssembly(
}
ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
- : PlatformCodeStub(isolate) {
- minor_key_ = ArgumentCountBits::encode(ANY);
-}
-
-ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate,
- int argument_count)
- : PlatformCodeStub(isolate) {
- if (argument_count == 0) {
- minor_key_ = ArgumentCountBits::encode(NONE);
- } else if (argument_count == 1) {
- minor_key_ = ArgumentCountBits::encode(ONE);
- } else if (argument_count >= 2) {
- minor_key_ = ArgumentCountBits::encode(MORE_THAN_ONE);
- } else {
- UNREACHABLE();
- }
-}
+ : PlatformCodeStub(isolate) {}
InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
: PlatformCodeStub(isolate) {}
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698