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

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

Issue 471283002: Runtime support for evaluation of static field initializer expressions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/intermediate_language_x64.cc ('k') | runtime/vm/object.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_mirrors_api.h" 5 #include "include/dart_mirrors_api.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/dart.h" 9 #include "vm/dart.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Some special types like 'dynamic' have a null functions list. 92 // Some special types like 'dynamic' have a null functions list.
93 if (!func_array.IsNull()) { 93 if (!func_array.IsNull()) {
94 for (intptr_t i = 0; i < func_array.Length(); ++i) { 94 for (intptr_t i = 0; i < func_array.Length(); ++i) {
95 func ^= func_array.At(i); 95 func ^= func_array.At(i);
96 96
97 // Skip implicit getters and setters. 97 // Skip implicit getters and setters.
98 if (func.kind() == RawFunction::kImplicitGetter || 98 if (func.kind() == RawFunction::kImplicitGetter ||
99 func.kind() == RawFunction::kImplicitSetter || 99 func.kind() == RawFunction::kImplicitSetter ||
100 func.kind() == RawFunction::kImplicitStaticFinalGetter || 100 func.kind() == RawFunction::kImplicitStaticFinalGetter ||
101 func.kind() == RawFunction::kStaticInitializer ||
102 func.kind() == RawFunction::kMethodExtractor || 101 func.kind() == RawFunction::kMethodExtractor ||
103 func.kind() == RawFunction::kNoSuchMethodDispatcher) { 102 func.kind() == RawFunction::kNoSuchMethodDispatcher) {
104 continue; 103 continue;
105 } 104 }
106 105
107 name = func.UserVisibleName(); 106 name = func.UserVisibleName();
108 names.Add(name); 107 names.Add(name);
109 } 108 }
110 } 109 }
111 } else if (obj.IsLibrary()) { 110 } else if (obj.IsLibrary()) {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 RETURN_TYPE_ERROR(isolate, closure, Instance); 370 RETURN_TYPE_ERROR(isolate, closure, Instance);
372 } 371 }
373 372
374 ASSERT(ClassFinalizer::AllClassesFinalized()); 373 ASSERT(ClassFinalizer::AllClassesFinalized());
375 374
376 RawFunction* rf = Closure::function(closure_obj); 375 RawFunction* rf = Closure::function(closure_obj);
377 return Api::NewHandle(isolate, rf); 376 return Api::NewHandle(isolate, rf);
378 } 377 }
379 378
380 } // namespace dart 379 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698