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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 1386133002: [Interpreter] Add bitwise operators (Or, Xor, And) to interpreter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased the patch Created 5 years, 2 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 | src/interpreter/bytecode-array-builder.cc » ('j') | 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/compiler/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "src/interpreter/bytecode-array-iterator.h" 9 #include "src/interpreter/bytecode-array-iterator.h"
10 10
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 BuildBinaryOp(javascript()->Divide(language_mode()), iterator); 367 BuildBinaryOp(javascript()->Divide(language_mode()), iterator);
368 } 368 }
369 369
370 370
371 void BytecodeGraphBuilder::VisitMod( 371 void BytecodeGraphBuilder::VisitMod(
372 const interpreter::BytecodeArrayIterator& iterator) { 372 const interpreter::BytecodeArrayIterator& iterator) {
373 BuildBinaryOp(javascript()->Modulus(language_mode()), iterator); 373 BuildBinaryOp(javascript()->Modulus(language_mode()), iterator);
374 } 374 }
375 375
376 376
377 void BytecodeGraphBuilder::VisitBitwiseOr(
378 const interpreter::BytecodeArrayIterator& iterator) {
379 BuildBinaryOp(javascript()->BitwiseOr(language_mode()), iterator);
380 }
381
382
383 void BytecodeGraphBuilder::VisitBitwiseXor(
384 const interpreter::BytecodeArrayIterator& iterator) {
385 BuildBinaryOp(javascript()->BitwiseXor(language_mode()), iterator);
386 }
387
388
389 void BytecodeGraphBuilder::VisitBitwiseAnd(
390 const interpreter::BytecodeArrayIterator& iterator) {
391 BuildBinaryOp(javascript()->BitwiseAnd(language_mode()), iterator);
392 }
393
394
377 void BytecodeGraphBuilder::VisitShiftLeft( 395 void BytecodeGraphBuilder::VisitShiftLeft(
378 const interpreter::BytecodeArrayIterator& iterator) { 396 const interpreter::BytecodeArrayIterator& iterator) {
379 BuildBinaryOp(javascript()->ShiftLeft(language_mode()), iterator); 397 BuildBinaryOp(javascript()->ShiftLeft(language_mode()), iterator);
380 } 398 }
381 399
382 400
383 void BytecodeGraphBuilder::VisitShiftRight( 401 void BytecodeGraphBuilder::VisitShiftRight(
384 const interpreter::BytecodeArrayIterator& iterator) { 402 const interpreter::BytecodeArrayIterator& iterator) {
385 BuildBinaryOp(javascript()->ShiftRight(language_mode()), iterator); 403 BuildBinaryOp(javascript()->ShiftRight(language_mode()), iterator);
386 } 404 }
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 628
611 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { 629 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) {
612 if (environment()->IsMarkedAsUnreachable()) return; 630 if (environment()->IsMarkedAsUnreachable()) return;
613 environment()->MarkAsUnreachable(); 631 environment()->MarkAsUnreachable();
614 exit_controls_.push_back(exit); 632 exit_controls_.push_back(exit);
615 } 633 }
616 634
617 } // namespace compiler 635 } // namespace compiler
618 } // namespace internal 636 } // namespace internal
619 } // namespace v8 637 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698