OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" |
10 #include "vm/bigint_operations.h" | 11 #include "vm/bigint_operations.h" |
11 #include "vm/bootstrap.h" | 12 #include "vm/bootstrap.h" |
12 #include "vm/class_finalizer.h" | 13 #include "vm/class_finalizer.h" |
13 #include "vm/code_generator.h" | 14 #include "vm/code_generator.h" |
14 #include "vm/code_observers.h" | 15 #include "vm/code_observers.h" |
15 #include "vm/code_patcher.h" | 16 #include "vm/code_patcher.h" |
16 #include "vm/compiler.h" | 17 #include "vm/compiler.h" |
17 #include "vm/compiler_stats.h" | 18 #include "vm/compiler_stats.h" |
18 #include "vm/dart.h" | 19 #include "vm/dart.h" |
19 #include "vm/dart_api_state.h" | 20 #include "vm/dart_api_state.h" |
(...skipping 7623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7643 | 7644 |
7644 // Allocate the Instructions object. | 7645 // Allocate the Instructions object. |
7645 Instructions& instrs = | 7646 Instructions& instrs = |
7646 Instructions::ZoneHandle(Instructions::New(assembler->CodeSize())); | 7647 Instructions::ZoneHandle(Instructions::New(assembler->CodeSize())); |
7647 | 7648 |
7648 // Copy the instructions into the instruction area and apply all fixups. | 7649 // Copy the instructions into the instruction area and apply all fixups. |
7649 // Embedded pointers are still in handles at this point. | 7650 // Embedded pointers are still in handles at this point. |
7650 MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()), | 7651 MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()), |
7651 instrs.size()); | 7652 instrs.size()); |
7652 assembler->FinalizeInstructions(region); | 7653 assembler->FinalizeInstructions(region); |
| 7654 CPU::FlushICache(instrs.EntryPoint(), instrs.size()); |
7653 | 7655 |
7654 CodeObservers::NotifyAll(name, | 7656 CodeObservers::NotifyAll(name, |
7655 instrs.EntryPoint(), | 7657 instrs.EntryPoint(), |
7656 assembler->prologue_offset(), | 7658 assembler->prologue_offset(), |
7657 instrs.size(), | 7659 instrs.size(), |
7658 optimized); | 7660 optimized); |
7659 | 7661 |
7660 const ZoneGrowableArray<int>& pointer_offsets = | 7662 const ZoneGrowableArray<int>& pointer_offsets = |
7661 assembler->GetPointerOffsets(); | 7663 assembler->GetPointerOffsets(); |
7662 | 7664 |
(...skipping 5391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13054 } | 13056 } |
13055 return result.raw(); | 13057 return result.raw(); |
13056 } | 13058 } |
13057 | 13059 |
13058 | 13060 |
13059 const char* WeakProperty::ToCString() const { | 13061 const char* WeakProperty::ToCString() const { |
13060 return "_WeakProperty"; | 13062 return "_WeakProperty"; |
13061 } | 13063 } |
13062 | 13064 |
13063 } // namespace dart | 13065 } // namespace dart |
OLD | NEW |