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

Unified Diff: src/runtime/runtime-forin.cc

Issue 2289613002: [turbofan] Remove special JSForInStep and JSForInDone. (Closed)
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 | « src/runtime/runtime.h ('k') | test/cctest/interpreter/bytecode_expectations/ForIn.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-forin.cc
diff --git a/src/runtime/runtime-forin.cc b/src/runtime/runtime-forin.cc
index 0d624e97d65844158dc32eebc52639fd134e1d78..bd37cdcf2f794915b596bba91303e05fb0b2e321 100644
--- a/src/runtime/runtime-forin.cc
+++ b/src/runtime/runtime-forin.cc
@@ -140,17 +140,6 @@ RUNTIME_FUNCTION_RETURN_TRIPLE(Runtime_ForInPrepare) {
return MakeTriple(*cache_type, *cache_array, Smi::FromInt(cache_length));
}
-
-RUNTIME_FUNCTION(Runtime_ForInDone) {
- SealHandleScope scope(isolate);
- DCHECK_EQ(2, args.length());
- CONVERT_SMI_ARG_CHECKED(index, 0);
- CONVERT_SMI_ARG_CHECKED(length, 1);
- DCHECK_LE(0, index);
- DCHECK_LE(index, length);
- return isolate->heap()->ToBoolean(index == length);
-}
-
RUNTIME_FUNCTION(Runtime_ForInHasProperty) {
HandleScope scope(isolate);
DCHECK_EQ(2, args.length());
@@ -188,15 +177,5 @@ RUNTIME_FUNCTION(Runtime_ForInNext) {
HasEnumerableProperty(isolate, receiver, key));
}
-
-RUNTIME_FUNCTION(Runtime_ForInStep) {
- SealHandleScope scope(isolate);
- DCHECK_EQ(1, args.length());
- CONVERT_SMI_ARG_CHECKED(index, 0);
- DCHECK_LE(0, index);
- DCHECK_LT(index, Smi::kMaxValue);
- return Smi::FromInt(index + 1);
-}
-
} // namespace internal
} // namespace v8
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/interpreter/bytecode_expectations/ForIn.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698