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

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: fix arm{,64},mips{,64} and remove ppc,s390,x87 again 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
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 05d4a0be792aab3c8121f15faf97e20f47543495..06376a8b150339183795ca28c2c372410ac90f11 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1060,13 +1060,8 @@ class FastNewFunctionContextStub final : public TurboFanCodeStub {
public:
static const int kMaximumSlots = 64;
klaasb 2016/07/26 17:04:52 I'm unsure whether/why we need to still limit this
rmcilroy 2016/07/27 11:11:39 Sounds reasonable to me, any reason why not to do
Benedikt Meurer 2016/08/01 17:35:08 Makes sense. Please do that.
- 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> {};
rmcilroy 2016/07/27 11:11:38 You can delete the SlotBits class now too.
klaasb 2016/07/27 17:06:31 Done.

Powered by Google App Engine
This is Rietveld 408576698