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

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

Issue 1261673004: Non-tree-shaking --precompile. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/native_api_impl.cc ('k') | runtime/vm/object.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 #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 2926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2937 // Add the given code object to the list of dependent ones. 2937 // Add the given code object to the list of dependent ones.
2938 void RegisterDependentCode(const Code& code) const; 2938 void RegisterDependentCode(const Code& code) const;
2939 2939
2940 // Deoptimize all dependent code objects. 2940 // Deoptimize all dependent code objects.
2941 void DeoptimizeDependentCode() const; 2941 void DeoptimizeDependentCode() const;
2942 2942
2943 bool IsUninitialized() const; 2943 bool IsUninitialized() const;
2944 2944
2945 void EvaluateInitializer() const; 2945 void EvaluateInitializer() const;
2946 2946
2947 RawFunction* initializer() const {
2948 return raw_ptr()->initializer_;
2949 }
2950 void set_initializer(const Function& initializer) const;
2951
2947 // For static fields only. Constructs a closure that gets/sets the 2952 // For static fields only. Constructs a closure that gets/sets the
2948 // field value. 2953 // field value.
2949 RawInstance* GetterClosure() const; 2954 RawInstance* GetterClosure() const;
2950 RawInstance* SetterClosure() const; 2955 RawInstance* SetterClosure() const;
2951 RawInstance* AccessorClosure(bool make_setter) const; 2956 RawInstance* AccessorClosure(bool make_setter) const;
2952 2957
2953 // Constructs getter and setter names for fields and vice versa. 2958 // Constructs getter and setter names for fields and vice versa.
2954 static RawString* GetterName(const String& field_name); 2959 static RawString* GetterName(const String& field_name);
2955 static RawString* GetterSymbol(const String& field_name); 2960 static RawString* GetterSymbol(const String& field_name);
2956 static RawString* SetterName(const String& field_name); 2961 static RawString* SetterName(const String& field_name);
(...skipping 5054 matching lines...) Expand 10 before | Expand all | Expand 10 after
8011 8016
8012 8017
8013 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8018 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8014 intptr_t index) { 8019 intptr_t index) {
8015 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8020 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8016 } 8021 }
8017 8022
8018 } // namespace dart 8023 } // namespace dart
8019 8024
8020 #endif // VM_OBJECT_H_ 8025 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698