| Index: src/fast-codegen.h
|
| ===================================================================
|
| --- src/fast-codegen.h (revision 3807)
|
| +++ src/fast-codegen.h (working copy)
|
| @@ -69,15 +69,13 @@
|
|
|
| static Handle<Code> MakeCode(CompilationInfo* info);
|
|
|
| - void Generate(CompilationInfo* info);
|
| + void Generate(CompilationInfo* compilation_info);
|
|
|
| private:
|
| MacroAssembler* masm() { return masm_; }
|
| + CompilationInfo* info() { return info_; }
|
| Label* bailout() { return &bailout_; }
|
|
|
| - bool has_receiver() { return !info_->receiver().is_null(); }
|
| - Handle<Object> receiver() { return info_->receiver(); }
|
| - bool has_this_properties() { return info_->has_this_properties(); }
|
| FunctionLiteral* function() { return info_->function(); }
|
| Scope* scope() { return info_->scope(); }
|
|
|
| @@ -94,12 +92,14 @@
|
| // arm-r1}. Emit a branch to the (single) bailout label if check fails.
|
| void EmitReceiverMapCheck();
|
|
|
| - // Emit code to load a global variable value into {is32-eax, x64-rax,
|
| - // arm-r0}. Register {ia32-edx, x64-rdx, arm-r1} is preserved if it is
|
| - // holding the receiver and {is32-ecx, x64-rcx, arm-r2} is always
|
| - // clobbered.
|
| - void EmitGlobalVariableLoad(Handle<String> name);
|
| + // Emit code to check that the global object has the same map as the
|
| + // global object seen at compile time.
|
| + void EmitGlobalMapCheck();
|
|
|
| + // Emit code to load a global variable directly from a global
|
| + // property cell into {ia32-eax, x64-rax, arm-r0}.
|
| + void EmitGlobalVariableLoad(Handle<Object> cell);
|
| +
|
| // Emit a store to an own property of this. The stored value is expected
|
| // in {ia32-eax, x64-rax, arm-r0} and the receiver in {is32-edx, x64-rdx,
|
| // arm-r1}. Both are preserve.
|
|
|