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

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

Issue 11359151: Fix for issue 6623 - Canonicalize implicit static closure objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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.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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 RawContextScope* context_scope() const; 1140 RawContextScope* context_scope() const;
1141 void set_context_scope(const ContextScope& value) const; 1141 void set_context_scope(const ContextScope& value) const;
1142 1142
1143 // Enclosing function of this local function. 1143 // Enclosing function of this local function.
1144 RawFunction* parent_function() const; 1144 RawFunction* parent_function() const;
1145 1145
1146 // Signature class of this closure function or signature function. 1146 // Signature class of this closure function or signature function.
1147 RawClass* signature_class() const; 1147 RawClass* signature_class() const;
1148 void set_signature_class(const Class& value) const; 1148 void set_signature_class(const Class& value) const;
1149 1149
1150 RawInstance* implicit_static_closure() const;
1151 void set_implicit_static_closure(const Instance& closure) const;
1152
1150 RawCode* closure_allocation_stub() const; 1153 RawCode* closure_allocation_stub() const;
1151 void set_closure_allocation_stub(const Code& value) const; 1154 void set_closure_allocation_stub(const Code& value) const;
1152 1155
1153 // Return the closure function implicitly created for this function. 1156 // Return the closure function implicitly created for this function.
1154 // If none exists yet, create one and remember it. 1157 // If none exists yet, create one and remember it.
1155 RawFunction* ImplicitClosureFunction() const; 1158 RawFunction* ImplicitClosureFunction() const;
1156 1159
1157 // Redirection information for a redirecting factory. 1160 // Redirection information for a redirecting factory.
1158 bool IsRedirectingFactory() const; 1161 bool IsRedirectingFactory() const;
1159 RawType* RedirectionType() const; 1162 RawType* RedirectionType() const;
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 void set_context_scope(const ContextScope& value) const; 1516 void set_context_scope(const ContextScope& value) const;
1514 1517
1515 // Enclosing function of this local function. 1518 // Enclosing function of this local function.
1516 RawFunction* parent_function() const { return raw_ptr()->parent_function_; } 1519 RawFunction* parent_function() const { return raw_ptr()->parent_function_; }
1517 void set_parent_function(const Function& value) const; 1520 void set_parent_function(const Function& value) const;
1518 1521
1519 // Signature class of this closure function or signature function. 1522 // Signature class of this closure function or signature function.
1520 RawClass* signature_class() const { return raw_ptr()->signature_class_; } 1523 RawClass* signature_class() const { return raw_ptr()->signature_class_; }
1521 void set_signature_class(const Class& value) const; 1524 void set_signature_class(const Class& value) const;
1522 1525
1526 RawInstance* implicit_static_closure() const {
1527 return raw_ptr()->closure_;
1528 }
1529 void set_implicit_static_closure(const Instance& closure) const;
1530
1523 RawCode* closure_allocation_stub() const { 1531 RawCode* closure_allocation_stub() const {
1524 return raw_ptr()->closure_allocation_stub_; 1532 return raw_ptr()->closure_allocation_stub_;
1525 } 1533 }
1526 void set_closure_allocation_stub(const Code& value) const; 1534 void set_closure_allocation_stub(const Code& value) const;
1527 1535
1528 static RawClosureData* New(); 1536 static RawClosureData* New();
1529 1537
1530 HEAP_OBJECT_IMPLEMENTATION(ClosureData, Object); 1538 HEAP_OBJECT_IMPLEMENTATION(ClosureData, Object);
1531 friend class Class; 1539 friend class Class;
1532 friend class Function; 1540 friend class Function;
(...skipping 4341 matching lines...) Expand 10 before | Expand all | Expand 10 after
5874 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5882 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5875 return false; 5883 return false;
5876 } 5884 }
5877 } 5885 }
5878 return true; 5886 return true;
5879 } 5887 }
5880 5888
5881 } // namespace dart 5889 } // namespace dart
5882 5890
5883 #endif // VM_OBJECT_H_ 5891 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698