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

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

Issue 11642003: Create and cache method extraction stub in the ICData. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: lazyly inject extractors as getters into class Created 7 years, 11 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/code_generator.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) 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after
2728 const Array& func_array = Array::Handle(cls.functions()); 2728 const Array& func_array = Array::Handle(cls.functions());
2729 2729
2730 // Some special types like 'dynamic' have a null functions list. 2730 // Some special types like 'dynamic' have a null functions list.
2731 if (!func_array.IsNull()) { 2731 if (!func_array.IsNull()) {
2732 for (intptr_t i = 0; i < func_array.Length(); ++i) { 2732 for (intptr_t i = 0; i < func_array.Length(); ++i) {
2733 func ^= func_array.At(i); 2733 func ^= func_array.At(i);
2734 2734
2735 // Skip implicit getters and setters. 2735 // Skip implicit getters and setters.
2736 if (func.kind() == RawFunction::kImplicitGetter || 2736 if (func.kind() == RawFunction::kImplicitGetter ||
2737 func.kind() == RawFunction::kImplicitSetter || 2737 func.kind() == RawFunction::kImplicitSetter ||
2738 func.kind() == RawFunction::kConstImplicitGetter) { 2738 func.kind() == RawFunction::kConstImplicitGetter ||
2739 func.kind() == RawFunction::kMethodExtractor) {
2739 continue; 2740 continue;
2740 } 2741 }
2741 2742
2742 name = func.UserVisibleName(); 2743 name = func.UserVisibleName();
2743 names.Add(name); 2744 names.Add(name);
2744 } 2745 }
2745 } 2746 }
2746 } else if (obj.IsLibrary()) { 2747 } else if (obj.IsLibrary()) {
2747 const Library& lib = Library::Cast(obj); 2748 const Library& lib = Library::Cast(obj);
2748 DictionaryIterator it(lib); 2749 DictionaryIterator it(lib);
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
4519 } 4520 }
4520 { 4521 {
4521 NoGCScope no_gc; 4522 NoGCScope no_gc;
4522 RawObject* raw_obj = obj.raw(); 4523 RawObject* raw_obj = obj.raw();
4523 isolate->heap()->SetPeer(raw_obj, peer); 4524 isolate->heap()->SetPeer(raw_obj, peer);
4524 } 4525 }
4525 return Api::Success(isolate); 4526 return Api::Success(isolate);
4526 } 4527 }
4527 4528
4528 } // namespace dart 4529 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698