| 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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| 11 #include "vm/flow_graph.h" | 11 #include "vm/flow_graph.h" |
| 12 #include "vm/flow_graph_compiler.h" | 12 #include "vm/flow_graph_compiler.h" |
| 13 #include "vm/flow_graph_range_analysis.h" | 13 #include "vm/flow_graph_range_analysis.h" |
| 14 #include "vm/locations.h" | 14 #include "vm/locations.h" |
| 15 #include "vm/object_store.h" | 15 #include "vm/object_store.h" |
| 16 #include "vm/parser.h" | 16 #include "vm/parser.h" |
| 17 #include "vm/stack_frame.h" | 17 #include "vm/stack_frame.h" |
| 18 #include "vm/stub_code.h" | 18 #include "vm/stub_code.h" |
| 19 #include "vm/symbols.h" | 19 #include "vm/symbols.h" |
| 20 | 20 |
| 21 #define __ compiler->assembler()-> | 21 #define __ compiler->assembler()-> |
| 22 | 22 |
| 23 namespace dart { | 23 namespace dart { |
| 24 | 24 |
| 25 DECLARE_FLAG(bool, emit_edge_counters); | 25 DECLARE_FLAG(bool, emit_edge_counters); |
| 26 DECLARE_FLAG(bool, enable_asserts); | 26 DECLARE_FLAG(bool, enable_asserts); |
| 27 DECLARE_FLAG(bool, enable_type_checks); | 27 DECLARE_FLAG(bool, enable_type_checks); |
| 28 DECLARE_FLAG(int, optimization_counter_threshold); | 28 DECLARE_FLAG(int, optimization_counter_threshold); |
| 29 DECLARE_FLAG(bool, propagate_ic_data); | |
| 30 DECLARE_FLAG(bool, use_osr); | 29 DECLARE_FLAG(bool, use_osr); |
| 31 DECLARE_FLAG(bool, throw_on_javascript_int_overflow); | 30 DECLARE_FLAG(bool, throw_on_javascript_int_overflow); |
| 32 | 31 |
| 33 // Generic summary for call instructions that have all arguments pushed | 32 // Generic summary for call instructions that have all arguments pushed |
| 34 // on the stack and return the result in a fixed register EAX. | 33 // on the stack and return the result in a fixed register EAX. |
| 35 LocationSummary* Instruction::MakeCallSummary(Zone* zone) { | 34 LocationSummary* Instruction::MakeCallSummary(Zone* zone) { |
| 36 const intptr_t kNumInputs = 0; | 35 const intptr_t kNumInputs = 0; |
| 37 const intptr_t kNumTemps = 0; | 36 const intptr_t kNumTemps = 0; |
| 38 LocationSummary* result = new(zone) LocationSummary( | 37 LocationSummary* result = new(zone) LocationSummary( |
| 39 zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 38 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| (...skipping 6844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6884 __ Drop(1); | 6883 __ Drop(1); |
| 6885 __ popl(result); | 6884 __ popl(result); |
| 6886 } | 6885 } |
| 6887 | 6886 |
| 6888 | 6887 |
| 6889 } // namespace dart | 6888 } // namespace dart |
| 6890 | 6889 |
| 6891 #undef __ | 6890 #undef __ |
| 6892 | 6891 |
| 6893 #endif // defined TARGET_ARCH_IA32 | 6892 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |