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

Unified Diff: runtime/vm/intermediate_language_ia32.cc

Issue 772513003: Revert r42145 to fix co19 tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_ia32.cc
===================================================================
--- runtime/vm/intermediate_language_ia32.cc (revision 42146)
+++ runtime/vm/intermediate_language_ia32.cc (working copy)
@@ -23,8 +23,6 @@
namespace dart {
DECLARE_FLAG(bool, emit_edge_counters);
-DECLARE_FLAG(bool, enable_asserts);
-DECLARE_FLAG(bool, enable_type_checks);
DECLARE_FLAG(int, optimization_counter_threshold);
DECLARE_FLAG(bool, propagate_ic_data);
DECLARE_FLAG(bool, use_osr);
@@ -250,18 +248,11 @@
// Call the runtime if the object is not bool::true or bool::false.
ASSERT(locs->always_calls());
Label done;
+ __ CompareObject(reg, Bool::True());
+ __ j(EQUAL, &done, Assembler::kNearJump);
+ __ CompareObject(reg, Bool::False());
+ __ j(EQUAL, &done, Assembler::kNearJump);
- if (FLAG_enable_type_checks) {
- __ CompareObject(reg, Bool::True());
- __ j(EQUAL, &done, Assembler::kNearJump);
- __ CompareObject(reg, Bool::False());
- __ j(EQUAL, &done, Assembler::kNearJump);
- } else {
- ASSERT(FLAG_enable_asserts);
- __ CompareObject(reg, Object::null_instance());
- __ j(NOT_EQUAL, &done, Assembler::kNearJump);
- }
-
__ pushl(reg); // Push the source object.
compiler->GenerateRuntimeCall(token_pos,
deopt_id,
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698