Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 11a0cc90a9e4bbcff50b111ee925864c600c793d..505d4a5e05f4186356e796db06339fd677fb0928 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -19,12 +19,13 @@ |
namespace v8 { |
namespace internal { |
-MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size) |
+MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size, |
+ CodeObjectRequired create_code_object) |
: Assembler(arg_isolate, buffer, size), |
generating_stub_(false), |
has_frame_(false), |
has_double_zero_reg_set_(false) { |
- if (isolate() != NULL) { |
+ if (create_code_object == CodeObjectRequired::kYes) { |
code_object_ = |
Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); |
} |
@@ -5780,12 +5781,11 @@ bool AreAliased(Register reg1, |
} |
-CodePatcher::CodePatcher(byte* address, |
- int instructions, |
+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, CodeObjectRequired::kNo), |
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 |