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

Side by Side Diff: src/compiler/x64/linkage-x64.cc

Issue 434623003: Fix Win64 build (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/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-node.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/linkage-impl.h" 10 #include "src/compiler/linkage-impl.h"
11 #include "src/zone.h" 11 #include "src/zone.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 #ifndef _WIN64
18
17 #ifdef _WIN64 19 #ifdef _WIN64
18 const bool kWin64 = true; 20 const bool kWin64 = true;
19 #else 21 #else
20 const bool kWin64 = false; 22 const bool kWin64 = false;
21 #endif 23 #endif
22 24
23 struct LinkageHelperTraits { 25 struct LinkageHelperTraits {
24 static Register ReturnValueReg() { return rax; } 26 static Register ReturnValueReg() { return rax; }
25 static Register ReturnValue2Reg() { return rdx; } 27 static Register ReturnValue2Reg() { return rdx; }
26 static Register JSCallFunctionReg() { return rdi; } 28 static Register JSCallFunctionReg() { return rdi; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 this->info_->zone(), descriptor, stack_parameter_count); 71 this->info_->zone(), descriptor, stack_parameter_count);
70 } 72 }
71 73
72 74
73 CallDescriptor* Linkage::GetSimplifiedCDescriptor( 75 CallDescriptor* Linkage::GetSimplifiedCDescriptor(
74 Zone* zone, int num_params, MachineRepresentation return_type, 76 Zone* zone, int num_params, MachineRepresentation return_type,
75 const MachineRepresentation* param_types) { 77 const MachineRepresentation* param_types) {
76 return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>( 78 return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>(
77 zone, num_params, return_type, param_types); 79 zone, num_params, return_type, param_types);
78 } 80 }
81
82 #endif
79 } 83 }
80 } 84 }
81 } // namespace v8::internal::compiler 85 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698