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

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

Issue 1968143002: Small fix in Scanner (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
« no previous file with comments | « no previous file | 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 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
3272 public: 3272 public:
3273 RawGrowableObjectArray* TokenObjects() const; 3273 RawGrowableObjectArray* TokenObjects() const;
3274 void SetTokenObjects(const GrowableObjectArray& value) const; 3274 void SetTokenObjects(const GrowableObjectArray& value) const;
3275 3275
3276 RawExternalTypedData* GetStream() const; 3276 RawExternalTypedData* GetStream() const;
3277 void SetStream(const ExternalTypedData& stream) const; 3277 void SetStream(const ExternalTypedData& stream) const;
3278 3278
3279 RawString* GenerateSource() const; 3279 RawString* GenerateSource() const;
3280 RawString* GenerateSource(TokenPosition start, 3280 RawString* GenerateSource(TokenPosition start,
3281 TokenPosition end) const; 3281 TokenPosition end) const;
3282 TokenPosition ComputeSourcePosition(TokenPosition tok_pos) const; 3282 intptr_t ComputeSourcePosition(TokenPosition tok_pos) const;
3283 3283
3284 RawString* PrivateKey() const; 3284 RawString* PrivateKey() const;
3285 3285
3286 static const intptr_t kBytesPerElement = 1; 3286 static const intptr_t kBytesPerElement = 1;
3287 static const intptr_t kMaxElements = kSmiMax / kBytesPerElement; 3287 static const intptr_t kMaxElements = kSmiMax / kBytesPerElement;
3288 3288
3289 static intptr_t InstanceSize() { 3289 static intptr_t InstanceSize() {
3290 return RoundedAllocationSize(sizeof(RawTokenStream)); 3290 return RoundedAllocationSize(sizeof(RawTokenStream));
3291 } 3291 }
3292 3292
(...skipping 5231 matching lines...) Expand 10 before | Expand all | Expand 10 after
8524 8524
8525 8525
8526 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8526 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8527 intptr_t index) { 8527 intptr_t index) {
8528 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8528 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8529 } 8529 }
8530 8530
8531 } // namespace dart 8531 } // namespace dart
8532 8532
8533 #endif // VM_OBJECT_H_ 8533 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698