Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 883263004: Allows turning on checked mode on a per-isolate basis (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698