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

Unified Diff: src/code-stubs.h

Issue 2605893002: [builtins] More stubs to the builtin-o-sphere. (Closed)
Patch Set: Fixed compile error. Created 4 years 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-factory.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 e089fb3f4200e542513b45e890fb6b2f5cb0cb4e..f23aaac4839a0f536ef3cd5bfdb27515ee0eb813 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -96,9 +96,6 @@ class Node;
V(InternalArrayNoArgumentConstructor) \
V(InternalArraySingleArgumentConstructor) \
V(ElementsTransitionAndStore) \
- V(FastCloneRegExp) \
- V(FastCloneShallowArray) \
- V(FastCloneShallowObject) \
V(KeyedLoadSloppyArguments) \
V(KeyedStoreSloppyArguments) \
V(LoadScriptContextField) \
@@ -830,81 +827,6 @@ class FastNewStrictArgumentsStub final : public PlatformCodeStub {
class SkipStubFrameBits : public BitField<bool, 0, 1> {};
};
-class FastCloneRegExpStub final : public TurboFanCodeStub {
- public:
- explicit FastCloneRegExpStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
-
- static compiler::Node* Generate(CodeStubAssembler* assembler,
- compiler::Node* closure,
- compiler::Node* literal_index,
- compiler::Node* pattern,
- compiler::Node* flags,
- compiler::Node* context);
-
- private:
- DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneRegExp);
- DEFINE_TURBOFAN_CODE_STUB(FastCloneRegExp, TurboFanCodeStub);
-};
-
-class FastCloneShallowArrayStub : public TurboFanCodeStub {
- public:
- // Maximum number of elements in copied array (chosen so that even an array
- // backed by a double backing store will fit into new-space).
- static const int kMaximumClonedElements =
- JSArray::kInitialMaxFastElementArray * kPointerSize / kDoubleSize;
-
- FastCloneShallowArrayStub(Isolate* isolate,
- AllocationSiteMode allocation_site_mode)
- : TurboFanCodeStub(isolate) {
- minor_key_ = AllocationSiteModeBits::encode(allocation_site_mode);
- }
-
- static compiler::Node* Generate(CodeStubAssembler* assembler,
- compiler::Node* closure,
- compiler::Node* literal_index,
- compiler::Node* context,
- compiler::CodeAssemblerLabel* call_runtime,
- AllocationSiteMode allocation_site_mode);
-
- AllocationSiteMode allocation_site_mode() const {
- return AllocationSiteModeBits::decode(minor_key_);
- }
-
- private:
- class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {};
-
- DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray);
- DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowArray, TurboFanCodeStub);
-};
-
-class FastCloneShallowObjectStub : public TurboFanCodeStub {
- public:
- // Maximum number of properties in copied object.
- static const int kMaximumClonedProperties = 6;
-
- FastCloneShallowObjectStub(Isolate* isolate, int length)
- : TurboFanCodeStub(isolate) {
- DCHECK_GE(length, 0);
- DCHECK_LE(length, kMaximumClonedProperties);
- minor_key_ = LengthBits::encode(LengthBits::encode(length));
- }
-
- static compiler::Node* GenerateFastPath(
- CodeStubAssembler* assembler, compiler::CodeAssemblerLabel* call_runtime,
- compiler::Node* closure, compiler::Node* literals_index,
- compiler::Node* properties_count);
-
- static int PropertiesCount(int literal_length);
-
- int length() const { return LengthBits::decode(minor_key_); }
-
- private:
- class LengthBits : public BitField<int, 0, 4> {};
-
- DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowObject);
- DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowObject, TurboFanCodeStub);
-};
-
class CreateAllocationSiteStub : public TurboFanCodeStub {
public:
explicit CreateAllocationSiteStub(Isolate* isolate)
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698