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

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

Issue 1643023003: Precompilation: when removing top-level fields and functions, also remove them from the library dic… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3410 const Array& param_values) const; 3410 const Array& param_values) const;
3411 3411
3412 // Library scope name dictionary. 3412 // Library scope name dictionary.
3413 // 3413 //
3414 // TODO(turnidge): The Lookup functions are not consistent in how 3414 // TODO(turnidge): The Lookup functions are not consistent in how
3415 // they deal with private names. Go through and make them a bit 3415 // they deal with private names. Go through and make them a bit
3416 // more regular. 3416 // more regular.
3417 void AddClass(const Class& cls) const; 3417 void AddClass(const Class& cls) const;
3418 void AddObject(const Object& obj, const String& name) const; 3418 void AddObject(const Object& obj, const String& name) const;
3419 void ReplaceObject(const Object& obj, const String& name) const; 3419 void ReplaceObject(const Object& obj, const String& name) const;
3420 bool RemoveObject(const Object& obj, const String& name) const;
3420 RawObject* LookupReExport(const String& name) const; 3421 RawObject* LookupReExport(const String& name) const;
3421 RawObject* LookupObjectAllowPrivate(const String& name) const; 3422 RawObject* LookupObjectAllowPrivate(const String& name) const;
3422 RawObject* LookupLocalObjectAllowPrivate(const String& name) const; 3423 RawObject* LookupLocalObjectAllowPrivate(const String& name) const;
3423 RawObject* LookupLocalObject(const String& name) const; 3424 RawObject* LookupLocalObject(const String& name) const;
3424 RawObject* LookupImportedObject(const String& name) const; 3425 RawObject* LookupImportedObject(const String& name) const;
3425 RawClass* LookupClass(const String& name) const; 3426 RawClass* LookupClass(const String& name) const;
3426 RawClass* LookupClassAllowPrivate(const String& name) const; 3427 RawClass* LookupClassAllowPrivate(const String& name) const;
3427 RawClass* LookupLocalClass(const String& name) const; 3428 RawClass* LookupLocalClass(const String& name) const;
3428 RawField* LookupFieldAllowPrivate(const String& name) const; 3429 RawField* LookupFieldAllowPrivate(const String& name) const;
3429 RawField* LookupLocalField(const String& name) const; 3430 RawField* LookupLocalField(const String& name) const;
(...skipping 4947 matching lines...) Expand 10 before | Expand all | Expand 10 after
8377 8378
8378 8379
8379 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8380 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8380 intptr_t index) { 8381 intptr_t index) {
8381 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8382 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8382 } 8383 }
8383 8384
8384 } // namespace dart 8385 } // namespace dart
8385 8386
8386 #endif // VM_OBJECT_H_ 8387 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698