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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 19774007: Collect both arguments for math's min/max static functions. Later that information will be used to … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 GenerateDartCall(deopt_id, 1399 GenerateDartCall(deopt_id,
1400 token_pos, 1400 token_pos,
1401 &StubCode::CallStaticFunctionLabel(), 1401 &StubCode::CallStaticFunctionLabel(),
1402 PcDescriptors::kOptStaticCall, 1402 PcDescriptors::kOptStaticCall,
1403 locs); 1403 locs);
1404 AddStaticCallTarget(function); 1404 AddStaticCallTarget(function);
1405 __ Drop(argument_count); 1405 __ Drop(argument_count);
1406 } 1406 }
1407 1407
1408 1408
1409 void FlowGraphCompiler::EmitUnoptimizedStaticCall(
1410 const Function& target_function,
1411 const Array& arguments_descriptor,
1412 intptr_t argument_count,
1413 intptr_t deopt_id,
1414 intptr_t token_pos,
1415 LocationSummary* locs) {
1416 const ICData& ic_data = ICData::ZoneHandle(
1417 ICData::New(parsed_function().function(), // Caller function.
1418 String::Handle(target_function.name()),
1419 arguments_descriptor,
1420 deopt_id,
1421 0)); // No arguments checked.
1422 ic_data.AddTarget(target_function);
1423 __ LoadObject(R5, ic_data);
1424 GenerateDartCall(deopt_id,
1425 token_pos,
1426 &StubCode::UnoptimizedStaticCallLabel(),
1427 PcDescriptors::kUnoptStaticCall,
1428 locs);
1429 __ Drop(argument_count);
1430 }
1431
1432
1433 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, 1409 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg,
1434 const Object& obj, 1410 const Object& obj,
1435 bool needs_number_check, 1411 bool needs_number_check,
1436 intptr_t token_pos) { 1412 intptr_t token_pos) {
1437 if (needs_number_check && 1413 if (needs_number_check &&
1438 (obj.IsMint() || obj.IsDouble() || obj.IsBigint())) { 1414 (obj.IsMint() || obj.IsDouble() || obj.IsBigint())) {
1439 __ Push(reg); 1415 __ Push(reg);
1440 __ PushObject(obj); 1416 __ PushObject(obj);
1441 if (is_optimizing()) { 1417 if (is_optimizing()) {
1442 __ BranchLink(&StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1418 __ BranchLink(&StubCode::OptimizedIdenticalWithNumberCheckLabel());
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 DRegister dreg = EvenDRegisterOf(reg); 1876 DRegister dreg = EvenDRegisterOf(reg);
1901 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1877 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1902 } 1878 }
1903 1879
1904 1880
1905 #undef __ 1881 #undef __
1906 1882
1907 } // namespace dart 1883 } // namespace dart
1908 1884
1909 #endif // defined TARGET_ARCH_ARM 1885 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698