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

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

Issue 440863002: Remove broken _WIN64 checks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/code-generator-x64.cc ('k') | no next file » | 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 {
11 11
12 #ifndef _WIN64
13
14 // Adds X64-specific methods for generating operands. 12 // Adds X64-specific methods for generating operands.
15 class X64OperandGenerator V8_FINAL : public OperandGenerator { 13 class X64OperandGenerator V8_FINAL : public OperandGenerator {
16 public: 14 public:
17 explicit X64OperandGenerator(InstructionSelector* selector) 15 explicit X64OperandGenerator(InstructionSelector* selector)
18 : OperandGenerator(selector) {} 16 : OperandGenerator(selector) {}
19 17
20 InstructionOperand* TempRegister(Register reg) { 18 InstructionOperand* TempRegister(Register reg) {
21 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, 19 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER,
22 Register::ToAllocationIndex(reg)); 20 Register::ToAllocationIndex(reg));
23 } 21 }
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 710 }
713 711
714 // Caller clean up of stack for C-style calls. 712 // Caller clean up of stack for C-style calls.
715 if (descriptor->kind() == CallDescriptor::kCallAddress && 713 if (descriptor->kind() == CallDescriptor::kCallAddress &&
716 buffer.pushed_count > 0) { 714 buffer.pushed_count > 0) {
717 DCHECK(deoptimization == NULL && continuation == NULL); 715 DCHECK(deoptimization == NULL && continuation == NULL);
718 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); 716 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL);
719 } 717 }
720 } 718 }
721 719
722 #endif
723
724 } // namespace compiler 720 } // namespace compiler
725 } // namespace internal 721 } // namespace internal
726 } // namespace v8 722 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698