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

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

Issue 14247005: Add flag --check-function-fingerprints, it checks all function fingerprints of the intrinsifier and… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
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 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 4503 matching lines...) Expand 10 before | Expand all | Expand 10 after
4514 Dart_Handle result = Api::CheckIsolateState(isolate); 4514 Dart_Handle result = Api::CheckIsolateState(isolate);
4515 if (::Dart_IsError(result)) { 4515 if (::Dart_IsError(result)) {
4516 return result; 4516 return result;
4517 } 4517 }
4518 CHECK_CALLBACK_STATE(isolate); 4518 CHECK_CALLBACK_STATE(isolate);
4519 CompileAll(isolate, &result); 4519 CompileAll(isolate, &result);
4520 return result; 4520 return result;
4521 } 4521 }
4522 4522
4523 4523
4524 DART_EXPORT Dart_Handle Dart_CheckFunctionFingerprints() {
4525 Isolate* isolate = Isolate::Current();
4526 DARTSCOPE(isolate);
4527 Dart_Handle result = Api::CheckIsolateState(isolate);
4528 if (::Dart_IsError(result)) {
4529 return result;
4530 }
4531 CHECK_CALLBACK_STATE(isolate);
4532 Library::CheckFunctionFingerprints();
4533 return result;
4534 }
4535
4536
4524 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object) { 4537 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object) {
4525 return Api::ClassId(object) == kLibraryCid; 4538 return Api::ClassId(object) == kLibraryCid;
4526 } 4539 }
4527 4540
4528 4541
4529 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, 4542 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library,
4530 Dart_Handle class_name) { 4543 Dart_Handle class_name) {
4531 Isolate* isolate = Isolate::Current(); 4544 Isolate* isolate = Isolate::Current();
4532 DARTSCOPE(isolate); 4545 DARTSCOPE(isolate);
4533 const Library& lib = Api::UnwrapLibraryHandle(isolate, library); 4546 const Library& lib = Api::UnwrapLibraryHandle(isolate, library);
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
4833 } 4846 }
4834 { 4847 {
4835 NoGCScope no_gc; 4848 NoGCScope no_gc;
4836 RawObject* raw_obj = obj.raw(); 4849 RawObject* raw_obj = obj.raw();
4837 isolate->heap()->SetPeer(raw_obj, peer); 4850 isolate->heap()->SetPeer(raw_obj, peer);
4838 } 4851 }
4839 return Api::Success(isolate); 4852 return Api::Success(isolate);
4840 } 4853 }
4841 4854
4842 } // namespace dart 4855 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698