| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 | 613 |
| 614 | 614 |
| 615 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { | 615 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { |
| 616 LocationSummary* locs = instr->locs(); | 616 LocationSummary* locs = instr->locs(); |
| 617 ASSERT(locs != NULL); | 617 ASSERT(locs != NULL); |
| 618 | 618 |
| 619 frame_register_allocator()->AllocateRegisters(instr); | 619 frame_register_allocator()->AllocateRegisters(instr); |
| 620 | 620 |
| 621 // TODO(vegorov): adjust assertion when we start removing comparison from the | 621 // TODO(vegorov): adjust assertion when we start removing comparison from the |
| 622 // graph when it is merged with a branch. | 622 // graph when it is merged with a branch. |
| 623 ASSERT(locs->is_call() || | 623 ASSERT(locs->always_calls() || |
| 624 (locs->input_count() == instr->InputCount())); | 624 (locs->input_count() == instr->InputCount())); |
| 625 } | 625 } |
| 626 | 626 |
| 627 | 627 |
| 628 void FlowGraphCompiler::CopyParameters() { | 628 void FlowGraphCompiler::CopyParameters() { |
| 629 __ Comment("Copy parameters"); | 629 __ Comment("Copy parameters"); |
| 630 const Function& function = parsed_function().function(); | 630 const Function& function = parsed_function().function(); |
| 631 const bool is_native_instance_closure = | 631 const bool is_native_instance_closure = |
| 632 function.is_native() && function.IsImplicitInstanceClosureFunction(); | 632 function.is_native() && function.IsImplicitInstanceClosureFunction(); |
| 633 LocalScope* scope = parsed_function().node_sequence()->scope(); | 633 LocalScope* scope = parsed_function().node_sequence()->scope(); |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 __ popl(ECX); | 1228 __ popl(ECX); |
| 1229 __ popl(EAX); | 1229 __ popl(EAX); |
| 1230 } | 1230 } |
| 1231 | 1231 |
| 1232 | 1232 |
| 1233 #undef __ | 1233 #undef __ |
| 1234 | 1234 |
| 1235 } // namespace dart | 1235 } // namespace dart |
| 1236 | 1236 |
| 1237 #endif // defined TARGET_ARCH_IA32 | 1237 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |