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

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
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 (FLAG_enable_type_checks ||
1944 Isolate::Current()->checked_mode() ||
1945 HasUses()) ? this : NULL;
1944 } 1946 }
1945 1947
1946 1948
1947 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, 1949 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone,
1948 bool opt) const { 1950 bool opt) const {
1949 const intptr_t kNumInputs = 0; 1951 const intptr_t kNumInputs = 0;
1950 const intptr_t kNumTemps = 0; 1952 const intptr_t kNumTemps = 0;
1951 LocationSummary* locs = new(zone) LocationSummary( 1953 LocationSummary* locs = new(zone) LocationSummary(
1952 zone, kNumInputs, kNumTemps, LocationSummary::kCall); 1954 zone, kNumInputs, kNumTemps, LocationSummary::kCall);
1953 return locs; 1955 return locs;
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 case Token::kTRUNCDIV: return 0; 3492 case Token::kTRUNCDIV: return 0;
3491 case Token::kMOD: return 1; 3493 case Token::kMOD: return 1;
3492 default: UNIMPLEMENTED(); return -1; 3494 default: UNIMPLEMENTED(); return -1;
3493 } 3495 }
3494 } 3496 }
3495 3497
3496 3498
3497 #undef __ 3499 #undef __
3498 3500
3499 } // namespace dart 3501 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698