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

Unified Diff: src/compiler/raw-machine-assembler.cc

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: update comments Created 3 years, 11 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/compiler/raw-machine-assembler.cc
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc
index a318dd02ae8c19bad8b6f0cf7804a27af9ffac1c..f695ee0b0fcffe7f8d29e11870b03e35e42bcc66 100644
--- a/src/compiler/raw-machine-assembler.cc
+++ b/src/compiler/raw-machine-assembler.cc
@@ -65,7 +65,7 @@ Schedule* RawMachineAssembler::Export() {
Node* RawMachineAssembler::Parameter(size_t index) {
- DCHECK(index < parameter_count());
+ DCHECK_LT(index, parameter_count());
Benedikt Meurer 2017/01/18 18:10:40 Same, please don't do this in this CL.
Camillo Bruni 2017/01/24 15:51:43 excluded.
return parameters_[index];
}

Powered by Google App Engine
This is Rietveld 408576698