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

Side by Side Diff: runtime/vm/raw_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/object.cc ('k') | runtime/vm/raw_object_snapshot.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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 RawObject** to() { 771 RawObject** to() {
772 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); 772 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_);
773 } 773 }
774 774
775 int32_t token_pos_; 775 int32_t token_pos_;
776 int32_t end_token_pos_; 776 int32_t end_token_pos_;
777 int32_t usage_counter_; // Incremented while function is running. 777 int32_t usage_counter_; // Incremented while function is running.
778 int16_t num_fixed_parameters_; 778 int16_t num_fixed_parameters_;
779 int16_t num_optional_parameters_; // > 0: positional; < 0: named. 779 int16_t num_optional_parameters_; // > 0: positional; < 0: named.
780 int16_t deoptimization_counter_; 780 int16_t deoptimization_counter_;
781 classid_t regexp_cid_;
782 uint32_t kind_tag_; // See Function::KindTagBits. 781 uint32_t kind_tag_; // See Function::KindTagBits.
783 uint16_t optimized_instruction_count_; 782 uint16_t optimized_instruction_count_;
784 uint16_t optimized_call_site_count_; 783 uint16_t optimized_call_site_count_;
785 }; 784 };
786 785
787 786
788 class RawClosureData : public RawObject { 787 class RawClosureData : public RawObject {
789 private: 788 private:
790 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); 789 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData);
791 790
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2194 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2193 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2195 kTypedDataInt8ArrayViewCid + 15); 2194 kTypedDataInt8ArrayViewCid + 15);
2196 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2195 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2197 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2196 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2198 return (kNullCid - kTypedDataInt8ArrayCid); 2197 return (kNullCid - kTypedDataInt8ArrayCid);
2199 } 2198 }
2200 2199
2201 } // namespace dart 2200 } // namespace dart
2202 2201
2203 #endif // VM_RAW_OBJECT_H_ 2202 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698