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 2177273002: Make FastNewFunctionContextStub take slots parameter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 4 years, 5 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-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 14c9a65ee0ccf8a752c9dda4f49b1c68da5db8da..2b521b62c9a87dc8552c41ef83fe7d8bd92fda72 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1082,19 +1082,10 @@ class FastNewClosureStub : public TurboFanCodeStub {
class FastNewFunctionContextStub final : public TurboFanCodeStub {
public:
- static const int kMaximumSlots = 64;
-
- FastNewFunctionContextStub(Isolate* isolate, int slots)
- : TurboFanCodeStub(isolate) {
- DCHECK(slots >= 0 && slots <= kMaximumSlots);
- minor_key_ = SlotsBits::encode(slots);
- }
-
- int slots() const { return SlotsBits::decode(minor_key_); }
+ explicit FastNewFunctionContextStub(Isolate* isolate)
+ : TurboFanCodeStub(isolate) {}
private:
- class SlotsBits : public BitField<int, 0, 8> {};
-
DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewFunctionContext);
DEFINE_TURBOFAN_CODE_STUB(FastNewFunctionContext, TurboFanCodeStub);
};
« 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