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

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

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from iposva@ and ager@ Created 8 years, 11 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) 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_ALLOCATION_H_ 5 #ifndef VM_ALLOCATION_H_
6 #define VM_ALLOCATION_H_ 6 #define VM_ALLOCATION_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/global.h" 9 #include "vm/globals.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class Isolate; 14 class Isolate;
15 15
16 // Stack allocated objects subclass from this base class. Objects of this type 16 // Stack allocated objects subclass from this base class. Objects of this type
17 // cannot be allocated on either the C or object heaps. Destructors for objects 17 // cannot be allocated on either the C or object heaps. Destructors for objects
18 // of this type will not be run unless the stack is unwound through normal 18 // of this type will not be run unless the stack is unwound through normal
19 // program control flow. 19 // program control flow.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // deallocated by invoking DeleteAll() on the zone they live in. 87 // deallocated by invoking DeleteAll() on the zone they live in.
88 void operator delete(void* pointer) { UNREACHABLE(); } 88 void operator delete(void* pointer) { UNREACHABLE(); }
89 89
90 private: 90 private:
91 DISALLOW_COPY_AND_ASSIGN(ZoneAllocated); 91 DISALLOW_COPY_AND_ASSIGN(ZoneAllocated);
92 }; 92 };
93 93
94 } // namespace dart 94 } // namespace dart
95 95
96 #endif // VM_ALLOCATION_H_ 96 #endif // VM_ALLOCATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698