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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 469213002: [turbofan] Introduce WordRor machine operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix BUILD.gn Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | test/base-unittests/DEPS » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void InstructionSelector::VisitWord32Sar(Node* node) { 341 void InstructionSelector::VisitWord32Sar(Node* node) {
342 VisitWord32Shift(this, node, kX64Sar32); 342 VisitWord32Shift(this, node, kX64Sar32);
343 } 343 }
344 344
345 345
346 void InstructionSelector::VisitWord64Sar(Node* node) { 346 void InstructionSelector::VisitWord64Sar(Node* node) {
347 VisitWord64Shift(this, node, kX64Sar); 347 VisitWord64Shift(this, node, kX64Sar);
348 } 348 }
349 349
350 350
351 void InstructionSelector::VisitWord32Ror(Node* node) {
352 VisitWord32Shift(this, node, kX64Ror32);
353 }
354
355
356 void InstructionSelector::VisitWord64Ror(Node* node) {
357 VisitWord64Shift(this, node, kX64Ror);
358 }
359
360
351 void InstructionSelector::VisitInt32Add(Node* node) { 361 void InstructionSelector::VisitInt32Add(Node* node) {
352 VisitBinop(this, node, kX64Add32); 362 VisitBinop(this, node, kX64Add32);
353 } 363 }
354 364
355 365
356 void InstructionSelector::VisitInt64Add(Node* node) { 366 void InstructionSelector::VisitInt64Add(Node* node) {
357 VisitBinop(this, node, kX64Add); 367 VisitBinop(this, node, kX64Add);
358 } 368 }
359 369
360 370
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 if (descriptor->kind() == CallDescriptor::kCallAddress && 723 if (descriptor->kind() == CallDescriptor::kCallAddress &&
714 buffer.pushed_count > 0) { 724 buffer.pushed_count > 0) {
715 DCHECK(deoptimization == NULL && continuation == NULL); 725 DCHECK(deoptimization == NULL && continuation == NULL);
716 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); 726 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL);
717 } 727 }
718 } 728 }
719 729
720 } // namespace compiler 730 } // namespace compiler
721 } // namespace internal 731 } // namespace internal
722 } // namespace v8 732 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | test/base-unittests/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698