Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index ebb27007b9d32ffc36435c8b0952aaa0824d139c..756a4ca8116be61a303ebdbf870b63f947638649 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -6,27 +6,34 @@ |
#include "src/base/bits.h" |
#include "src/base/division-by-constant.h" |
+#include "src/base/utils/random-number-generator.h" |
#include "src/bootstrapper.h" |
#include "src/codegen.h" |
#include "src/debug/debug.h" |
#include "src/ia32/frames-ia32.h" |
-#include "src/ia32/macro-assembler-ia32.h" |
#include "src/runtime/runtime.h" |
+#include "src/ia32/macro-assembler-ia32.h" |
+ |
namespace v8 { |
namespace internal { |
// ------------------------------------------------------------------------- |
// MacroAssembler implementation. |
-MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size, |
+MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size, |
CodeObjectRequired create_code_object) |
- : Assembler(arg_isolate, buffer, size), |
+ : Assembler(isolate, buffer, size), |
generating_stub_(false), |
- has_frame_(false) { |
+ has_frame_(false), |
+ isolate_(isolate), |
+ jit_cookie_(0) { |
+ if (FLAG_mask_constants_with_cookie) { |
+ jit_cookie_ = isolate->random_number_generator()->NextInt(); |
+ } |
if (create_code_object == CodeObjectRequired::kYes) { |
code_object_ = |
- Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); |
+ Handle<Object>::New(isolate_->heap()->undefined_value(), isolate_); |
} |
} |