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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 1820753003: [interpreter] Drop overprotective --harmony-instanceof check. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 #include "src/compiler.h" 6 #include "src/compiler.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace interpreter { 10 namespace interpreter {
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 return Bytecode::kTestEqualStrict; 1426 return Bytecode::kTestEqualStrict;
1427 case Token::Value::LT: 1427 case Token::Value::LT:
1428 return Bytecode::kTestLessThan; 1428 return Bytecode::kTestLessThan;
1429 case Token::Value::GT: 1429 case Token::Value::GT:
1430 return Bytecode::kTestGreaterThan; 1430 return Bytecode::kTestGreaterThan;
1431 case Token::Value::LTE: 1431 case Token::Value::LTE:
1432 return Bytecode::kTestLessThanOrEqual; 1432 return Bytecode::kTestLessThanOrEqual;
1433 case Token::Value::GTE: 1433 case Token::Value::GTE:
1434 return Bytecode::kTestGreaterThanOrEqual; 1434 return Bytecode::kTestGreaterThanOrEqual;
1435 case Token::Value::INSTANCEOF: 1435 case Token::Value::INSTANCEOF:
1436 DCHECK(!FLAG_harmony_instanceof);
1437 return Bytecode::kTestInstanceOf; 1436 return Bytecode::kTestInstanceOf;
1438 case Token::Value::IN: 1437 case Token::Value::IN:
1439 return Bytecode::kTestIn; 1438 return Bytecode::kTestIn;
1440 default: 1439 default:
1441 UNREACHABLE(); 1440 UNREACHABLE();
1442 return static_cast<Bytecode>(-1); 1441 return static_cast<Bytecode>(-1);
1443 } 1442 }
1444 } 1443 }
1445 1444
1446 1445
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 } 1639 }
1641 1640
1642 // static 1641 // static
1643 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { 1642 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) {
1644 return value.is_short_operand(); 1643 return value.is_short_operand();
1645 } 1644 }
1646 1645
1647 } // namespace interpreter 1646 } // namespace interpreter
1648 } // namespace internal 1647 } // namespace internal
1649 } // namespace v8 1648 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698