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

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

Issue 1952023002: Minor cleanup based on profiler output of CompileParseFunction. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
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 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3300 3300
3301 // The class Iterator encapsulates iteration over the tokens 3301 // The class Iterator encapsulates iteration over the tokens
3302 // in a TokenStream object. 3302 // in a TokenStream object.
3303 class Iterator : ValueObject { 3303 class Iterator : ValueObject {
3304 public: 3304 public:
3305 enum StreamType { 3305 enum StreamType {
3306 kNoNewlines, 3306 kNoNewlines,
3307 kAllTokens 3307 kAllTokens
3308 }; 3308 };
3309 3309
3310 Iterator(const TokenStream& tokens, 3310 Iterator(Zone* zone,
3311 const TokenStream& tokens,
3311 TokenPosition token_pos, 3312 TokenPosition token_pos,
3312 Iterator::StreamType stream_type = kNoNewlines); 3313 Iterator::StreamType stream_type = kNoNewlines);
3313 3314
3314 void SetStream(const TokenStream& tokens, TokenPosition token_pos); 3315 void SetStream(const TokenStream& tokens, TokenPosition token_pos);
3315 bool IsValid() const; 3316 bool IsValid() const;
3316 3317
3317 inline Token::Kind CurrentTokenKind() const { 3318 inline Token::Kind CurrentTokenKind() const {
3318 return cur_token_kind_; 3319 return cur_token_kind_;
3319 } 3320 }
3320 3321
(...skipping 5201 matching lines...) Expand 10 before | Expand all | Expand 10 after
8522 8523
8523 8524
8524 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8525 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8525 intptr_t index) { 8526 intptr_t index) {
8526 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8527 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8527 } 8528 }
8528 8529
8529 } // namespace dart 8530 } // namespace dart
8530 8531
8531 #endif // VM_OBJECT_H_ 8532 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698