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

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

Issue 2699853002: Sort class IDs before training AppJIT snapshots (Closed)
Patch Set: Add DeleteAllCode Created 3 years, 10 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
« no previous file with comments | « runtime/vm/class_table.cc ('k') | runtime/vm/heap.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "lib/stacktrace.h" 10 #include "lib/stacktrace.h"
(...skipping 6588 matching lines...) Expand 10 before | Expand all | Expand 10 after
6599 JITFeedbackFunctionVisitor visitor(&js_functions, zone); 6599 JITFeedbackFunctionVisitor visitor(&js_functions, zone);
6600 ProgramVisitor::VisitFunctions(&visitor); 6600 ProgramVisitor::VisitFunctions(&visitor);
6601 } 6601 }
6602 } 6602 }
6603 6603
6604 js_stream.Steal(reinterpret_cast<char**>(buffer), buffer_length); 6604 js_stream.Steal(reinterpret_cast<char**>(buffer), buffer_length);
6605 return Api::Success(); 6605 return Api::Success();
6606 #endif 6606 #endif
6607 } 6607 }
6608 6608
6609 DART_EXPORT void Dart_SortClasses() {
6610 DARTSCOPE(Thread::Current());
6611 ClassFinalizer::SortClasses();
6612 ClassFinalizer::ClearAllCode();
6613 }
6609 6614
6610 DART_EXPORT Dart_Handle 6615 DART_EXPORT Dart_Handle
6611 Dart_Precompile(Dart_QualifiedFunctionName entry_points[], 6616 Dart_Precompile(Dart_QualifiedFunctionName entry_points[],
6612 uint8_t* jit_feedback, 6617 uint8_t* jit_feedback,
6613 intptr_t jit_feedback_length) { 6618 intptr_t jit_feedback_length) {
6614 #if defined(TARGET_ARCH_IA32) 6619 #if defined(TARGET_ARCH_IA32)
6615 return Api::NewError("AOT compilation is not supported on IA32."); 6620 return Api::NewError("AOT compilation is not supported on IA32.");
6616 #elif defined(TARGET_ARCH_DBC) 6621 #elif defined(TARGET_ARCH_DBC)
6617 return Api::NewError("AOT compilation is not supported on DBC."); 6622 return Api::NewError("AOT compilation is not supported on DBC.");
6618 #elif !defined(DART_PRECOMPILER) 6623 #elif !defined(DART_PRECOMPILER)
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
6826 } 6831 }
6827 6832
6828 6833
6829 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6834 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6830 #ifndef PRODUCT 6835 #ifndef PRODUCT
6831 Profiler::DumpStackTrace(context); 6836 Profiler::DumpStackTrace(context);
6832 #endif 6837 #endif
6833 } 6838 }
6834 6839
6835 } // namespace dart 6840 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/class_table.cc ('k') | runtime/vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698