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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.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/arm64/instruction-codes-arm64.h ('k') | src/compiler/ia32/code-generator-ia32.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 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 void InstructionSelector::VisitWord32Sar(Node* node) { 322 void InstructionSelector::VisitWord32Sar(Node* node) {
323 VisitRRO(this, kArm64Sar32, node, kShift32Imm); 323 VisitRRO(this, kArm64Sar32, node, kShift32Imm);
324 } 324 }
325 325
326 326
327 void InstructionSelector::VisitWord64Sar(Node* node) { 327 void InstructionSelector::VisitWord64Sar(Node* node) {
328 VisitRRO(this, kArm64Sar, node, kShift64Imm); 328 VisitRRO(this, kArm64Sar, node, kShift64Imm);
329 } 329 }
330 330
331 331
332 void InstructionSelector::VisitWord32Ror(Node* node) {
333 VisitRRO(this, kArm64Ror32, node, kShift32Imm);
334 }
335
336
337 void InstructionSelector::VisitWord64Ror(Node* node) {
338 VisitRRO(this, kArm64Ror, node, kShift64Imm);
339 }
340
341
332 void InstructionSelector::VisitInt32Add(Node* node) { 342 void InstructionSelector::VisitInt32Add(Node* node) {
333 VisitBinop(this, node, kArm64Add32, kArithimeticImm); 343 VisitBinop(this, node, kArm64Add32, kArithimeticImm);
334 } 344 }
335 345
336 346
337 void InstructionSelector::VisitInt64Add(Node* node) { 347 void InstructionSelector::VisitInt64Add(Node* node) {
338 VisitBinop(this, node, kArm64Add, kArithimeticImm); 348 VisitBinop(this, node, kArm64Add, kArithimeticImm);
339 } 349 }
340 350
341 351
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // Caller clean up of stack for C-style calls. 668 // Caller clean up of stack for C-style calls.
659 if (is_c_frame && aligned_push_count > 0) { 669 if (is_c_frame && aligned_push_count > 0) {
660 DCHECK(deoptimization == NULL && continuation == NULL); 670 DCHECK(deoptimization == NULL && continuation == NULL);
661 Emit(kArm64Drop | MiscField::encode(aligned_push_count), NULL); 671 Emit(kArm64Drop | MiscField::encode(aligned_push_count), NULL);
662 } 672 }
663 } 673 }
664 674
665 } // namespace compiler 675 } // namespace compiler
666 } // namespace internal 676 } // namespace internal
667 } // namespace v8 677 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-codes-arm64.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698