[MIPS] Remove obsolete MacroAssembler::FlushICache.
authormstarzinger <mstarzinger@chromium.org>
Fri, 11 Sep 2015 16:00:44 +0000 (09:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 11 Sep 2015 16:01:05 +0000 (16:01 +0000)
R=mlippautz@chromium.org

Review URL: https://codereview.chromium.org/1334273002

Cr-Commit-Position: refs/heads/master@{#30701}

src/assembler.cc
src/assembler.h
src/mips/macro-assembler-mips.cc
src/mips/macro-assembler-mips.h
src/mips64/macro-assembler-mips64.cc
src/mips64/macro-assembler-mips64.h
src/snapshot/serialize.cc

index e2e10248946577fba6c0663d0b9773e967e5b70f..49b300eb22710782ab4575959ed203c0d6b4b973 100644 (file)
@@ -1048,12 +1048,6 @@ ExternalReference ExternalReference::
 }
 
 
-ExternalReference ExternalReference::flush_icache_function(Isolate* isolate) {
-  return ExternalReference(
-      Redirect(isolate, FUNCTION_ADDR(Assembler::FlushICacheWithoutIsolate)));
-}
-
-
 ExternalReference ExternalReference::delete_handle_scope_extensions(
     Isolate* isolate) {
   return ExternalReference(Redirect(
index 9bfda36499ab5ecd969fab4bf23049297ff143ac..10e9bb4e02ae94ff1dca623f52cd0fc574792fa4 100644 (file)
@@ -896,7 +896,6 @@ class ExternalReference BASE_EMBEDDED {
       Isolate* isolate);
   static ExternalReference store_buffer_overflow_function(
       Isolate* isolate);
-  static ExternalReference flush_icache_function(Isolate* isolate);
   static ExternalReference delete_handle_scope_extensions(Isolate* isolate);
 
   static ExternalReference get_date_field_function(Isolate* isolate);
index 961e9d595bd1c5b0165ae7624ec5995e8e0cd737..8e3bc03d37e40ef2e6cad9e756e9950cc4a20dc7 100644 (file)
@@ -1220,20 +1220,6 @@ void MacroAssembler::MultiPopReversedFPU(RegList regs) {
 }
 
 
-void MacroAssembler::FlushICache(Register address, unsigned instructions) {
-  RegList saved_regs = kJSCallerSaved | ra.bit();
-  MultiPush(saved_regs);
-  AllowExternalCallThatCantCauseGC scope(this);
-
-  Move(a0, address);
-  PrepareCallCFunction(2, t8);
-
-  li(a1, instructions * kInstrSize);
-  CallCFunction(ExternalReference::flush_icache_function(isolate()), 2);
-  MultiPop(saved_regs);
-}
-
-
 void MacroAssembler::Ext(Register rt,
                          Register rs,
                          uint16_t pos,
index 96eb9b4105d3b2740dbb722b8753539de0bbf1a1..4b7e37b800fef8f0fd0e474df79c041ae1a2bf8f 100644 (file)
@@ -768,11 +768,6 @@ class MacroAssembler: public Assembler {
   // into register dst.
   void LoadFromSafepointRegisterSlot(Register dst, Register src);
 
-  // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache
-  // from C.
-  // Does not handle errors.
-  void FlushICache(Register address, unsigned instructions);
-
   // MIPS32 R2 instruction macro.
   void Ins(Register rt, Register rs, uint16_t pos, uint16_t size);
   void Ext(Register rt, Register rs, uint16_t pos, uint16_t size);
index 0aa67852787c212df27800cd2b580984eb33db76..8ab4597094c7a5aa3521d5bcfcee53acda589d64 100644 (file)
@@ -1434,20 +1434,6 @@ void MacroAssembler::MultiPopReversedFPU(RegList regs) {
 }
 
 
-void MacroAssembler::FlushICache(Register address, unsigned instructions) {
-  RegList saved_regs = kJSCallerSaved | ra.bit();
-  MultiPush(saved_regs);
-  AllowExternalCallThatCantCauseGC scope(this);
-
-  Move(a0, address);
-  PrepareCallCFunction(2, t8);
-
-  li(a1, instructions * kInstrSize);
-  CallCFunction(ExternalReference::flush_icache_function(isolate()), 2);
-  MultiPop(saved_regs);
-}
-
-
 void MacroAssembler::Ext(Register rt,
                          Register rs,
                          uint16_t pos,
index b374d43b797742b54f33bf2b547c23561cf3d776..f69a68f59e3b4c08d0e69303944701ee2cdd71cc 100644 (file)
@@ -796,11 +796,6 @@ class MacroAssembler: public Assembler {
   // into register dst.
   void LoadFromSafepointRegisterSlot(Register dst, Register src);
 
-  // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache
-  // from C.
-  // Does not handle errors.
-  void FlushICache(Register address, unsigned instructions);
-
   // MIPS64 R2 instruction macro.
   void Ins(Register rt, Register rs, uint16_t pos, uint16_t size);
   void Ext(Register rt, Register rs, uint16_t pos, uint16_t size);
index 48669955e6840c4b2219cb44f0db620462a45f7f..4b3284e6b7297152381e59f893d6ef7e4c01807b 100644 (file)
@@ -121,8 +121,6 @@ ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) {
       "InvokeFunctionCallback");
   Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(),
       "InvokeAccessorGetterCallback");
-  Add(ExternalReference::flush_icache_function(isolate).address(),
-      "Assembler::FlushICacheWithoutIsolate");
   Add(ExternalReference::log_enter_external_function(isolate).address(),
       "Logger::EnterExternal");
   Add(ExternalReference::log_leave_external_function(isolate).address(),