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

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

Issue 1295973002: Store the RegExp and the string specialization cid in an Array in RawFunction::data_. (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/flow_graph_type_propagator.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 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 bool HasInstantiatedSignature() const; 2097 bool HasInstantiatedSignature() const;
2098 2098
2099 // Build a string of the form 'T, {b: B, c: C} representing the user 2099 // Build a string of the form 'T, {b: B, c: C} representing the user
2100 // visible formal parameters of the function. 2100 // visible formal parameters of the function.
2101 RawString* UserVisibleFormalParameters() const; 2101 RawString* UserVisibleFormalParameters() const;
2102 2102
2103 RawClass* Owner() const; 2103 RawClass* Owner() const;
2104 RawClass* origin() const; 2104 RawClass* origin() const;
2105 RawScript* script() const; 2105 RawScript* script() const;
2106 2106
2107 void set_regexp(const JSRegExp& value) const;
2108 RawJSRegExp* regexp() const; 2107 RawJSRegExp* regexp() const;
2109 2108 intptr_t string_specialization_cid() const;
2110 // Get and set the class id this function is specialized for. Only set for 2109 void SetRegExpData(const JSRegExp& regexp,
2111 // irregexp functions. 2110 intptr_t string_specialization_cid) const;
2112 intptr_t regexp_cid() const { return raw_ptr()->regexp_cid_; }
2113 void set_regexp_cid(intptr_t regexp_cid) const;
2114 2111
2115 RawAbstractType* result_type() const { return raw_ptr()->result_type_; } 2112 RawAbstractType* result_type() const { return raw_ptr()->result_type_; }
2116 void set_result_type(const AbstractType& value) const; 2113 void set_result_type(const AbstractType& value) const;
2117 2114
2118 RawAbstractType* ParameterTypeAt(intptr_t index) const; 2115 RawAbstractType* ParameterTypeAt(intptr_t index) const;
2119 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const; 2116 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const;
2120 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; } 2117 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; }
2121 void set_parameter_types(const Array& value) const; 2118 void set_parameter_types(const Array& value) const;
2122 2119
2123 // Parameter names are valid for all valid parameter indices, and are not 2120 // Parameter names are valid for all valid parameter indices, and are not
(...skipping 5908 matching lines...) Expand 10 before | Expand all | Expand 10 after
8032 8029
8033 8030
8034 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8031 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8035 intptr_t index) { 8032 intptr_t index) {
8036 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8033 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8037 } 8034 }
8038 8035
8039 } // namespace dart 8036 } // namespace dart
8040 8037
8041 #endif // VM_OBJECT_H_ 8038 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698