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

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

Issue 1533653003: Add SourceReport, a class for generating Dart source-level reports. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tweaks Created 5 years 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 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 } 2010 }
2011 2011
2012 // It is only meaningful to interptret range feedback stored in the ICData 2012 // It is only meaningful to interptret range feedback stored in the ICData
2013 // when all checks are Mint or Smi. 2013 // when all checks are Mint or Smi.
2014 bool HasRangeFeedback() const; 2014 bool HasRangeFeedback() const;
2015 RangeFeedback DecodeRangeFeedbackAt(intptr_t idx) const; 2015 RangeFeedback DecodeRangeFeedbackAt(intptr_t idx) const;
2016 2016
2017 void PrintToJSONArray(const JSONArray& jsarray, 2017 void PrintToJSONArray(const JSONArray& jsarray,
2018 intptr_t token_pos, 2018 intptr_t token_pos,
2019 bool is_static_call) const; 2019 bool is_static_call) const;
2020 void PrintToJSONArrayNew(const JSONArray& jsarray,
2021 intptr_t token_pos,
2022 bool is_static_call) const;
2020 2023
2021 // Initialize the preallocated empty ICData entry arrays. 2024 // Initialize the preallocated empty ICData entry arrays.
2022 static void InitOnce(); 2025 static void InitOnce();
2023 2026
2024 enum { 2027 enum {
2025 kCachedICDataArrayCount = 4 2028 kCachedICDataArrayCount = 4
2026 }; 2029 };
2027 2030
2028 private: 2031 private:
2029 static RawICData* New(); 2032 static RawICData* New();
(...skipping 6193 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
« no previous file with comments | « runtime/vm/coverage.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/source_report.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698