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

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

Issue 1092353002: [strong] Disallow implicit conversions for binary arithmetic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback 5 Created 5 years, 8 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/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index 401f1f0b30e3e4629529c3d30de65d28c3b1c003..0b6ec9c0bdd653ef332c1339b00cf6e66ea93f77 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -217,21 +217,21 @@ class JSOperatorBuilder final : public ZoneObject {
const Operator* NotEqual();
const Operator* StrictEqual();
const Operator* StrictNotEqual();
- const Operator* LessThan();
- const Operator* GreaterThan();
- const Operator* LessThanOrEqual();
- const Operator* GreaterThanOrEqual();
- const Operator* BitwiseOr();
- const Operator* BitwiseXor();
- const Operator* BitwiseAnd();
- const Operator* ShiftLeft();
- const Operator* ShiftRight();
- const Operator* ShiftRightLogical();
- const Operator* Add();
- const Operator* Subtract();
- const Operator* Multiply();
- const Operator* Divide();
- const Operator* Modulus();
+ const Operator* LessThan(LanguageMode language_mode);
+ const Operator* GreaterThan(LanguageMode language_mode);
+ const Operator* LessThanOrEqual(LanguageMode language_mode);
+ const Operator* GreaterThanOrEqual(LanguageMode language_mode);
+ const Operator* BitwiseOr(LanguageMode language_mode);
+ const Operator* BitwiseXor(LanguageMode language_mode);
+ const Operator* BitwiseAnd(LanguageMode language_mode);
+ const Operator* ShiftLeft(LanguageMode language_mode);
+ const Operator* ShiftRight(LanguageMode language_mode);
+ const Operator* ShiftRightLogical(LanguageMode language_mode);
+ const Operator* Add(LanguageMode language_mode);
+ const Operator* Subtract(LanguageMode language_mode);
+ const Operator* Multiply(LanguageMode language_mode);
+ const Operator* Divide(LanguageMode language_mode);
+ const Operator* Modulus(LanguageMode language_mode);
const Operator* UnaryNot();
const Operator* ToBoolean();
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-operator.cc » ('j') | src/ic/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698