OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/assembler_macros.h" | 9 #include "vm/assembler_macros.h" |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 __ ret(); | 1967 __ ret(); |
1968 | 1968 |
1969 __ Bind(&update_ic_data); | 1969 __ Bind(&update_ic_data); |
1970 | 1970 |
1971 // RCX: ICData | 1971 // RCX: ICData |
1972 __ movq(RAX, Address(RSP, 1 * kWordSize)); | 1972 __ movq(RAX, Address(RSP, 1 * kWordSize)); |
1973 __ movq(R13, Address(RSP, 2 * kWordSize)); | 1973 __ movq(R13, Address(RSP, 2 * kWordSize)); |
1974 AssemblerMacros::EnterStubFrame(assembler); | 1974 AssemblerMacros::EnterStubFrame(assembler); |
1975 __ pushq(R13); // arg 0 | 1975 __ pushq(R13); // arg 0 |
1976 __ pushq(RAX); // arg 1 | 1976 __ pushq(RAX); // arg 1 |
1977 __ PushObject(Symbols::EqualOperatorHandle()); // Target's name. | 1977 __ PushObject(Symbols::EqualOperator()); // Target's name. |
1978 __ pushq(RBX); // ICData | 1978 __ pushq(RBX); // ICData |
1979 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); | 1979 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); |
1980 __ Drop(4); | 1980 __ Drop(4); |
1981 __ LeaveFrame(); | 1981 __ LeaveFrame(); |
1982 | 1982 |
1983 __ jmp(&compute_result, Assembler::kNearJump); | 1983 __ jmp(&compute_result, Assembler::kNearJump); |
1984 } | 1984 } |
1985 | 1985 |
1986 // Calls to the runtime to optimize the given function. | 1986 // Calls to the runtime to optimize the given function. |
1987 // RDX: function to be reoptimized. | 1987 // RDX: function to be reoptimized. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 __ cmpq(left, right); | 2069 __ cmpq(left, right); |
2070 __ Bind(&done); | 2070 __ Bind(&done); |
2071 __ popq(right); | 2071 __ popq(right); |
2072 __ popq(left); | 2072 __ popq(left); |
2073 __ ret(); | 2073 __ ret(); |
2074 } | 2074 } |
2075 | 2075 |
2076 } // namespace dart | 2076 } // namespace dart |
2077 | 2077 |
2078 #endif // defined TARGET_ARCH_X64 | 2078 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |