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

Unified Diff: runtime/vm/precompiler.cc

Issue 2237113003: Don't mark closurized natives as natives. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/precompiler.cc
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
index 657af552de406c2455dacf5028ad9892f11afa11..dcf3519c1d8c11322b00e788a3a64fdcbe6c7b7b 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -1932,11 +1932,9 @@ void Precompiler::SwitchICCalls() {
if (entry_.IsICData()) {
ic_ ^= entry_.raw();
- // Only single check ICs are SwitchableCalls that use the ICLookup
- // stubs. Some operators like + have ICData that check the types of
- // arguments in addition to the receiver and use special stubs
- // with fast paths for Smi operations.
- if (ic_.NumArgsTested() != 1) continue;
+ // SwitchableCalls use single-check ICs. No other kind of IC call is
+ // generated in precompilation mode.
+ ASSERT(ic_.NumArgsTested() == 1);
for (intptr_t j = 0; j < ic_.NumberOfChecks(); j++) {
entry_ = ic_.GetTargetOrCodeAt(j);
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698