Variable* par = scope()->parameter(i);
Slot* slot = par->slot();
if (slot != NULL && slot->type() == Slot::CONTEXT) {
- ASSERT(!scope()->is_global_scope()); // no parameters in global scope
+ ASSERT(!scope()->is_global_scope()); // No params in global scope.
__ ldr(r1, frame_->ParameterAt(i));
// Loads r2 with context; used below in RecordWrite.
__ str(r1, SlotOperand(slot, r2));
private:
// Construction/Destruction
- CodeGenerator(MacroAssembler* masm);
+ explicit CodeGenerator(MacroAssembler* masm);
// Accessors
inline bool is_eval();
: info_(NULL), has_supported_syntax_(true) {
}
- void Check(CompilationInfo* info);
+ void Check(CompilationInfo* info);
CompilationInfo* info() { return info_; }
bool has_supported_syntax() { return has_supported_syntax_; }
class FastCodeGenerator: public AstVisitor {
public:
- FastCodeGenerator(MacroAssembler* masm) : masm_(masm), info_(NULL) {}
+ explicit FastCodeGenerator(MacroAssembler* masm) : masm_(masm), info_(NULL) {}
static Handle<Code> MakeCode(CompilationInfo* info);
SECONDARY
};
- FullCodeGenerator(MacroAssembler* masm)
+ explicit FullCodeGenerator(MacroAssembler* masm)
: masm_(masm),
info_(NULL),
nesting_stack_(NULL),
private:
// Construction/Destruction
- CodeGenerator(MacroAssembler* masm);
+ explicit CodeGenerator(MacroAssembler* masm);
// Accessors
inline bool is_eval();
// cannot be changed without changing the SCons build script.
#define MAJOR_VERSION 2
#define MINOR_VERSION 1
-#define BUILD_NUMBER 1
+#define BUILD_NUMBER 1
#define PATCH_LEVEL 0
#define CANDIDATE_VERSION true
private:
// Construction/Destruction
- CodeGenerator(MacroAssembler* masm);
+ explicit CodeGenerator(MacroAssembler* masm);
// Accessors
inline bool is_eval();