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

Unified Diff: src/code-stubs.h

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/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 7a803622f1ffd3ddb015bc1e40ceb7a018b7a298..3fb265a6aa5f2fe433bce2e1a1c05d6b2af54647 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1091,24 +1091,12 @@ enum AllocationSiteOverrideMode {
class ArrayConstructorStub: public PlatformCodeStub {
public:
- enum ArgumentCountKey { ANY, NONE, ONE, MORE_THAN_ONE };
-
- ArrayConstructorStub(Isolate* isolate, int argument_count);
-
explicit ArrayConstructorStub(Isolate* isolate);
private:
- ArgumentCountKey argument_count() const {
- return ArgumentCountBits::decode(minor_key_);
- }
-
void GenerateDispatchToArrayStub(MacroAssembler* masm,
AllocationSiteOverrideMode mode);
- void PrintName(std::ostream& os) const override; // NOLINT
-
- class ArgumentCountBits : public BitField<ArgumentCountKey, 0, 2> {};
-
DEFINE_CALL_INTERFACE_DESCRIPTOR(ArrayNArgumentsConstructor);
DEFINE_PLATFORM_CODE_STUB(ArrayConstructor, PlatformCodeStub);
};
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698