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

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

Issue 196413011: - Implement a PauseTimerScope so that we can properly exclude (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « runtime/vm/isolate.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 VMHandles::AllocateZoneHandle(isolate)); \ 86 VMHandles::AllocateZoneHandle(isolate)); \
87 initializeHandle(obj, raw_ptr); \ 87 initializeHandle(obj, raw_ptr); \
88 return *obj; \ 88 return *obj; \
89 } \ 89 } \
90 static object* ReadOnlyHandle() { \ 90 static object* ReadOnlyHandle() { \
91 object* obj = reinterpret_cast<object*>( \ 91 object* obj = reinterpret_cast<object*>( \
92 Dart::AllocateReadOnlyHandle()); \ 92 Dart::AllocateReadOnlyHandle()); \
93 initializeHandle(obj, object::null()); \ 93 initializeHandle(obj, object::null()); \
94 return obj; \ 94 return obj; \
95 } \ 95 } \
96 static object& ZoneHandle(Isolate* isolate) { \
97 return ZoneHandle(isolate, object::null()); \
98 } \
96 static object& ZoneHandle() { \ 99 static object& ZoneHandle() { \
97 return ZoneHandle(Isolate::Current(), object::null()); \ 100 return ZoneHandle(Isolate::Current(), object::null()); \
98 } \ 101 } \
99 static object& ZoneHandle(Raw##object* raw_ptr) { \ 102 static object& ZoneHandle(Raw##object* raw_ptr) { \
100 return ZoneHandle(Isolate::Current(), raw_ptr); \ 103 return ZoneHandle(Isolate::Current(), raw_ptr); \
101 } \ 104 } \
102 static object& CheckedZoneHandle(Isolate* isolate, RawObject* raw_ptr) { \ 105 static object& CheckedZoneHandle(Isolate* isolate, RawObject* raw_ptr) { \
103 object* obj = reinterpret_cast<object*>( \ 106 object* obj = reinterpret_cast<object*>( \
104 VMHandles::AllocateZoneHandle(isolate)); \ 107 VMHandles::AllocateZoneHandle(isolate)); \
105 initializeHandle(obj, raw_ptr); \ 108 initializeHandle(obj, raw_ptr); \
(...skipping 6627 matching lines...) Expand 10 before | Expand all | Expand 10 after
6733 6736
6734 6737
6735 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6738 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6736 intptr_t index) { 6739 intptr_t index) {
6737 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6740 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6738 } 6741 }
6739 6742
6740 } // namespace dart 6743 } // namespace dart
6741 6744
6742 #endif // VM_OBJECT_H_ 6745 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698