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

Side by Side Diff: runtime/vm/object.h

Issue 2327693002: Add --parse-all option in order to benchmark and measure the scanner/parser performance. (Closed)
Patch Set: Created 4 years, 3 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
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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3745 matching lines...) Expand 10 before | Expand all | Expand 10 after
3756 static RawLibrary* IsolateLibrary(); 3756 static RawLibrary* IsolateLibrary();
3757 static RawLibrary* MathLibrary(); 3757 static RawLibrary* MathLibrary();
3758 static RawLibrary* MirrorsLibrary(); 3758 static RawLibrary* MirrorsLibrary();
3759 static RawLibrary* NativeWrappersLibrary(); 3759 static RawLibrary* NativeWrappersLibrary();
3760 static RawLibrary* ProfilerLibrary(); 3760 static RawLibrary* ProfilerLibrary();
3761 static RawLibrary* TypedDataLibrary(); 3761 static RawLibrary* TypedDataLibrary();
3762 static RawLibrary* VMServiceLibrary(); 3762 static RawLibrary* VMServiceLibrary();
3763 3763
3764 // Eagerly compile all classes and functions in the library. 3764 // Eagerly compile all classes and functions in the library.
3765 static RawError* CompileAll(); 3765 static RawError* CompileAll();
3766 static RawError* ParseAll();
3766 3767
3767 #if defined(DART_NO_SNAPSHOT) 3768 #if defined(DART_NO_SNAPSHOT)
3768 // Checks function fingerprints. Prints mismatches and aborts if 3769 // Checks function fingerprints. Prints mismatches and aborts if
3769 // mismatch found. 3770 // mismatch found.
3770 static void CheckFunctionFingerprints(); 3771 static void CheckFunctionFingerprints();
3771 #endif // defined(DART_NO_SNAPSHOT). 3772 #endif // defined(DART_NO_SNAPSHOT).
3772 3773
3773 static bool IsPrivate(const String& name); 3774 static bool IsPrivate(const String& name);
3774 // Construct the full name of a corelib member. 3775 // Construct the full name of a corelib member.
3775 static const String& PrivateCoreLibName(const String& member); 3776 static const String& PrivateCoreLibName(const String& member);
(...skipping 5041 matching lines...) Expand 10 before | Expand all | Expand 10 after
8817 8818
8818 inline void TypeArguments::SetHash(intptr_t value) const { 8819 inline void TypeArguments::SetHash(intptr_t value) const {
8819 // This is only safe because we create a new Smi, which does not cause 8820 // This is only safe because we create a new Smi, which does not cause
8820 // heap allocation. 8821 // heap allocation.
8821 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8822 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8822 } 8823 }
8823 8824
8824 } // namespace dart 8825 } // namespace dart
8825 8826
8826 #endif // VM_OBJECT_H_ 8827 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698