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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.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
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 GenerateDartCall(deopt_id, 1455 GenerateDartCall(deopt_id,
1456 token_pos, 1456 token_pos,
1457 &StubCode::CallStaticFunctionLabel(), 1457 &StubCode::CallStaticFunctionLabel(),
1458 PcDescriptors::kOptStaticCall, 1458 PcDescriptors::kOptStaticCall,
1459 locs); 1459 locs);
1460 AddStaticCallTarget(function); 1460 AddStaticCallTarget(function);
1461 __ Drop(argument_count); 1461 __ Drop(argument_count);
1462 } 1462 }
1463 1463
1464 1464
1465 void FlowGraphCompiler::EmitUnoptimizedStaticCall(
1466 const Function& target_function,
1467 const Array& arguments_descriptor,
1468 intptr_t argument_count,
1469 intptr_t deopt_id,
1470 intptr_t token_pos,
1471 LocationSummary* locs) {
1472 const ICData& ic_data = ICData::ZoneHandle(
1473 ICData::New(parsed_function().function(), // Caller function.
1474 String::Handle(target_function.name()),
1475 arguments_descriptor,
1476 deopt_id,
1477 0)); // No arguments checked.
1478 ic_data.AddTarget(target_function);
1479 __ LoadObject(S5, ic_data);
1480 GenerateDartCall(deopt_id,
1481 token_pos,
1482 &StubCode::UnoptimizedStaticCallLabel(),
1483 PcDescriptors::kUnoptStaticCall,
1484 locs);
1485 __ Drop(argument_count);
1486 }
1487
1488
1489 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, 1465 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg,
1490 const Object& obj, 1466 const Object& obj,
1491 bool needs_number_check, 1467 bool needs_number_check,
1492 intptr_t token_pos) { 1468 intptr_t token_pos) {
1493 __ TraceSimMsg("EqualityRegConstCompare"); 1469 __ TraceSimMsg("EqualityRegConstCompare");
1494 if (needs_number_check && 1470 if (needs_number_check &&
1495 (obj.IsMint() || obj.IsDouble() || obj.IsBigint())) { 1471 (obj.IsMint() || obj.IsDouble() || obj.IsBigint())) {
1496 __ addiu(SP, SP, Immediate(-2 * kWordSize)); 1472 __ addiu(SP, SP, Immediate(-2 * kWordSize));
1497 __ sw(reg, Address(SP, 1 * kWordSize)); 1473 __ sw(reg, Address(SP, 1 * kWordSize));
1498 __ LoadObject(TMP1, obj); 1474 __ LoadObject(TMP1, obj);
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 __ AddImmediate(SP, kDoubleSize); 1999 __ AddImmediate(SP, kDoubleSize);
2024 } 2000 }
2025 2001
2026 2002
2027 #undef __ 2003 #undef __
2028 2004
2029 2005
2030 } // namespace dart 2006 } // namespace dart
2031 2007
2032 #endif // defined TARGET_ARCH_MIPS 2008 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698