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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.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_arm.cc ('k') | runtime/vm/flow_graph_compiler_mips.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_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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698