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

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

Issue 10752017: Rename Script's source to Source. Trace parser (--trace-parser) only if source is available (thus s… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | 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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 } 1724 }
1725 1725
1726 HEAP_OBJECT_IMPLEMENTATION(TokenStream, Object); 1726 HEAP_OBJECT_IMPLEMENTATION(TokenStream, Object);
1727 friend class Class; 1727 friend class Class;
1728 }; 1728 };
1729 1729
1730 1730
1731 class Script : public Object { 1731 class Script : public Object {
1732 public: 1732 public:
1733 RawString* url() const { return raw_ptr()->url_; } 1733 RawString* url() const { return raw_ptr()->url_; }
1734 RawString* source() const; 1734 bool HasSource() const;
1735 RawString* Source() const;
1735 RawScript::Kind kind() const { return raw_ptr()->kind_; } 1736 RawScript::Kind kind() const { return raw_ptr()->kind_; }
1736 1737
1737 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } 1738 RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
1738 1739
1739 void Tokenize(const String& private_key) const; 1740 void Tokenize(const String& private_key) const;
1740 1741
1741 RawString* GetLine(intptr_t line_number) const; 1742 RawString* GetLine(intptr_t line_number) const;
1742 1743
1743 RawString* GetSnippet(intptr_t from_line, 1744 RawString* GetSnippet(intptr_t from_line,
1744 intptr_t from_column, 1745 intptr_t from_column,
(...skipping 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after
5092 } 5093 }
5093 5094
5094 5095
5095 intptr_t Stackmap::SizeInBits() const { 5096 intptr_t Stackmap::SizeInBits() const {
5096 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 5097 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
5097 } 5098 }
5098 5099
5099 } // namespace dart 5100 } // namespace dart
5100 5101
5101 #endif // VM_OBJECT_H_ 5102 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698