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

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

Issue 2949803002: New growth strategy for growable arrays (Closed)
Patch Set: Branch-free grow size computation. Renamed function names to be clearer. Created 3 years, 6 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/code_descriptors.cc ('k') | runtime/vm/debugger.cc » ('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 "lib/stacktrace.h" 9 #include "lib/stacktrace.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 5770 matching lines...) Expand 10 before | Expand all | Expand 10 after
5781 if (ns.IsNull()) continue; 5781 if (ns.IsNull()) continue;
5782 importee = ns.library(); 5782 importee = ns.library();
5783 importee_uri = importee.url(); 5783 importee_uri = importee.url();
5784 if (importee_uri.StartsWith(scheme_vm)) { 5784 if (importee_uri.StartsWith(scheme_vm)) {
5785 result.Add(importer); 5785 result.Add(importer);
5786 result.Add(importee); 5786 result.Add(importee);
5787 } 5787 }
5788 } 5788 }
5789 } 5789 }
5790 5790
5791 return Api::NewHandle(T, Array::MakeArray(result)); 5791 return Api::NewHandle(T, Array::MakeFixedLength(result));
5792 } 5792 }
5793 5793
5794 5794
5795 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 5795 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
5796 Dart_Handle url, 5796 Dart_Handle url,
5797 Dart_Handle resolved_url, 5797 Dart_Handle resolved_url,
5798 Dart_Handle source, 5798 Dart_Handle source,
5799 intptr_t line_offset, 5799 intptr_t line_offset,
5800 intptr_t column_offset) { 5800 intptr_t column_offset) {
5801 API_TIMELINE_DURATION; 5801 API_TIMELINE_DURATION;
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
6966 } 6966 }
6967 6967
6968 6968
6969 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6969 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6970 #ifndef PRODUCT 6970 #ifndef PRODUCT
6971 Profiler::DumpStackTrace(context); 6971 Profiler::DumpStackTrace(context);
6972 #endif 6972 #endif
6973 } 6973 }
6974 6974
6975 } // namespace dart 6975 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698