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_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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 LocationSummary* locs) { | 406 LocationSummary* locs) { |
407 UNIMPLEMENTED(); | 407 UNIMPLEMENTED(); |
408 } | 408 } |
409 | 409 |
410 | 410 |
411 void FlowGraphCompiler::GenerateDartCall(intptr_t deopt_id, | 411 void FlowGraphCompiler::GenerateDartCall(intptr_t deopt_id, |
412 intptr_t token_pos, | 412 intptr_t token_pos, |
413 const ExternalLabel* label, | 413 const ExternalLabel* label, |
414 PcDescriptors::Kind kind, | 414 PcDescriptors::Kind kind, |
415 LocationSummary* locs) { | 415 LocationSummary* locs) { |
416 UNIMPLEMENTED(); | 416 __ BranchLinkPatchable(label); |
| 417 AddCurrentDescriptor(kind, deopt_id, token_pos); |
| 418 RecordSafepoint(locs); |
| 419 // Marks either the continuation point in unoptimized code or the |
| 420 // deoptimization point in optimized code, after call. |
| 421 if (is_optimizing()) { |
| 422 AddDeoptIndexAtCall(deopt_id, token_pos); |
| 423 } else { |
| 424 // Add deoptimization continuation point after the call and before the |
| 425 // arguments are removed. |
| 426 AddCurrentDescriptor(PcDescriptors::kDeoptAfter, |
| 427 deopt_id, |
| 428 token_pos); |
| 429 } |
417 } | 430 } |
418 | 431 |
419 | 432 |
420 void FlowGraphCompiler::GenerateCallRuntime(intptr_t token_pos, | 433 void FlowGraphCompiler::GenerateCallRuntime(intptr_t token_pos, |
421 intptr_t deopt_id, | 434 intptr_t deopt_id, |
422 const RuntimeEntry& entry, | 435 const RuntimeEntry& entry, |
423 LocationSummary* locs) { | 436 LocationSummary* locs) { |
424 __ Unimplemented("call runtime"); | 437 __ Unimplemented("call runtime"); |
425 } | 438 } |
426 | 439 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 UNIMPLEMENTED(); | 471 UNIMPLEMENTED(); |
459 } | 472 } |
460 | 473 |
461 | 474 |
462 void FlowGraphCompiler::EmitStaticCall(const Function& function, | 475 void FlowGraphCompiler::EmitStaticCall(const Function& function, |
463 const Array& arguments_descriptor, | 476 const Array& arguments_descriptor, |
464 intptr_t argument_count, | 477 intptr_t argument_count, |
465 intptr_t deopt_id, | 478 intptr_t deopt_id, |
466 intptr_t token_pos, | 479 intptr_t token_pos, |
467 LocationSummary* locs) { | 480 LocationSummary* locs) { |
468 UNIMPLEMENTED(); | 481 __ LoadObject(S4, arguments_descriptor); |
| 482 // Do not use the code from the function, but let the code be patched so that |
| 483 // we can record the outgoing edges to other code. |
| 484 GenerateDartCall(deopt_id, |
| 485 token_pos, |
| 486 &StubCode::CallStaticFunctionLabel(), |
| 487 PcDescriptors::kFuncCall, |
| 488 locs); |
| 489 AddStaticCallTarget(function); |
| 490 __ Drop(argument_count); |
469 } | 491 } |
470 | 492 |
471 | 493 |
472 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, | 494 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, |
473 const Object& obj, | 495 const Object& obj, |
474 bool needs_number_check) { | 496 bool needs_number_check) { |
475 UNIMPLEMENTED(); | 497 UNIMPLEMENTED(); |
476 } | 498 } |
477 | 499 |
478 | 500 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 665 |
644 | 666 |
645 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 667 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { |
646 UNIMPLEMENTED(); | 668 UNIMPLEMENTED(); |
647 } | 669 } |
648 | 670 |
649 | 671 |
650 } // namespace dart | 672 } // namespace dart |
651 | 673 |
652 #endif // defined TARGET_ARCH_MIPS | 674 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |