| 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_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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| 11 #include "vm/dart_entry.h" | 11 #include "vm/dart_entry.h" |
| 12 #include "vm/flow_graph.h" | 12 #include "vm/flow_graph.h" |
| 13 #include "vm/flow_graph_compiler.h" | 13 #include "vm/flow_graph_compiler.h" |
| 14 #include "vm/flow_graph_range_analysis.h" | 14 #include "vm/flow_graph_range_analysis.h" |
| 15 #include "vm/locations.h" | 15 #include "vm/locations.h" |
| 16 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
| 17 #include "vm/parser.h" | 17 #include "vm/parser.h" |
| 18 #include "vm/stack_frame.h" | 18 #include "vm/stack_frame.h" |
| 19 #include "vm/stub_code.h" | 19 #include "vm/stub_code.h" |
| 20 #include "vm/symbols.h" | 20 #include "vm/symbols.h" |
| 21 | 21 |
| 22 #define __ compiler->assembler()-> | 22 #define __ compiler->assembler()-> |
| 23 | 23 |
| 24 namespace dart { | 24 namespace dart { |
| 25 | 25 |
| 26 DECLARE_FLAG(bool, emit_edge_counters); | |
| 27 DECLARE_FLAG(int, optimization_counter_threshold); | |
| 28 DECLARE_FLAG(bool, use_osr); | |
| 29 | |
| 30 // Generic summary for call instructions that have all arguments pushed | 26 // Generic summary for call instructions that have all arguments pushed |
| 31 // on the stack and return the result in a fixed register EAX. | 27 // on the stack and return the result in a fixed register EAX. |
| 32 LocationSummary* Instruction::MakeCallSummary(Zone* zone) { | 28 LocationSummary* Instruction::MakeCallSummary(Zone* zone) { |
| 33 const intptr_t kNumInputs = 0; | 29 const intptr_t kNumInputs = 0; |
| 34 const intptr_t kNumTemps = 0; | 30 const intptr_t kNumTemps = 0; |
| 35 LocationSummary* result = new(zone) LocationSummary( | 31 LocationSummary* result = new(zone) LocationSummary( |
| 36 zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 32 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 37 result->set_out(0, Location::RegisterLocation(EAX)); | 33 result->set_out(0, Location::RegisterLocation(EAX)); |
| 38 return result; | 34 return result; |
| 39 } | 35 } |
| (...skipping 6796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6836 __ Drop(1); | 6832 __ Drop(1); |
| 6837 __ popl(result); | 6833 __ popl(result); |
| 6838 } | 6834 } |
| 6839 | 6835 |
| 6840 | 6836 |
| 6841 } // namespace dart | 6837 } // namespace dart |
| 6842 | 6838 |
| 6843 #undef __ | 6839 #undef __ |
| 6844 | 6840 |
| 6845 #endif // defined TARGET_ARCH_IA32 | 6841 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |