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

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

Issue 1857273002: Fix detection if a function was compiled, (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments Created 4 years, 8 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 RawObject** to() { 845 RawObject** to() {
846 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); 846 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_);
847 } 847 }
848 uword entry_point_; 848 uword entry_point_;
849 849
850 TokenPosition token_pos_; 850 TokenPosition token_pos_;
851 TokenPosition end_token_pos_; 851 TokenPosition end_token_pos_;
852 int32_t usage_counter_; // Incremented while function is running. 852 int32_t usage_counter_; // Incremented while function is running.
853 int16_t num_fixed_parameters_; 853 int16_t num_fixed_parameters_;
854 int16_t num_optional_parameters_; // > 0: positional; < 0: named. 854 int16_t num_optional_parameters_; // > 0: positional; < 0: named.
855 int16_t deoptimization_counter_; 855 int8_t deoptimization_counter_;
856 int8_t was_compiled_;
856 uint32_t kind_tag_; // See Function::KindTagBits. 857 uint32_t kind_tag_; // See Function::KindTagBits.
857 uint16_t optimized_instruction_count_; 858 uint16_t optimized_instruction_count_;
858 uint16_t optimized_call_site_count_; 859 uint16_t optimized_call_site_count_;
859 }; 860 };
860 861
861 862
862 class RawClosureData : public RawObject { 863 class RawClosureData : public RawObject {
863 private: 864 private:
864 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); 865 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData);
865 866
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2367 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2367 kTypedDataInt8ArrayViewCid + 15); 2368 kTypedDataInt8ArrayViewCid + 15);
2368 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2369 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2369 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2370 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2370 return (kNullCid - kTypedDataInt8ArrayCid); 2371 return (kNullCid - kTypedDataInt8ArrayCid);
2371 } 2372 }
2372 2373
2373 } // namespace dart 2374 } // namespace dart
2374 2375
2375 #endif // VM_RAW_OBJECT_H_ 2376 #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