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

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

Issue 8528010: Changes to pass the current isolate to all runtime and native calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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/handles_test.cc ('k') | runtime/vm/heap.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) 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_HEAP_H_ 5 #ifndef VM_HEAP_H_
6 #define VM_HEAP_H_ 6 #define VM_HEAP_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 DISALLOW_COPY_AND_ASSIGN(Heap); 81 DISALLOW_COPY_AND_ASSIGN(Heap);
82 }; 82 };
83 83
84 84
85 #if defined(DEBUG) 85 #if defined(DEBUG)
86 class NoGCScope : public StackResource { 86 class NoGCScope : public StackResource {
87 public: 87 public:
88 NoGCScope(); 88 NoGCScope();
89 ~NoGCScope(); 89 ~NoGCScope();
90 private: 90 private:
91 Isolate* isolate_;
92
93 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 91 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
94 }; 92 };
95 #else // defined(DEBUG) 93 #else // defined(DEBUG)
96 class NoGCScope : public ValueObject { 94 class NoGCScope : public ValueObject {
97 public: 95 public:
98 NoGCScope() {} 96 NoGCScope() {}
99 private: 97 private:
100 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 98 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
101 }; 99 };
102 #endif // defined(DEBUG) 100 #endif // defined(DEBUG)
103 101
104 } // namespace dart 102 } // namespace dart
105 103
106 #endif // VM_HEAP_H_ 104 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « runtime/vm/handles_test.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698