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

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

Issue 1380863004: Revert of Reland: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/assembler.cc ('k') | src/compiler/code-generator.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/assembler.h" 5 #include "src/assembler.h"
6 #include "src/macro-assembler.h" 6 #include "src/macro-assembler.h"
7 7
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 9
10 #include "src/zone.h" 10 #include "src/zone.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 namespace compiler { 14 namespace compiler {
15 15
16 namespace { 16 namespace {
17 LinkageLocation regloc(Register reg) { 17 LinkageLocation regloc(Register reg) {
18 return LinkageLocation::ForRegister(reg.code()); 18 return LinkageLocation::ForRegister(Register::ToAllocationIndex(reg));
19 } 19 }
20 20
21 21
22 // Platform-specific configuration for C calling convention. 22 // Platform-specific configuration for C calling convention.
23 #if V8_TARGET_ARCH_IA32 23 #if V8_TARGET_ARCH_IA32
24 // =========================================================================== 24 // ===========================================================================
25 // == ia32 =================================================================== 25 // == ia32 ===================================================================
26 // =========================================================================== 26 // ===========================================================================
27 #define CALLEE_SAVE_REGISTERS esi.bit() | edi.bit() | ebx.bit() 27 #define CALLEE_SAVE_REGISTERS esi.bit() | edi.bit() | ebx.bit()
28 28
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 Operator::kNoProperties, // properties 220 Operator::kNoProperties, // properties
221 kCalleeSaveRegisters, // callee-saved registers 221 kCalleeSaveRegisters, // callee-saved registers
222 kCalleeSaveFPRegisters, // callee-saved fp regs 222 kCalleeSaveFPRegisters, // callee-saved fp regs
223 CallDescriptor::kNoFlags, // flags 223 CallDescriptor::kNoFlags, // flags
224 "c-call"); 224 "c-call");
225 } 225 }
226 226
227 } // namespace compiler 227 } // namespace compiler
228 } // namespace internal 228 } // namespace internal
229 } // namespace v8 229 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698