diff options
Diffstat (limited to 'deps/v8/src/crankshaft/mips/lithium-codegen-mips.h')
-rw-r--r-- | deps/v8/src/crankshaft/mips/lithium-codegen-mips.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h b/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h index 8fc78a96d4..160ab9a665 100644 --- a/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h +++ b/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h @@ -5,12 +5,12 @@ #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ +#include "src/ast/scopes.h" #include "src/crankshaft/lithium-codegen.h" #include "src/crankshaft/mips/lithium-gap-resolver-mips.h" #include "src/crankshaft/mips/lithium-mips.h" #include "src/deoptimizer.h" #include "src/safepoint-table.h" -#include "src/scopes.h" #include "src/utils.h" namespace v8 { @@ -24,13 +24,9 @@ class LCodeGen: public LCodeGenBase { public: LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) : LCodeGenBase(chunk, assembler, info), - deoptimizations_(4, info->zone()), jump_table_(4, info->zone()), - inlined_function_count_(0), scope_(info->scope()), - translations_(info->zone()), deferred_(8, info->zone()), - osr_pc_offset_(-1), frame_is_built_(false), safepoints_(info->zone()), resolver_(this), @@ -201,6 +197,11 @@ class LCodeGen: public LCodeGenBase { CallRuntime(function, num_arguments, instr); } + void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { + const Runtime::Function* function = Runtime::FunctionForId(id); + CallRuntime(function, function->nargs, instr); + } + void LoadContextFromDeferred(LOperand* context); void CallRuntimeFromDeferred(Runtime::FunctionId id, int argc, @@ -235,9 +236,6 @@ class LCodeGen: public LCodeGenBase { bool is_uint32, int* object_index_pointer, int* dematerialized_index_pointer); - void PopulateDeoptimizationData(Handle<Code> code); - - void PopulateDeoptimizationLiteralsWithInlinedFunctions(); Register ToRegister(int index) const; DoubleRegister ToDoubleRegister(int index) const; @@ -310,10 +308,6 @@ class LCodeGen: public LCodeGenBase { Label* is_not_string, SmiCheck check_needed); - // Emits optimized code for %_IsConstructCall(). - // Caller should branch on equal condition. - void EmitIsConstructCall(Register temp1, Register temp2); - // Emits optimized code to deep-copy the contents of statically known // object graphs (e.g. object literal boilerplate). void EmitDeepCopy(Handle<JSObject> object, @@ -346,13 +340,9 @@ class LCodeGen: public LCodeGenBase { template <class T> void EmitVectorStoreICRegisters(T* instr); - ZoneList<LEnvironment*> deoptimizations_; ZoneList<Deoptimizer::JumpTableEntry> jump_table_; - int inlined_function_count_; Scope* const scope_; - TranslationBuffer translations_; ZoneList<LDeferredCode*> deferred_; - int osr_pc_offset_; bool frame_is_built_; // Builder that keeps track of safepoints in the code. The table |