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

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

Issue 1816063002: [interpreter] Prepare for shipping --harmony-instanceof. (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
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);
1436 return Bytecode::kTestInstanceOf; 1437 return Bytecode::kTestInstanceOf;
1437 case Token::Value::IN: 1438 case Token::Value::IN:
1438 return Bytecode::kTestIn; 1439 return Bytecode::kTestIn;
1439 default: 1440 default:
1440 UNREACHABLE(); 1441 UNREACHABLE();
1441 return static_cast<Bytecode>(-1); 1442 return static_cast<Bytecode>(-1);
1442 } 1443 }
1443 } 1444 }
1444 1445
1445 1446
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 } 1640 }
1640 1641
1641 // static 1642 // static
1642 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { 1643 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) {
1643 return value.is_short_operand(); 1644 return value.is_short_operand();
1644 } 1645 }
1645 1646
1646 } // namespace interpreter 1647 } // namespace interpreter
1647 } // namespace internal 1648 } // namespace internal
1648 } // namespace v8 1649 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698