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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 1369123002: [Interpreter] Add interpreter support for compare ops and ToBoolean. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Previous change dropped exception, this adds it back. Created 5 years, 3 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/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 9bc634ef94cd538b541186177e19c56c5b30e53e..dd62a21e55f669db1fdee5d715d6b3858a86a135 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -288,9 +288,9 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToBoolean() {
case Bytecode::kTestEqualStrict:
case Bytecode::kTestNotEqualStrict:
case Bytecode::kTestLessThan:
- case Bytecode::kTestLessThanEqual:
+ case Bytecode::kTestLessThanOrEqual:
case Bytecode::kTestGreaterThan:
- case Bytecode::kTestGreaterThanEqual:
+ case Bytecode::kTestGreaterThanOrEqual:
case Bytecode::kTestInstanceOf:
case Bytecode::kTestIn:
break;
@@ -559,9 +559,9 @@ Bytecode BytecodeArrayBuilder::BytecodeForCompareOperation(Token::Value op) {
case Token::Value::GT:
return Bytecode::kTestGreaterThan;
case Token::Value::LTE:
- return Bytecode::kTestLessThanEqual;
+ return Bytecode::kTestLessThanOrEqual;
case Token::Value::GTE:
- return Bytecode::kTestGreaterThanEqual;
+ return Bytecode::kTestGreaterThanOrEqual;
case Token::Value::INSTANCEOF:
return Bytecode::kTestInstanceOf;
case Token::Value::IN:

Powered by Google App Engine
This is Rietveld 408576698