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

Side by Side Diff: src/compiler/representation-change.cc

Issue 1852553003: [builtins] Migrate Math.clz32 to a TurboFan builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.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/representation-change.h" 5 #include "src/compiler/representation-change.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 case IrOpcode::kNumberDivide: 458 case IrOpcode::kNumberDivide:
459 return machine()->Uint32Div(); 459 return machine()->Uint32Div();
460 case IrOpcode::kNumberModulus: 460 case IrOpcode::kNumberModulus:
461 return machine()->Uint32Mod(); 461 return machine()->Uint32Mod();
462 case IrOpcode::kNumberEqual: 462 case IrOpcode::kNumberEqual:
463 return machine()->Word32Equal(); 463 return machine()->Word32Equal();
464 case IrOpcode::kNumberLessThan: 464 case IrOpcode::kNumberLessThan:
465 return machine()->Uint32LessThan(); 465 return machine()->Uint32LessThan();
466 case IrOpcode::kNumberLessThanOrEqual: 466 case IrOpcode::kNumberLessThanOrEqual:
467 return machine()->Uint32LessThanOrEqual(); 467 return machine()->Uint32LessThanOrEqual();
468 case IrOpcode::kNumberClz32:
469 return machine()->Word32Clz();
468 default: 470 default:
469 UNREACHABLE(); 471 UNREACHABLE();
470 return nullptr; 472 return nullptr;
471 } 473 }
472 } 474 }
473 475
474 476
475 const Operator* RepresentationChanger::Float64OperatorFor( 477 const Operator* RepresentationChanger::Float64OperatorFor(
476 IrOpcode::Value opcode) { 478 IrOpcode::Value opcode) {
477 switch (opcode) { 479 switch (opcode) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 530
529 531
530 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 532 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
531 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 533 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
532 node); 534 node);
533 } 535 }
534 536
535 } // namespace compiler 537 } // namespace compiler
536 } // namespace internal 538 } // namespace internal
537 } // namespace v8 539 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698