| 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 7611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7631 | 7632 |
| 7632 // Allocate the Instructions object. | 7633 // Allocate the Instructions object. |
| 7633 Instructions& instrs = | 7634 Instructions& instrs = |
| 7634 Instructions::ZoneHandle(Instructions::New(assembler->CodeSize())); | 7635 Instructions::ZoneHandle(Instructions::New(assembler->CodeSize())); |
| 7635 | 7636 |
| 7636 // Copy the instructions into the instruction area and apply all fixups. | 7637 // Copy the instructions into the instruction area and apply all fixups. |
| 7637 // Embedded pointers are still in handles at this point. | 7638 // Embedded pointers are still in handles at this point. |
| 7638 MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()), | 7639 MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()), |
| 7639 instrs.size()); | 7640 instrs.size()); |
| 7640 assembler->FinalizeInstructions(region); | 7641 assembler->FinalizeInstructions(region); |
| 7642 CPU::FlushICache(instrs.EntryPoint(), instrs.size()); |
| 7641 | 7643 |
| 7642 CodeObservers::NotifyAll(name, | 7644 CodeObservers::NotifyAll(name, |
| 7643 instrs.EntryPoint(), | 7645 instrs.EntryPoint(), |
| 7644 assembler->prologue_offset(), | 7646 assembler->prologue_offset(), |
| 7645 instrs.size(), | 7647 instrs.size(), |
| 7646 optimized); | 7648 optimized); |
| 7647 | 7649 |
| 7648 const ZoneGrowableArray<int>& pointer_offsets = | 7650 const ZoneGrowableArray<int>& pointer_offsets = |
| 7649 assembler->GetPointerOffsets(); | 7651 assembler->GetPointerOffsets(); |
| 7650 | 7652 |
| (...skipping 5396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13047 } | 13049 } |
| 13048 return result.raw(); | 13050 return result.raw(); |
| 13049 } | 13051 } |
| 13050 | 13052 |
| 13051 | 13053 |
| 13052 const char* WeakProperty::ToCString() const { | 13054 const char* WeakProperty::ToCString() const { |
| 13053 return "_WeakProperty"; | 13055 return "_WeakProperty"; |
| 13054 } | 13056 } |
| 13055 | 13057 |
| 13056 } // namespace dart | 13058 } // namespace dart |
| OLD | NEW |