From 1af07362aa610311aeb4f7419fd6e558c56601ed Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Thu, 6 Jul 2017 06:48:08 +0200 Subject: [PATCH] [cleanup] Remove obsolete %SetClear and %MapClear. R=jgruber@chromium.org Bug: v8:5717 Change-Id: I715aa8e807d479056044f364410bbce62d23c593 Reviewed-on: https://chromium-review.googlesource.com/560996 Reviewed-by: Sathya Gunasekaran Commit-Queue: Benedikt Meurer Cr-Commit-Position: refs/heads/master@{#46422} --- src/runtime/runtime-collections.cc | 20 -------------------- src/runtime/runtime.h | 2 -- 2 files changed, 22 deletions(-) diff --git a/src/runtime/runtime-collections.cc b/src/runtime/runtime-collections.cc index ec1e3f0786..9bdad8c07c 100644 --- a/src/runtime/runtime-collections.cc +++ b/src/runtime/runtime-collections.cc @@ -75,16 +75,6 @@ RUNTIME_FUNCTION(Runtime_SetShrink) { return isolate->heap()->undefined_value(); } -// TODO(gsathya): Remove this when we delete crankshaft. -RUNTIME_FUNCTION(Runtime_SetClear) { - HandleScope scope(isolate); - DCHECK_EQ(1, args.length()); - CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); - JSSet::Clear(holder); - return isolate->heap()->undefined_value(); -} - - RUNTIME_FUNCTION(Runtime_SetIteratorInitialize) { HandleScope scope(isolate); DCHECK_EQ(3, args.length()); @@ -159,16 +149,6 @@ RUNTIME_FUNCTION(Runtime_MapShrink) { return isolate->heap()->undefined_value(); } -// TODO(gsathya): Remove this when we delete crankshaft. -RUNTIME_FUNCTION(Runtime_MapClear) { - HandleScope scope(isolate); - DCHECK_EQ(1, args.length()); - CONVERT_ARG_HANDLE_CHECKED(JSMap, holder, 0); - JSMap::Clear(holder); - return isolate->heap()->undefined_value(); -} - - RUNTIME_FUNCTION(Runtime_MapGrow) { HandleScope scope(isolate); DCHECK_EQ(1, args.length()); diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 40e04dcc0e..491db83d3b 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -97,14 +97,12 @@ namespace internal { F(SetInitialize, 1, 1) \ F(SetGrow, 1, 1) \ F(SetShrink, 1, 1) \ - F(SetClear, 1, 1) \ F(SetIteratorInitialize, 3, 1) \ F(SetIteratorClone, 1, 1) \ F(SetIteratorNext, 2, 1) \ F(SetIteratorDetails, 1, 1) \ F(MapInitialize, 1, 1) \ F(MapShrink, 1, 1) \ - F(MapClear, 1, 1) \ F(MapGrow, 1, 1) \ F(MapIteratorInitialize, 3, 1) \ F(MapIteratorClone, 1, 1) \