| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 intptr_t deopt_id, | 1355 intptr_t deopt_id, |
| 1356 intptr_t token_pos, | 1356 intptr_t token_pos, |
| 1357 LocationSummary* locs) { | 1357 LocationSummary* locs) { |
| 1358 StubCode* stub_code = isolate()->stub_code(); | 1358 StubCode* stub_code = isolate()->stub_code(); |
| 1359 __ LoadObject(R10, arguments_descriptor, PP); | 1359 __ LoadObject(R10, arguments_descriptor, PP); |
| 1360 // Do not use the code from the function, but let the code be patched so that | 1360 // Do not use the code from the function, but let the code be patched so that |
| 1361 // we can record the outgoing edges to other code. | 1361 // we can record the outgoing edges to other code. |
| 1362 GenerateDartCall(deopt_id, | 1362 GenerateDartCall(deopt_id, |
| 1363 token_pos, | 1363 token_pos, |
| 1364 &stub_code->CallStaticFunctionLabel(), | 1364 &stub_code->CallStaticFunctionLabel(), |
| 1365 RawPcDescriptors::kOptStaticCall, | 1365 RawPcDescriptors::kOther, |
| 1366 locs); | 1366 locs); |
| 1367 AddStaticCallTarget(function); | 1367 AddStaticCallTarget(function); |
| 1368 __ Drop(argument_count, RCX); | 1368 __ Drop(argument_count, RCX); |
| 1369 } | 1369 } |
| 1370 | 1370 |
| 1371 | 1371 |
| 1372 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( | 1372 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
| 1373 Register reg, | 1373 Register reg, |
| 1374 const Object& obj, | 1374 const Object& obj, |
| 1375 bool needs_number_check, | 1375 bool needs_number_check, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 if (is_last_check) { | 1499 if (is_last_check) { |
| 1500 __ j(NOT_EQUAL, deopt); | 1500 __ j(NOT_EQUAL, deopt); |
| 1501 } else { | 1501 } else { |
| 1502 __ j(NOT_EQUAL, &next_test); | 1502 __ j(NOT_EQUAL, &next_test); |
| 1503 } | 1503 } |
| 1504 // Do not use the code from the function, but let the code be patched so | 1504 // Do not use the code from the function, but let the code be patched so |
| 1505 // that we can record the outgoing edges to other code. | 1505 // that we can record the outgoing edges to other code. |
| 1506 GenerateDartCall(deopt_id, | 1506 GenerateDartCall(deopt_id, |
| 1507 token_index, | 1507 token_index, |
| 1508 &stub_code->CallStaticFunctionLabel(), | 1508 &stub_code->CallStaticFunctionLabel(), |
| 1509 RawPcDescriptors::kOptStaticCall, | 1509 RawPcDescriptors::kOther, |
| 1510 locs); | 1510 locs); |
| 1511 const Function& function = *sorted[i].target; | 1511 const Function& function = *sorted[i].target; |
| 1512 AddStaticCallTarget(function); | 1512 AddStaticCallTarget(function); |
| 1513 __ Drop(argument_count, RCX); | 1513 __ Drop(argument_count, RCX); |
| 1514 if (!is_last_check) { | 1514 if (!is_last_check) { |
| 1515 __ jmp(&match_found); | 1515 __ jmp(&match_found); |
| 1516 } | 1516 } |
| 1517 __ Bind(&next_test); | 1517 __ Bind(&next_test); |
| 1518 } | 1518 } |
| 1519 __ Bind(&match_found); | 1519 __ Bind(&match_found); |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1751 __ movups(reg, Address(RSP, 0)); | 1751 __ movups(reg, Address(RSP, 0)); |
| 1752 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1752 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1753 } | 1753 } |
| 1754 | 1754 |
| 1755 | 1755 |
| 1756 #undef __ | 1756 #undef __ |
| 1757 | 1757 |
| 1758 } // namespace dart | 1758 } // namespace dart |
| 1759 | 1759 |
| 1760 #endif // defined TARGET_ARCH_X64 | 1760 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |