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

Side by Side Diff: runtime/vm/intermediate_language_arm.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/intermediate_language.cc ('k') | runtime/vm/intermediate_language_arm64.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/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 static void EmitAssertBoolean(Register reg, 372 static void EmitAssertBoolean(Register reg,
373 intptr_t token_pos, 373 intptr_t token_pos,
374 intptr_t deopt_id, 374 intptr_t deopt_id,
375 LocationSummary* locs, 375 LocationSummary* locs,
376 FlowGraphCompiler* compiler) { 376 FlowGraphCompiler* compiler) {
377 // Check that the type of the value is allowed in conditional context. 377 // Check that the type of the value is allowed in conditional context.
378 // Call the runtime if the object is not bool::true or bool::false. 378 // Call the runtime if the object is not bool::true or bool::false.
379 ASSERT(locs->always_calls()); 379 ASSERT(locs->always_calls());
380 Label done; 380 Label done;
381 381
382 if (FLAG_enable_type_checks) { 382 if (Isolate::Current()->TypeChecksEnabled()) {
383 __ CompareObject(reg, Bool::True()); 383 __ CompareObject(reg, Bool::True());
384 __ b(&done, EQ); 384 __ b(&done, EQ);
385 __ CompareObject(reg, Bool::False()); 385 __ CompareObject(reg, Bool::False());
386 __ b(&done, EQ); 386 __ b(&done, EQ);
387 } else { 387 } else {
388 ASSERT(FLAG_enable_asserts); 388 ASSERT(FLAG_enable_asserts);
389 __ CompareObject(reg, Object::null_instance()); 389 __ CompareObject(reg, Object::null_instance());
390 __ b(&done, NE); 390 __ b(&done, NE);
391 } 391 }
392 392
(...skipping 6572 matching lines...) Expand 10 before | Expand all | Expand 10 after
6965 1, 6965 1,
6966 locs()); 6966 locs());
6967 __ Drop(1); 6967 __ Drop(1);
6968 __ Pop(result); 6968 __ Pop(result);
6969 } 6969 }
6970 6970
6971 6971
6972 } // namespace dart 6972 } // namespace dart
6973 6973
6974 #endif // defined TARGET_ARCH_ARM 6974 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698