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

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

Issue 571173003: PowerPC specific sub-directories (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated ppc sub-dirs to current V8 code levels Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ic/ppc/handler-compiler-ppc.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 //
3 // Copyright IBM Corp. 2012, 2013. All rights reserved.
danno 2014/09/23 09:06:15 Could you remove IBM copyright from all the new fi
4 //
2 // Use of this source code is governed by a BSD-style license that can be 5 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 6 // found in the LICENSE file.
4 7
5 #include "src/v8.h" 8 #include "src/v8.h"
6 9
7 #if V8_TARGET_ARCH_ARM 10 #if V8_TARGET_ARCH_PPC
8 11
9 #include "src/ic/access-compiler.h" 12 #include "src/ic/access-compiler.h"
10 13
11 namespace v8 { 14 namespace v8 {
12 namespace internal { 15 namespace internal {
13 16
14 #define __ ACCESS_MASM(masm) 17 #define __ ACCESS_MASM(masm)
15 18
16 19
17 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, 20 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
18 Handle<Code> code) { 21 Handle<Code> code) {
19 __ Jump(code, RelocInfo::CODE_TARGET); 22 __ Jump(code, RelocInfo::CODE_TARGET);
20 } 23 }
21 24
22 25
23 Register* PropertyAccessCompiler::load_calling_convention() { 26 Register* PropertyAccessCompiler::load_calling_convention() {
24 // receiver, name, scratch1, scratch2, scratch3, scratch4. 27 // receiver, name, scratch1, scratch2, scratch3, scratch4.
25 Register receiver = LoadDescriptor::ReceiverRegister(); 28 Register receiver = LoadDescriptor::ReceiverRegister();
26 Register name = LoadDescriptor::NameRegister(); 29 Register name = LoadDescriptor::NameRegister();
27 static Register registers[] = {receiver, name, r3, r0, r4, r5}; 30 static Register registers[] = {receiver, name, r6, r3, r7, r8};
28 return registers; 31 return registers;
29 } 32 }
30 33
31 34
32 Register* PropertyAccessCompiler::store_calling_convention() { 35 Register* PropertyAccessCompiler::store_calling_convention() {
33 // receiver, name, scratch1, scratch2, scratch3. 36 // receiver, name, scratch1, scratch2, scratch3.
34 Register receiver = StoreDescriptor::ReceiverRegister(); 37 Register receiver = StoreDescriptor::ReceiverRegister();
35 Register name = StoreDescriptor::NameRegister(); 38 Register name = StoreDescriptor::NameRegister();
36 DCHECK(r3.is(ElementTransitionAndStoreDescriptor::MapRegister())); 39 DCHECK(r6.is(ElementTransitionAndStoreDescriptor::MapRegister()));
37 static Register registers[] = {receiver, name, r3, r4, r5}; 40 static Register registers[] = {receiver, name, r6, r7, r8};
38 return registers; 41 return registers;
39 } 42 }
40 43
41 44
42 #undef __ 45 #undef __
43 } 46 }
44 } // namespace v8::internal 47 } // namespace v8::internal
45 48
46 #endif // V8_TARGET_ARCH_IA32 49 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/ic/ppc/handler-compiler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698