| Index: src/arm/codegen-arm.h
|
| diff --git a/src/arm/codegen-arm.h b/src/arm/codegen-arm.h
|
| index 8b17243757a8f363686a765de4fff6f0c7a08a7c..fcccffc624cad5454299882a234d1eb9942eff21 100644
|
| --- a/src/arm/codegen-arm.h
|
| +++ b/src/arm/codegen-arm.h
|
| @@ -209,6 +209,9 @@ class CodeGenerator: public AstVisitor {
|
| Code::Flags flags,
|
| CompilationInfo* info);
|
|
|
| + // Print the code after compiling it.
|
| + static void PrintCode(Handle<Code> code, CompilationInfo* info);
|
| +
|
| #ifdef ENABLE_LOGGING_AND_PROFILING
|
| static bool ShouldGenerateLog(Expression* type);
|
| #endif
|
| @@ -267,8 +270,8 @@ class CodeGenerator: public AstVisitor {
|
| }
|
| static const int kInlinedKeyedStoreInstructionsAfterPatch = 5;
|
| static int GetInlinedNamedStoreInstructionsAfterPatch() {
|
| - ASSERT(inlined_write_barrier_size_ != -1);
|
| - return inlined_write_barrier_size_ + 4;
|
| + ASSERT(Isolate::Current()->inlined_write_barrier_size() != -1);
|
| + return Isolate::Current()->inlined_write_barrier_size() + 4;
|
| }
|
|
|
| private:
|
| @@ -305,8 +308,9 @@ class CodeGenerator: public AstVisitor {
|
| // Node visitors.
|
| void VisitStatements(ZoneList<Statement*>* statements);
|
|
|
| + virtual void VisitSlot(Slot* node);
|
| #define DEF_VISIT(type) \
|
| - void Visit##type(type* node);
|
| + virtual void Visit##type(type* node);
|
| AST_NODE_LIST(DEF_VISIT)
|
| #undef DEF_VISIT
|
|
|
| @@ -570,9 +574,6 @@ class CodeGenerator: public AstVisitor {
|
| // to some unlinking code).
|
| bool function_return_is_shadowed_;
|
|
|
| - // Size of inlined write barriers generated by EmitNamedStore.
|
| - static int inlined_write_barrier_size_;
|
| -
|
| friend class VirtualFrame;
|
| friend class Isolate;
|
| friend class JumpTarget;
|
| @@ -581,6 +582,7 @@ class CodeGenerator: public AstVisitor {
|
| friend class FullCodeGenerator;
|
| friend class FullCodeGenSyntaxChecker;
|
| friend class InlineRuntimeFunctionsTable;
|
| + friend class LCodeGen;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
|
| };
|
|
|