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

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

Issue 1412633007: Save the native name on the function instead of finding it in the token stream for lazily-linked na… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 2141
2142 RawClass* Owner() const; 2142 RawClass* Owner() const;
2143 RawClass* origin() const; 2143 RawClass* origin() const;
2144 RawScript* script() const; 2144 RawScript* script() const;
2145 2145
2146 RawJSRegExp* regexp() const; 2146 RawJSRegExp* regexp() const;
2147 intptr_t string_specialization_cid() const; 2147 intptr_t string_specialization_cid() const;
2148 void SetRegExpData(const JSRegExp& regexp, 2148 void SetRegExpData(const JSRegExp& regexp,
2149 intptr_t string_specialization_cid) const; 2149 intptr_t string_specialization_cid) const;
2150 2150
2151 RawString* native_name() const;
2152 void set_native_name(const String& name) const;
2153
2151 RawAbstractType* result_type() const { return raw_ptr()->result_type_; } 2154 RawAbstractType* result_type() const { return raw_ptr()->result_type_; }
2152 void set_result_type(const AbstractType& value) const; 2155 void set_result_type(const AbstractType& value) const;
2153 2156
2154 RawAbstractType* ParameterTypeAt(intptr_t index) const; 2157 RawAbstractType* ParameterTypeAt(intptr_t index) const;
2155 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const; 2158 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const;
2156 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; } 2159 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; }
2157 void set_parameter_types(const Array& value) const; 2160 void set_parameter_types(const Array& value) const;
2158 2161
2159 // Parameter names are valid for all valid parameter indices, and are not 2162 // Parameter names are valid for all valid parameter indices, and are not
2160 // limited to named optional parameters. 2163 // limited to named optional parameters.
(...skipping 6062 matching lines...) Expand 10 before | Expand all | Expand 10 after
8223 8226
8224 8227
8225 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8228 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8226 intptr_t index) { 8229 intptr_t index) {
8227 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8230 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8228 } 8231 }
8229 8232
8230 } // namespace dart 8233 } // namespace dart
8231 8234
8232 #endif // VM_OBJECT_H_ 8235 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698