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

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

Issue 2968003004: Revert "The current growth strategy for growable arrays allocates a backing array of size 2 at (emp… (Closed)
Patch Set: Created 3 years, 5 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 5795 matching lines...) Expand 10 before | Expand all | Expand 10 after
5806 if (ns.IsNull()) continue; 5806 if (ns.IsNull()) continue;
5807 importee = ns.library(); 5807 importee = ns.library();
5808 importee_uri = importee.url(); 5808 importee_uri = importee.url();
5809 if (importee_uri.StartsWith(scheme_vm)) { 5809 if (importee_uri.StartsWith(scheme_vm)) {
5810 result.Add(importer); 5810 result.Add(importer);
5811 result.Add(importee); 5811 result.Add(importee);
5812 } 5812 }
5813 } 5813 }
5814 } 5814 }
5815 5815
5816 return Api::NewHandle(T, Array::MakeFixedLength(result)); 5816 return Api::NewHandle(T, Array::MakeArray(result));
5817 } 5817 }
5818 5818
5819 5819
5820 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 5820 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
5821 Dart_Handle url, 5821 Dart_Handle url,
5822 Dart_Handle resolved_url, 5822 Dart_Handle resolved_url,
5823 Dart_Handle source, 5823 Dart_Handle source,
5824 intptr_t line_offset, 5824 intptr_t line_offset,
5825 intptr_t column_offset) { 5825 intptr_t column_offset) {
5826 API_TIMELINE_DURATION; 5826 API_TIMELINE_DURATION;
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
6991 } 6991 }
6992 6992
6993 6993
6994 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6994 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6995 #ifndef PRODUCT 6995 #ifndef PRODUCT
6996 Profiler::DumpStackTrace(context); 6996 Profiler::DumpStackTrace(context);
6997 #endif 6997 #endif
6998 } 6998 }
6999 6999
7000 } // namespace dart 7000 } // 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