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

Side by Side Diff: src/ic/s390/access-compiler-s390.cc

Issue 2389313002: Avoid static initializers in PropertyAccessCompiler (Closed)
Patch Set: Ports Created 4 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/ic/ppc/access-compiler-ppc.cc ('k') | src/ic/x64/access-compiler-x64.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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_S390 7 #if V8_TARGET_ARCH_S390
8 8
9 #include "src/ic/access-compiler.h" 9 #include "src/ic/access-compiler.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 #define __ ACCESS_MASM(masm) 14 #define __ ACCESS_MASM(masm)
15 15
16 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, 16 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
17 Handle<Code> code) { 17 Handle<Code> code) {
18 __ Jump(code, RelocInfo::CODE_TARGET); 18 __ Jump(code, RelocInfo::CODE_TARGET);
19 } 19 }
20 20
21 Register* PropertyAccessCompiler::load_calling_convention() { 21 void PropertyAccessCompiler::InitializePlatformSpecific(
22 // receiver, name, scratch1, scratch2, scratch3. 22 AccessCompilerData* data) {
23 Register receiver = LoadDescriptor::ReceiverRegister(); 23 Register receiver = LoadDescriptor::ReceiverRegister();
24 Register name = LoadDescriptor::NameRegister(); 24 Register name = LoadDescriptor::NameRegister();
25 static Register registers[] = {receiver, name, r5, r2, r6};
26 return registers;
27 }
28 25
29 Register* PropertyAccessCompiler::store_calling_convention() { 26 // Load calling convention.
27 // receiver, name, scratch1, scratch2, scratch3.
28 Register load_registers[] = {receiver, name, r5, r2, r6};
29
30 // Store calling convention.
30 // receiver, name, scratch1, scratch2. 31 // receiver, name, scratch1, scratch2.
31 Register receiver = StoreDescriptor::ReceiverRegister(); 32 Register store_registers[] = {receiver, name, r5, r6};
32 Register name = StoreDescriptor::NameRegister(); 33
33 static Register registers[] = {receiver, name, r5, r6}; 34 data->Initialize(arraysize(load_registers), load_registers,
34 return registers; 35 arraysize(store_registers), store_registers);
35 } 36 }
36 37
37 #undef __ 38 #undef __
38 } // namespace internal 39 } // namespace internal
39 } // namespace v8 40 } // namespace v8
40 41
41 #endif // V8_TARGET_ARCH_S390 42 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ic/ppc/access-compiler-ppc.cc ('k') | src/ic/x64/access-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698