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

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

Issue 1392913002: [Interpreter] Adds shift operators to interpreter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a test for shift operators and comments 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 BuildBinaryOp(javascript()->Divide(language_mode()), iterator); 355 BuildBinaryOp(javascript()->Divide(language_mode()), iterator);
356 } 356 }
357 357
358 358
359 void BytecodeGraphBuilder::VisitMod( 359 void BytecodeGraphBuilder::VisitMod(
360 const interpreter::BytecodeArrayIterator& iterator) { 360 const interpreter::BytecodeArrayIterator& iterator) {
361 BuildBinaryOp(javascript()->Modulus(language_mode()), iterator); 361 BuildBinaryOp(javascript()->Modulus(language_mode()), iterator);
362 } 362 }
363 363
364 364
365 void BytecodeGraphBuilder::VisitShiftLeft(
366 const interpreter::BytecodeArrayIterator& iterator) {
367 BuildBinaryOp(javascript()->ShiftLeft(language_mode()), iterator);
368 }
369
370
371 void BytecodeGraphBuilder::VisitShiftRight(
372 const interpreter::BytecodeArrayIterator& iterator) {
373 BuildBinaryOp(javascript()->ShiftRight(language_mode()), iterator);
374 }
375
376
377 void BytecodeGraphBuilder::VisitShiftRightLogical(
378 const interpreter::BytecodeArrayIterator& iterator) {
379 BuildBinaryOp(javascript()->ShiftRightLogical(language_mode()), iterator);
380 }
381
382
365 void BytecodeGraphBuilder::VisitLogicalNot( 383 void BytecodeGraphBuilder::VisitLogicalNot(
366 const interpreter::BytecodeArrayIterator& iterator) { 384 const interpreter::BytecodeArrayIterator& iterator) {
367 UNIMPLEMENTED(); 385 UNIMPLEMENTED();
368 } 386 }
369 387
370 388
371 void BytecodeGraphBuilder::VisitTypeOf( 389 void BytecodeGraphBuilder::VisitTypeOf(
372 const interpreter::BytecodeArrayIterator& iterator) { 390 const interpreter::BytecodeArrayIterator& iterator) {
373 UNIMPLEMENTED(); 391 UNIMPLEMENTED();
374 } 392 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 598
581 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { 599 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) {
582 if (environment()->IsMarkedAsUnreachable()) return; 600 if (environment()->IsMarkedAsUnreachable()) return;
583 environment()->MarkAsUnreachable(); 601 environment()->MarkAsUnreachable();
584 exit_controls_.push_back(exit); 602 exit_controls_.push_back(exit);
585 } 603 }
586 604
587 } // namespace compiler 605 } // namespace compiler
588 } // namespace internal 606 } // namespace internal
589 } // namespace v8 607 } // 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