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

Side by Side Diff: runtime/vm/intermediate_language_arm64.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_arm.cc ('k') | runtime/vm/intermediate_language_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 static void EmitAssertBoolean(Register reg, 359 static void EmitAssertBoolean(Register reg,
360 intptr_t token_pos, 360 intptr_t token_pos,
361 intptr_t deopt_id, 361 intptr_t deopt_id,
362 LocationSummary* locs, 362 LocationSummary* locs,
363 FlowGraphCompiler* compiler) { 363 FlowGraphCompiler* compiler) {
364 // Check that the type of the value is allowed in conditional context. 364 // Check that the type of the value is allowed in conditional context.
365 // Call the runtime if the object is not bool::true or bool::false. 365 // Call the runtime if the object is not bool::true or bool::false.
366 ASSERT(locs->always_calls()); 366 ASSERT(locs->always_calls());
367 Label done; 367 Label done;
368 368
369 if (FLAG_enable_type_checks) { 369 if (Isolate::Current()->TypeChecksEnabled()) {
370 __ CompareObject(reg, Bool::True(), PP); 370 __ CompareObject(reg, Bool::True(), PP);
371 __ b(&done, EQ); 371 __ b(&done, EQ);
372 __ CompareObject(reg, Bool::False(), PP); 372 __ CompareObject(reg, Bool::False(), PP);
373 __ b(&done, EQ); 373 __ b(&done, EQ);
374 } else { 374 } else {
375 ASSERT(FLAG_enable_asserts); 375 ASSERT(FLAG_enable_asserts);
376 __ CompareObject(reg, Object::null_instance(), PP); 376 __ CompareObject(reg, Object::null_instance(), PP);
377 __ b(&done, NE); 377 __ b(&done, NE);
378 } 378 }
379 379
(...skipping 5257 matching lines...) Expand 10 before | Expand all | Expand 10 after
5637 1, 5637 1,
5638 locs()); 5638 locs());
5639 __ Drop(1); 5639 __ Drop(1);
5640 __ Pop(result); 5640 __ Pop(result);
5641 } 5641 }
5642 5642
5643 5643
5644 } // namespace dart 5644 } // namespace dart
5645 5645
5646 #endif // defined TARGET_ARCH_ARM64 5646 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698