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

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

Issue 10540040: Inline setters, getters, various cleanups & restructuring. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/intermediate_language_x64.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 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 raw_ptr()->has_initializer_ = has_initializer; 1531 raw_ptr()->has_initializer_ = has_initializer;
1532 } 1532 }
1533 1533
1534 // Constructs getter and setter names for fields and vice versa. 1534 // Constructs getter and setter names for fields and vice versa.
1535 static RawString* GetterName(const String& field_name); 1535 static RawString* GetterName(const String& field_name);
1536 static RawString* GetterSymbol(const String& field_name); 1536 static RawString* GetterSymbol(const String& field_name);
1537 static RawString* SetterName(const String& field_name); 1537 static RawString* SetterName(const String& field_name);
1538 static RawString* SetterSymbol(const String& field_name); 1538 static RawString* SetterSymbol(const String& field_name);
1539 static RawString* NameFromGetter(const String& getter_name); 1539 static RawString* NameFromGetter(const String& getter_name);
1540 static RawString* NameFromSetter(const String& setter_name); 1540 static RawString* NameFromSetter(const String& setter_name);
1541 static bool IsGetterName(const String& function_name);
1542 static bool IsSetterName(const String& function_name);
1541 1543
1542 private: 1544 private:
1543 void set_name(const String& value) const; 1545 void set_name(const String& value) const;
1544 void set_is_static(bool is_static) const { 1546 void set_is_static(bool is_static) const {
1545 raw_ptr()->is_static_ = is_static; 1547 raw_ptr()->is_static_ = is_static;
1546 } 1548 }
1547 void set_is_final(bool is_final) const { 1549 void set_is_final(bool is_final) const {
1548 raw_ptr()->is_final_ = is_final; 1550 raw_ptr()->is_final_ = is_final;
1549 } 1551 }
1550 void set_token_index(intptr_t token_index) const { 1552 void set_token_index(intptr_t token_index) const {
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4973 } 4975 }
4974 4976
4975 4977
4976 intptr_t Stackmap::SizeInBits() const { 4978 intptr_t Stackmap::SizeInBits() const {
4977 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4979 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4978 } 4980 }
4979 4981
4980 } // namespace dart 4982 } // namespace dart
4981 4983
4982 #endif // VM_OBJECT_H_ 4984 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698