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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 1365073002: Revert of Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
11 #include "src/globals.h" 11 #include "src/globals.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 // Give alias names to registers for calling conventions. 16 // Give alias names to registers for calling conventions.
17 const Register kReturnRegister0 = {Register::kCode_r0}; 17 const Register kReturnRegister0 = {kRegister_r0_Code};
18 const Register kReturnRegister1 = {Register::kCode_r1}; 18 const Register kReturnRegister1 = {kRegister_r1_Code};
19 const Register kJSFunctionRegister = {Register::kCode_r1}; 19 const Register kJSFunctionRegister = {kRegister_r1_Code};
20 const Register kContextRegister = {Register::kCode_r7}; 20 const Register kContextRegister = {kRegister_r7_Code};
21 const Register kInterpreterAccumulatorRegister = {Register::kCode_r0}; 21 const Register kInterpreterAccumulatorRegister = {kRegister_r0_Code};
22 const Register kInterpreterRegisterFileRegister = {Register::kCode_r4}; 22 const Register kInterpreterRegisterFileRegister = {kRegister_r4_Code};
23 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_r5}; 23 const Register kInterpreterBytecodeOffsetRegister = {kRegister_r5_Code};
24 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_r6}; 24 const Register kInterpreterBytecodeArrayRegister = {kRegister_r6_Code};
25 const Register kInterpreterDispatchTableRegister = {Register::kCode_r8}; 25 const Register kInterpreterDispatchTableRegister = {kRegister_r8_Code};
26 const Register kRuntimeCallFunctionRegister = {Register::kCode_r1}; 26 const Register kRuntimeCallFunctionRegister = {kRegister_r1_Code};
27 const Register kRuntimeCallArgCountRegister = {Register::kCode_r0}; 27 const Register kRuntimeCallArgCountRegister = {kRegister_r0_Code};
28 28
29 // ---------------------------------------------------------------------------- 29 // ----------------------------------------------------------------------------
30 // Static helper functions 30 // Static helper functions
31 31
32 // Generate a MemOperand for loading a field from an object. 32 // Generate a MemOperand for loading a field from an object.
33 inline MemOperand FieldMemOperand(Register object, int offset) { 33 inline MemOperand FieldMemOperand(Register object, int offset) {
34 return MemOperand(object, offset - kHeapObjectTag); 34 return MemOperand(object, offset - kHeapObjectTag);
35 } 35 }
36 36
37 37
38 // Give alias names to registers 38 // Give alias names to registers
39 const Register cp = {Register::kCode_r7}; // JavaScript context pointer. 39 const Register cp = { kRegister_r7_Code }; // JavaScript context pointer.
40 const Register pp = {Register::kCode_r8}; // Constant pool pointer. 40 const Register pp = { kRegister_r8_Code }; // Constant pool pointer.
41 const Register kRootRegister = {Register::kCode_r10}; // Roots array pointer. 41 const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer.
42 42
43 // Flags used for AllocateHeapNumber 43 // Flags used for AllocateHeapNumber
44 enum TaggingMode { 44 enum TaggingMode {
45 // Tag the result. 45 // Tag the result.
46 TAG_RESULT, 46 TAG_RESULT,
47 // Don't tag 47 // Don't tag
48 DONT_TAG_RESULT 48 DONT_TAG_RESULT
49 }; 49 };
50 50
51 51
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1557 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1558 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1558 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1559 #else 1559 #else
1560 #define ACCESS_MASM(masm) masm-> 1560 #define ACCESS_MASM(masm) masm->
1561 #endif 1561 #endif
1562 1562
1563 1563
1564 } } // namespace v8::internal 1564 } } // namespace v8::internal
1565 1565
1566 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1566 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698