|
|
Expands the use of Immediate and Operand wrappers.
Since Register is an enum type, it is automatically
coerced to integer types when passed as a parameter to
functions expecting an integer argument. This change
expands the use of Immediate and Operand wrappers
for Assembler instructions and macros to avoid this
automatic coercion.
I've also added dummy constructors to Address and
FieldAddress classes to address the same problem,
but in a way that does not increase verbosity,
since Address and FieldAddress are much more
prevalent in the code.
A cleaner solution would involve making Register
no longer coercable to integer types, but this
would likely require many changes to the Assemblers.
R=regis@google.com
Committed: https://code.google.com/p/dart/source/detail?r=40905
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+566 lines, -460 lines) |
Patch |
 |
M |
runtime/vm/assembler_arm.h
|
View
|
1
2
3
4
|
8 chunks |
+30 lines, -12 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_arm.cc
|
View
|
1
2
3
4
|
5 chunks |
+31 lines, -21 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_arm64.h
|
View
|
|
13 chunks |
+59 lines, -21 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_arm64.cc
|
View
|
|
18 chunks |
+34 lines, -34 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_arm64_test.cc
|
View
|
|
68 chunks |
+164 lines, -162 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_arm_test.cc
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_ia32.h
|
View
|
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_mips.h
|
View
|
|
11 chunks |
+41 lines, -38 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/assembler_x64.h
|
View
|
|
5 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/flow_graph_compiler_arm64.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/flow_graph_compiler_mips.cc
|
View
|
|
13 chunks |
+17 lines, -20 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/intermediate_language_arm.cc
|
View
|
|
12 chunks |
+25 lines, -25 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/intermediate_language_arm64.cc
|
View
|
|
13 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/intermediate_language_mips.cc
|
View
|
|
25 chunks |
+34 lines, -32 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/intrinsifier_arm64.cc
|
View
|
|
25 chunks |
+25 lines, -25 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/intrinsifier_mips.cc
|
View
|
|
17 chunks |
+24 lines, -20 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object_arm64_test.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/stub_code_arm64.cc
|
View
|
|
9 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/stub_code_mips.cc
|
View
|
|
13 chunks |
+16 lines, -14 lines |
0 comments
|
Download
|
Total messages: 12 (2 generated)
|