| Index: src/ppc/macro-assembler-ppc.cc
|
| diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
|
| index cef6336487d356f444ba98428f03903e54726f24..cfab140fa10f7d5022dc0c37258bd8f1465aad8a 100644
|
| --- a/src/ppc/macro-assembler-ppc.cc
|
| +++ b/src/ppc/macro-assembler-ppc.cc
|
| @@ -20,11 +20,12 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size)
|
| +MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size,
|
| + bool create_code_object)
|
| : Assembler(arg_isolate, buffer, size),
|
| generating_stub_(false),
|
| has_frame_(false) {
|
| - if (isolate() != NULL) {
|
| + if (create_code_object) {
|
| code_object_ =
|
| Handle<Object>::New(isolate()->heap()->undefined_value(), isolate());
|
| }
|
| @@ -4370,7 +4371,7 @@ CodePatcher::CodePatcher(byte* address, int instructions,
|
| FlushICache flush_cache)
|
| : address_(address),
|
| size_(instructions * Assembler::kInstrSize),
|
| - masm_(NULL, address, size_ + Assembler::kGap),
|
| + masm_(NULL, address, size_ + Assembler::kGap, false),
|
| flush_cache_(flush_cache) {
|
| // Create a new macro assembler pointing to the address of the code to patch.
|
| // The size is adjusted with kGap on order for the assembler to generate size
|
|
|