Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Side by Side Diff: runtime/vm/object.cc

Issue 12726011: Enables cross-compilation of the VM for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7734 matching lines...) Expand 10 before | Expand all | Expand 10 after
7754 7755
7755 // Allocate the Instructions object. 7756 // Allocate the Instructions object.
7756 Instructions& instrs = 7757 Instructions& instrs =
7757 Instructions::ZoneHandle(Instructions::New(assembler->CodeSize())); 7758 Instructions::ZoneHandle(Instructions::New(assembler->CodeSize()));
7758 7759
7759 // Copy the instructions into the instruction area and apply all fixups. 7760 // Copy the instructions into the instruction area and apply all fixups.
7760 // Embedded pointers are still in handles at this point. 7761 // Embedded pointers are still in handles at this point.
7761 MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()), 7762 MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()),
7762 instrs.size()); 7763 instrs.size());
7763 assembler->FinalizeInstructions(region); 7764 assembler->FinalizeInstructions(region);
7765 CPU::FlushICache(instrs.EntryPoint(), instrs.size());
7764 7766
7765 CodeObservers::NotifyAll(name, 7767 CodeObservers::NotifyAll(name,
7766 instrs.EntryPoint(), 7768 instrs.EntryPoint(),
7767 assembler->prologue_offset(), 7769 assembler->prologue_offset(),
7768 instrs.size(), 7770 instrs.size(),
7769 optimized); 7771 optimized);
7770 7772
7771 const ZoneGrowableArray<int>& pointer_offsets = 7773 const ZoneGrowableArray<int>& pointer_offsets =
7772 assembler->GetPointerOffsets(); 7774 assembler->GetPointerOffsets();
7773 7775
(...skipping 5401 matching lines...) Expand 10 before | Expand all | Expand 10 after
13175 } 13177 }
13176 return result.raw(); 13178 return result.raw();
13177 } 13179 }
13178 13180
13179 13181
13180 const char* WeakProperty::ToCString() const { 13182 const char* WeakProperty::ToCString() const {
13181 return "_WeakProperty"; 13183 return "_WeakProperty";
13182 } 13184 }
13183 13185
13184 } // namespace dart 13186 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698