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

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

Issue 1404163002: VM: Precompile method extractors for implicit and explicit closurization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix hash-closurization Created 5 years, 2 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 | « no previous file | 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 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 // function. 2563 // function.
2564 // The function and the class share the same given name. 2564 // The function and the class share the same given name.
2565 static RawFunction* NewClosureFunction(const String& name, 2565 static RawFunction* NewClosureFunction(const String& name,
2566 const Function& parent, 2566 const Function& parent,
2567 intptr_t token_pos); 2567 intptr_t token_pos);
2568 2568
2569 static RawFunction* NewEvalFunction(const Class& owner, 2569 static RawFunction* NewEvalFunction(const Class& owner,
2570 const Script& script, 2570 const Script& script,
2571 bool is_static); 2571 bool is_static);
2572 2572
2573 RawFunction* CreateMethodExtractor(const String& getter_name) const;
2574 RawFunction* GetMethodExtractor(const String& getter_name) const;
2575
2573 // Allocate new function object, clone values from this function. The 2576 // Allocate new function object, clone values from this function. The
2574 // owner of the clone is new_owner. 2577 // owner of the clone is new_owner.
2575 RawFunction* Clone(const Class& new_owner) const; 2578 RawFunction* Clone(const Class& new_owner) const;
2576 2579
2577 // Slow function, use in asserts to track changes in important library 2580 // Slow function, use in asserts to track changes in important library
2578 // functions. 2581 // functions.
2579 int32_t SourceFingerprint() const; 2582 int32_t SourceFingerprint() const;
2580 2583
2581 // Return false and report an error if the fingerprint does not match. 2584 // Return false and report an error if the fingerprint does not match.
2582 bool CheckSourceFingerprint(const char* prefix, int32_t fp) const; 2585 bool CheckSourceFingerprint(const char* prefix, int32_t fp) const;
(...skipping 5560 matching lines...) Expand 10 before | Expand all | Expand 10 after
8143 8146
8144 8147
8145 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8148 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8146 intptr_t index) { 8149 intptr_t index) {
8147 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8150 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8148 } 8151 }
8149 8152
8150 } // namespace dart 8153 } // namespace dart
8151 8154
8152 #endif // VM_OBJECT_H_ 8155 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698