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

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

Issue 11418046: First part of static call cleanup: store static call targets into code object, referenced by code-o… (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
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 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 return raw_ptr()->object_table_; 2479 return raw_ptr()->object_table_;
2480 } 2480 }
2481 void set_object_table(const Array& array) const; 2481 void set_object_table(const Array& array) const;
2482 2482
2483 RawArray* stackmaps() const { 2483 RawArray* stackmaps() const {
2484 return raw_ptr()->stackmaps_; 2484 return raw_ptr()->stackmaps_;
2485 } 2485 }
2486 void set_stackmaps(const Array& maps) const; 2486 void set_stackmaps(const Array& maps) const;
2487 RawStackmap* GetStackmap(uword pc, Array* stackmaps, Stackmap* map) const; 2487 RawStackmap* GetStackmap(uword pc, Array* stackmaps, Stackmap* map) const;
2488 2488
2489 void set_static_calls_target_table(const Array& value) const;
2490 RawArray* static_calls_target_table() const {
2491 return raw_ptr()->static_calls_target_table_;
2492 }
2493
2494 // Returns null if there is no static call at 'pc'.
2495 static RawFunction* GetStaticCallTargetAt(uword pc);
siva 2012/11/16 23:15:23 It might make sense to also have an instance metho
srdjan 2012/11/17 00:47:24 Changed as discussed
2496
2489 RawGrowableObjectArray* resolved_static_calls() const { 2497 RawGrowableObjectArray* resolved_static_calls() const {
2490 return raw_ptr()->resolved_static_calls_; 2498 return raw_ptr()->resolved_static_calls_;
2491 } 2499 }
2492 void set_resolved_static_calls(const GrowableObjectArray& val) const; 2500 void set_resolved_static_calls(const GrowableObjectArray& val) const;
2493 2501
2494 class Comments : public ZoneAllocated { 2502 class Comments : public ZoneAllocated {
2495 public: 2503 public:
2496 static Comments& New(intptr_t count); 2504 static Comments& New(intptr_t count);
2497 2505
2498 intptr_t Length() const; 2506 intptr_t Length() const;
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after
5921 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5929 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5922 return false; 5930 return false;
5923 } 5931 }
5924 } 5932 }
5925 return true; 5933 return true;
5926 } 5934 }
5927 5935
5928 } // namespace dart 5936 } // namespace dart
5929 5937
5930 #endif // VM_OBJECT_H_ 5938 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698