Chromium Code Reviews| Index: runtime/vm/object.h |
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
| index 94daedff914a8dc03ff77e9f40f48b1a83153bcf..316b19485a2b8ec439b68e1c02e0cb7dbf53d732 100644 |
| --- a/runtime/vm/object.h |
| +++ b/runtime/vm/object.h |
| @@ -494,6 +494,9 @@ class Object { |
| static void set_instructions_snapshot_buffer(const uint8_t* buffer) { |
| instructions_snapshot_buffer_ = buffer; |
| } |
| + static bool IsRunningPrecompiledCode() { |
| + return instructions_snapshot_buffer != NULL; |
|
siva
2015/09/15 23:22:01
instructions_snapshot_buffer_
rmacnak
2015/09/16 01:34:44
Done.
|
| + } |
|
siva
2015/09/15 23:22:01
We should move instructions_snapshot_buffer_ field
|
| static RawClass* class_class() { return class_class_; } |
| static RawClass* dynamic_class() { return dynamic_class_; } |
| @@ -3772,6 +3775,7 @@ class Instructions : public Object { |
| FINAL_HEAP_OBJECT_IMPLEMENTATION(Instructions, Object); |
| friend class Class; |
| friend class Code; |
| + friend class InstructionsWriter; |
| }; |