Index: runtime/vm/assembler_ia32.h |
diff --git a/runtime/vm/assembler_ia32.h b/runtime/vm/assembler_ia32.h |
index bac86c487ea0ac590ad8640caa54030f65c090a6..6884fabd63f97091f4f9e4ddda2015cc9947beee 100644 |
--- a/runtime/vm/assembler_ia32.h |
+++ b/runtime/vm/assembler_ia32.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
rmacnak
2015/09/12 23:12:44
Why?
Florian Schneider
2015/09/14 11:15:15
By accident I guess.
|
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -305,7 +305,8 @@ class Assembler : public ValueObject { |
: buffer_(), |
prologue_offset_(-1), |
jit_cookie_(0), |
- comments_() { |
+ comments_(), |
+ code_(Code::ZoneHandle()) { |
// This mode is only needed and implemented for MIPS and ARM. |
ASSERT(!use_far_branches); |
} |
@@ -957,6 +958,12 @@ class Assembler : public ValueObject { |
return !object.IsSmi() || IsSafeSmi(object); |
} |
+ void set_code_object(const Code& code) { |
+ code_ ^= code.raw(); |
+ } |
+ |
+ void PushCodeObject(); |
+ |
private: |
class CodeComment : public ZoneAllocated { |
public: |
@@ -1017,6 +1024,7 @@ class Assembler : public ValueObject { |
intptr_t prologue_offset_; |
int32_t jit_cookie_; |
GrowableArray<CodeComment*> comments_; |
+ Code& code_; |
DISALLOW_ALLOCATION(); |
DISALLOW_COPY_AND_ASSIGN(Assembler); |