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

Unified Diff: src/code-stubs.h

Issue 2604833004: [builtins] FastNewFunctionContextStub becomes a builtin (Closed)
Patch Set: That was unnecessary, reverted :) 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
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index a94cbf82935f6de012fa9e87fc85df6fccdb58ee..1eed3e48167656a04799d158f34db064d198b71b 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -102,7 +102,6 @@ class Node;
V(FastCloneRegExp) \
V(FastCloneShallowArray) \
V(FastCloneShallowObject) \
- V(FastNewFunctionContext) \
V(KeyedLoadSloppyArguments) \
V(KeyedStoreSloppyArguments) \
V(LoadScriptContextField) \
@@ -787,40 +786,6 @@ class NumberToStringStub final : public TurboFanCodeStub {
DEFINE_TURBOFAN_CODE_STUB(NumberToString, TurboFanCodeStub);
};
-class FastNewFunctionContextStub final : public TurboFanCodeStub {
- public:
- static int MaximumSlots();
-
- explicit FastNewFunctionContextStub(Isolate* isolate, ScopeType scope_type)
- : TurboFanCodeStub(isolate) {
- minor_key_ = ScopeTypeBits::encode(scope_type);
- }
-
- static compiler::Node* Generate(CodeStubAssembler* assembler,
- compiler::Node* function,
- compiler::Node* slots,
- compiler::Node* context,
- ScopeType scope_type);
-
- ScopeType scope_type() const {
- return static_cast<ScopeType>(ScopeTypeBits::decode(minor_key_));
- }
-
- private:
- static const int kMaximumSlots = 0x8000;
- static const int kSmallMaximumSlots = 10;
-
- // FastNewFunctionContextStub can only allocate closures which fit in the
- // new space.
- STATIC_ASSERT(((kMaximumSlots + Context::MIN_CONTEXT_SLOTS) * kPointerSize +
- FixedArray::kHeaderSize) < kMaxRegularHeapObjectSize);
-
- class ScopeTypeBits : public BitField<bool, 0, 8> {};
-
- DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewFunctionContext);
- DEFINE_TURBOFAN_CODE_STUB(FastNewFunctionContext, TurboFanCodeStub);
-};
-
class FastNewObjectStub final : public PlatformCodeStub {
public:
explicit FastNewObjectStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
« src/builtins/builtins.h ('K') | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698