aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/crankshaft/x64/lithium-codegen-x64.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/crankshaft/x64/lithium-codegen-x64.h')
-rw-r--r--deps/v8/src/crankshaft/x64/lithium-codegen-x64.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/deps/v8/src/crankshaft/x64/lithium-codegen-x64.h b/deps/v8/src/crankshaft/x64/lithium-codegen-x64.h
index eafdc778ad..6fb918bf84 100644
--- a/deps/v8/src/crankshaft/x64/lithium-codegen-x64.h
+++ b/deps/v8/src/crankshaft/x64/lithium-codegen-x64.h
@@ -6,13 +6,13 @@
#define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
+#include "src/ast/scopes.h"
#include "src/base/logging.h"
#include "src/crankshaft/lithium-codegen.h"
#include "src/crankshaft/x64/lithium-gap-resolver-x64.h"
#include "src/crankshaft/x64/lithium-x64.h"
#include "src/deoptimizer.h"
#include "src/safepoint-table.h"
-#include "src/scopes.h"
#include "src/utils.h"
namespace v8 {
@@ -26,13 +26,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),
@@ -180,6 +176,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 CallRuntimeFromDeferred(Runtime::FunctionId id,
int argc,
LInstruction* instr,
@@ -215,9 +216,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;
XMMRegister ToDoubleRegister(int index) const;
@@ -273,10 +271,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 temp);
-
// Emits code for pushing either a tagged constant, a (non-double)
// register, or a stack slot operand.
void EmitPushTaggedOperand(LOperand* operand);
@@ -310,13 +304,9 @@ class LCodeGen: public LCodeGenBase {
void MakeSureStackPagesMapped(int offset);
#endif
- 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