| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 GenerateDartCall(deopt_id, | 1402 GenerateDartCall(deopt_id, |
| 1403 token_pos, | 1403 token_pos, |
| 1404 &StubCode::CallStaticFunctionLabel(), | 1404 &StubCode::CallStaticFunctionLabel(), |
| 1405 PcDescriptors::kOptStaticCall, | 1405 PcDescriptors::kOptStaticCall, |
| 1406 locs); | 1406 locs); |
| 1407 AddStaticCallTarget(function); | 1407 AddStaticCallTarget(function); |
| 1408 __ Drop(argument_count); | 1408 __ Drop(argument_count); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 | 1411 |
| 1412 void FlowGraphCompiler::EmitUnoptimizedStaticCall( | |
| 1413 const Function& target_function, | |
| 1414 const Array& arguments_descriptor, | |
| 1415 intptr_t argument_count, | |
| 1416 intptr_t deopt_id, | |
| 1417 intptr_t token_pos, | |
| 1418 LocationSummary* locs) { | |
| 1419 const ICData& ic_data = ICData::ZoneHandle( | |
| 1420 ICData::New(parsed_function().function(), // Caller function. | |
| 1421 String::Handle(target_function.name()), | |
| 1422 arguments_descriptor, | |
| 1423 deopt_id, | |
| 1424 0)); // No arguments checked. | |
| 1425 ic_data.AddTarget(target_function); | |
| 1426 __ LoadObject(ECX, ic_data); | |
| 1427 GenerateDartCall(deopt_id, | |
| 1428 token_pos, | |
| 1429 &StubCode::UnoptimizedStaticCallLabel(), | |
| 1430 PcDescriptors::kUnoptStaticCall, | |
| 1431 locs); | |
| 1432 __ Drop(argument_count); | |
| 1433 } | |
| 1434 | |
| 1435 | |
| 1436 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, | 1412 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, |
| 1437 const Object& obj, | 1413 const Object& obj, |
| 1438 bool needs_number_check, | 1414 bool needs_number_check, |
| 1439 intptr_t token_pos) { | 1415 intptr_t token_pos) { |
| 1440 if (needs_number_check) { | 1416 if (needs_number_check) { |
| 1441 if (!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint()) { | 1417 if (!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint()) { |
| 1442 needs_number_check = false; | 1418 needs_number_check = false; |
| 1443 } | 1419 } |
| 1444 } | 1420 } |
| 1445 | 1421 |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 __ movups(reg, Address(ESP, 0)); | 1907 __ movups(reg, Address(ESP, 0)); |
| 1932 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1908 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1933 } | 1909 } |
| 1934 | 1910 |
| 1935 | 1911 |
| 1936 #undef __ | 1912 #undef __ |
| 1937 | 1913 |
| 1938 } // namespace dart | 1914 } // namespace dart |
| 1939 | 1915 |
| 1940 #endif // defined TARGET_ARCH_IA32 | 1916 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |