Commit e53807fb authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[assembler] Removed dead {JSCallerSavedCode} and friends.

R=bmeurer@chromium.org

Change-Id: I99013e446635aa4555cf03ebb201a65434542f35
Reviewed-on: https://chromium-review.googlesource.com/918661Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51287}
parent bba08b33
...@@ -1874,22 +1874,5 @@ void Assembler::RequestHeapObject(HeapObjectRequest request) { ...@@ -1874,22 +1874,5 @@ void Assembler::RequestHeapObject(HeapObjectRequest request) {
heap_object_requests_.push_front(request); heap_object_requests_.push_front(request);
} }
namespace {
int caller_saved_codes[kNumJSCallerSaved];
}
void SetUpJSCallerSavedCodeData() {
int i = 0;
for (int r = 0; r < kNumRegs; r++)
if ((kJSCallerSaved & (1 << r)) != 0) caller_saved_codes[i++] = r;
DCHECK_EQ(i, kNumJSCallerSaved);
}
int JSCallerSavedCode(int n) {
DCHECK(0 <= n && n < kNumJSCallerSaved);
return caller_saved_codes[n];
}
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
...@@ -59,14 +59,10 @@ namespace internal { ...@@ -59,14 +59,10 @@ namespace internal {
// Forward declarations. // Forward declarations.
class InstructionStream; class InstructionStream;
class Isolate; class Isolate;
class SCTableReference;
class SourcePosition; class SourcePosition;
class StatsCounter; class StatsCounter;
void SetUpJSCallerSavedCodeData();
// Return the code of the n-th saved register available to JavaScript.
int JSCallerSavedCode(int n);
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Optimization for far-jmp like instructions that can be replaced by shorter. // Optimization for far-jmp like instructions that can be replaced by shorter.
...@@ -734,14 +730,8 @@ class RelocIterator: public Malloced { ...@@ -734,14 +730,8 @@ class RelocIterator: public Malloced {
DISALLOW_COPY_AND_ASSIGN(RelocIterator); DISALLOW_COPY_AND_ASSIGN(RelocIterator);
}; };
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// External function // External references
//----------------------------------------------------------------------------
class SCTableReference;
class Debug_Address;
// An ExternalReference represents a C++ address used in the generated // An ExternalReference represents a C++ address used in the generated
// code. All references to C++ functions and variables must be encapsulated in // code. All references to C++ functions and variables must be encapsulated in
......
...@@ -595,7 +595,8 @@ void CodeGenerator::AssembleCodeStartRegisterCheck() { ...@@ -595,7 +595,8 @@ void CodeGenerator::AssembleCodeStartRegisterCheck() {
} }
// Check if the code object is marked for deoptimization. If it is, then it // Check if the code object is marked for deoptimization. If it is, then it
// jumps to CompileLazyDeoptimizedCode builtin. In order to do this we need to: // jumps to the CompileLazyDeoptimizedCode builtin. In order to do this we need
// to:
// 1. read from memory the word that contains that bit, which can be found in // 1. read from memory the word that contains that bit, which can be found in
// the flags in the referenced {CodeDataContainer} object; // the flags in the referenced {CodeDataContainer} object;
// 2. test kMarkedForDeoptimizationBit in those flags; and // 2. test kMarkedForDeoptimizationBit in those flags; and
......
...@@ -81,7 +81,6 @@ void V8::InitializeOncePerProcessImpl() { ...@@ -81,7 +81,6 @@ void V8::InitializeOncePerProcessImpl() {
sampler::Sampler::SetUp(); sampler::Sampler::SetUp();
CpuFeatures::Probe(false); CpuFeatures::Probe(false);
ElementsAccessor::InitializeOncePerProcess(); ElementsAccessor::InitializeOncePerProcess();
SetUpJSCallerSavedCodeData();
ExternalReference::SetUp(); ExternalReference::SetUp();
Bootstrapper::InitializeOncePerProcess(); Bootstrapper::InitializeOncePerProcess();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment