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

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

Issue 180243013: Stop creating dummy call frames when calling out to C functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_PAGES_H_ 5 #ifndef VM_PAGES_H_
6 #define VM_PAGES_H_ 6 #define VM_PAGES_H_
7 7
8 #include "vm/freelist.h" 8 #include "vm/freelist.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/virtual_memory.h" 10 #include "vm/virtual_memory.h"
(...skipping 25 matching lines...) Expand all
36 return memory_->Contains(addr); 36 return memory_->Contains(addr);
37 } 37 }
38 38
39 uword object_start() const { 39 uword object_start() const {
40 return (reinterpret_cast<uword>(this) + ObjectStartOffset()); 40 return (reinterpret_cast<uword>(this) + ObjectStartOffset());
41 } 41 }
42 uword object_end() const { 42 uword object_end() const {
43 return object_end_; 43 return object_end_;
44 } 44 }
45 45
46 uword start() const {
47 return memory_->start();
48 }
49
50 uword end() const {
51 return memory_->end();
52 }
siva 2014/02/27 00:00:26 Where are these used? I don't see any code using t
Cutch 2014/02/27 15:52:37 Left over debug code. Removed.
53
46 PageType type() const { 54 PageType type() const {
47 return executable_ ? kExecutable : kData; 55 return executable_ ? kExecutable : kData;
48 } 56 }
49 57
50 void VisitObjects(ObjectVisitor* visitor) const; 58 void VisitObjects(ObjectVisitor* visitor) const;
51 void VisitObjectPointers(ObjectPointerVisitor* visitor) const; 59 void VisitObjectPointers(ObjectPointerVisitor* visitor) const;
52 60
53 RawObject* FindObject(FindObjectVisitor* visitor) const; 61 RawObject* FindObject(FindObjectVisitor* visitor) const;
54 62
55 void WriteProtect(bool read_only); 63 void WriteProtect(bool read_only);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 intptr_t collections_; 298 intptr_t collections_;
291 299
292 friend class PageSpaceController; 300 friend class PageSpaceController;
293 301
294 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); 302 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace);
295 }; 303 };
296 304
297 } // namespace dart 305 } // namespace dart
298 306
299 #endif // VM_PAGES_H_ 307 #endif // VM_PAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698