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

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: move loop check 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') | src/code-stubs.cc » ('J')
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 05d4a0be792aab3c8121f15faf97e20f47543495..4846ba6a0ed4ceb08db964c7c13becab75c62b4b 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1060,17 +1060,10 @@ 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') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698