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

Unified Diff: src/ic/ic-state.cc

Issue 919703003: WIP: Implement ES6 Spread-calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Flag calls as spread calls in parser, error on spread intrinsics/construct calls Created 5 years, 10 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/ic/ic-state.cc
diff --git a/src/ic/ic-state.cc b/src/ic/ic-state.cc
index a38a27a34a291686a596ab0c5272e504e4c0ef52..a1b013ae75e761792cb50ac618b4bf435f0d5ffd 100644
--- a/src/ic/ic-state.cc
+++ b/src/ic/ic-state.cc
@@ -19,12 +19,14 @@ void ICUtility::Clear(Isolate* isolate, Address address,
CallICState::CallICState(ExtraICState extra_ic_state)
: argc_(ArgcBits::decode(extra_ic_state)),
- call_type_(CallTypeBits::decode(extra_ic_state)) {}
+ call_type_(CallTypeBits::decode(extra_ic_state)),
+ is_spread_(IsSpreadBits::decode(extra_ic_state)) {}
ExtraICState CallICState::GetExtraICState() const {
ExtraICState extra_ic_state =
- ArgcBits::encode(argc_) | CallTypeBits::encode(call_type_);
+ ArgcBits::encode(argc_) | CallTypeBits::encode(call_type_) |
+ IsSpreadBits::encode(is_spread_);
return extra_ic_state;
}

Powered by Google App Engine
This is Rietveld 408576698