diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-25 22:45:23 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-25 23:45:02 +0100 |
commit | b15a10e7a014674ef6f71c51ad84032fb7b802e2 (patch) | |
tree | 3bb04a6cb05c7a37c385eda4521b8a9e7bcd736f /deps/v8/src/deoptimizer.h | |
parent | 34046084c0665c8bb2dfd84683dcf29d7ffbad2d (diff) | |
download | node-new-b15a10e7a014674ef6f71c51ad84032fb7b802e2.tar.gz |
deps: downgrade v8 to 3.14.5
V8 3.15 and newer have stability and performance issues. Roll back to
a known-good version.
Diffstat (limited to 'deps/v8/src/deoptimizer.h')
-rw-r--r-- | deps/v8/src/deoptimizer.h | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/deps/v8/src/deoptimizer.h b/deps/v8/src/deoptimizer.h index 89955b38bd..f67f986ba1 100644 --- a/deps/v8/src/deoptimizer.h +++ b/deps/v8/src/deoptimizer.h @@ -100,10 +100,8 @@ class DeoptimizerData { #endif private: - int eager_deoptimization_entry_code_entries_; - int lazy_deoptimization_entry_code_entries_; - VirtualMemory* eager_deoptimization_entry_code_; - VirtualMemory* lazy_deoptimization_entry_code_; + MemoryChunk* eager_deoptimization_entry_code_; + MemoryChunk* lazy_deoptimization_entry_code_; Deoptimizer* current_; #ifdef ENABLE_DEBUGGER_SUPPORT @@ -228,17 +226,7 @@ class Deoptimizer : public Malloced { static void ComputeOutputFrames(Deoptimizer* deoptimizer); - - enum GetEntryMode { - CALCULATE_ENTRY_ADDRESS, - ENSURE_ENTRY_CODE - }; - - - static Address GetDeoptimizationEntry( - int id, - BailoutType type, - GetEntryMode mode = ENSURE_ENTRY_CODE); + static Address GetDeoptimizationEntry(int id, BailoutType type); static int GetDeoptimizationId(Address addr, BailoutType type); static int GetOutputInfo(DeoptimizationOutputData* data, BailoutId node_id, @@ -295,11 +283,8 @@ class Deoptimizer : public Malloced { int ConvertJSFrameIndexToFrameIndex(int jsframe_index); - static size_t GetMaxDeoptTableSize(); - private: - static const int kMinNumberOfEntries = 64; - static const int kMaxNumberOfEntries = 16384; + static const int kNumberOfEntries = 16384; Deoptimizer(Isolate* isolate, JSFunction* function, @@ -342,8 +327,7 @@ class Deoptimizer : public Malloced { void AddArgumentsObjectValue(intptr_t value); void AddDoubleValue(intptr_t slot_address, double value); - static void EnsureCodeForDeoptimizationEntry(BailoutType type, - int max_entry_id); + static MemoryChunk* CreateCode(BailoutType type); static void GenerateDeoptimizationEntries( MacroAssembler* masm, int count, BailoutType type); @@ -537,6 +521,9 @@ class FrameDescription { intptr_t context_; StackFrame::Type type_; Smi* state_; +#ifdef DEBUG + Code::Kind kind_; +#endif // Continuation is the PC where the execution continues after // deoptimizing. |