| 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/constant_propagator.h" | 8 #include "vm/constant_propagator.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 return value()->definition(); | 1933 return value()->definition(); |
| 1934 } | 1934 } |
| 1935 ConstantInstr* null_constant = flow_graph->constant_null(); | 1935 ConstantInstr* null_constant = flow_graph->constant_null(); |
| 1936 instantiator_type_arguments()->BindTo(null_constant); | 1936 instantiator_type_arguments()->BindTo(null_constant); |
| 1937 } | 1937 } |
| 1938 return this; | 1938 return this; |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 | 1941 |
| 1942 Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) { | 1942 Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) { |
| 1943 return (FLAG_enable_type_checks || HasUses()) ? this : NULL; | 1943 return (Isolate::Current()->TypeChecksEnabled() || HasUses()) ? this : NULL; |
| 1944 } | 1944 } |
| 1945 | 1945 |
| 1946 | 1946 |
| 1947 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, | 1947 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, |
| 1948 bool opt) const { | 1948 bool opt) const { |
| 1949 const intptr_t kNumInputs = 0; | 1949 const intptr_t kNumInputs = 0; |
| 1950 const intptr_t kNumTemps = 0; | 1950 const intptr_t kNumTemps = 0; |
| 1951 LocationSummary* locs = new(zone) LocationSummary( | 1951 LocationSummary* locs = new(zone) LocationSummary( |
| 1952 zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 1952 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 1953 return locs; | 1953 return locs; |
| (...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3490 case Token::kTRUNCDIV: return 0; | 3490 case Token::kTRUNCDIV: return 0; |
| 3491 case Token::kMOD: return 1; | 3491 case Token::kMOD: return 1; |
| 3492 default: UNIMPLEMENTED(); return -1; | 3492 default: UNIMPLEMENTED(); return -1; |
| 3493 } | 3493 } |
| 3494 } | 3494 } |
| 3495 | 3495 |
| 3496 | 3496 |
| 3497 #undef __ | 3497 #undef __ |
| 3498 | 3498 |
| 3499 } // namespace dart | 3499 } // namespace dart |
| OLD | NEW |