| 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_X64. | 5 #include "vm/globals.h"  // Needed here to get TARGET_ARCH_X64. | 
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) | 
| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 618 | 618 | 
| 619 | 619 | 
| 620 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { | 620 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { | 
| 621   LocationSummary* locs = instr->locs(); | 621   LocationSummary* locs = instr->locs(); | 
| 622   ASSERT(locs != NULL); | 622   ASSERT(locs != NULL); | 
| 623 | 623 | 
| 624   frame_register_allocator()->AllocateRegisters(instr); | 624   frame_register_allocator()->AllocateRegisters(instr); | 
| 625 | 625 | 
| 626   // TODO(vegorov): adjust assertion when we start removing comparison from the | 626   // TODO(vegorov): adjust assertion when we start removing comparison from the | 
| 627   // graph when it is merged with a branch. | 627   // graph when it is merged with a branch. | 
| 628   ASSERT(locs->is_call() || | 628   ASSERT(locs->always_calls() || | 
| 629          (locs->input_count() == instr->InputCount())); | 629          (locs->input_count() == instr->InputCount())); | 
| 630 } | 630 } | 
| 631 | 631 | 
| 632 | 632 | 
| 633 void FlowGraphCompiler::CopyParameters() { | 633 void FlowGraphCompiler::CopyParameters() { | 
| 634   __ Comment("Copy parameters"); | 634   __ Comment("Copy parameters"); | 
| 635   const Function& function = parsed_function().function(); | 635   const Function& function = parsed_function().function(); | 
| 636   const bool is_native_instance_closure = | 636   const bool is_native_instance_closure = | 
| 637       function.is_native() && function.IsImplicitInstanceClosureFunction(); | 637       function.is_native() && function.IsImplicitInstanceClosureFunction(); | 
| 638   LocalScope* scope = parsed_function().node_sequence()->scope(); | 638   LocalScope* scope = parsed_function().node_sequence()->scope(); | 
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1214 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 1214 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 
| 1215   __ Exchange(mem1, mem2); | 1215   __ Exchange(mem1, mem2); | 
| 1216 } | 1216 } | 
| 1217 | 1217 | 
| 1218 | 1218 | 
| 1219 #undef __ | 1219 #undef __ | 
| 1220 | 1220 | 
| 1221 }  // namespace dart | 1221 }  // namespace dart | 
| 1222 | 1222 | 
| 1223 #endif  // defined TARGET_ARCH_X64 | 1223 #endif  // defined TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|