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

Unified Diff: src/compiler/js-operator.h

Issue 1319383002: Drop ambiguous MaybeHandle comparison and hashing ops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-unique-2
Patch Set: Created 5 years, 4 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 | « no previous file | src/compiler/js-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index 0f4fd3572029a0e44931c3ff128b1c2dbb227c8c..d583f6414e4aa46a91189c811e38ec07c8b4f195 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -27,16 +27,15 @@ class VectorSlotPair {
bool IsValid() const { return !vector_.is_null(); }
- MaybeHandle<TypeFeedbackVector> vector() const { return vector_; }
+ Handle<TypeFeedbackVector> vector() const { return vector_; }
FeedbackVectorICSlot slot() const { return slot_; }
int index() const {
- Handle<TypeFeedbackVector> vector;
- return vector_.ToHandle(&vector) ? vector->GetIndex(slot_) : -1;
+ return vector_.is_null() ? -1 : vector_->GetIndex(slot_);
}
private:
- const MaybeHandle<TypeFeedbackVector> vector_;
+ const Handle<TypeFeedbackVector> vector_;
const FeedbackVectorICSlot slot_;
};
« no previous file with comments | « no previous file | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698