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

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

Issue 10389023: Fixed compilation time measurement, restructure some code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/flow_graph_compiler_x64.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 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 // embedded objects in the instructions using pointer_offsets. 2196 // embedded objects in the instructions using pointer_offsets.
2197 2197
2198 static intptr_t InstanceSize() { 2198 static intptr_t InstanceSize() {
2199 ASSERT(sizeof(RawCode) == OFFSET_OF(RawCode, data_)); 2199 ASSERT(sizeof(RawCode) == OFFSET_OF(RawCode, data_));
2200 return 0; 2200 return 0;
2201 } 2201 }
2202 static intptr_t InstanceSize(intptr_t pointer_offsets_length) { 2202 static intptr_t InstanceSize(intptr_t pointer_offsets_length) {
2203 return RoundedAllocationSize( 2203 return RoundedAllocationSize(
2204 sizeof(RawCode) + (pointer_offsets_length * kEntrySize)); 2204 sizeof(RawCode) + (pointer_offsets_length * kEntrySize));
2205 } 2205 }
2206 static RawCode* FinalizeCode(const char* name, Assembler* assembler); 2206 static RawCode* FinalizeCode(const Function& function, Assembler* assembler);
2207 static RawCode* FinalizeStubCode(const char* name, Assembler* assembler); 2207 static RawCode* FinalizeStubCode(const char* name, Assembler* assembler);
2208 2208
2209 int32_t GetPointerOffsetAt(int index) const { 2209 int32_t GetPointerOffsetAt(int index) const {
2210 return *PointerOffsetAddrAt(index); 2210 return *PointerOffsetAddrAt(index);
2211 } 2211 }
2212 intptr_t GetTokenIndexOfPC(uword pc) const; 2212 intptr_t GetTokenIndexOfPC(uword pc) const;
2213 2213
2214 // Find pc of patch code buffer. Return 0 if not found. 2214 // Find pc of patch code buffer. Return 0 if not found.
2215 uword GetPatchCodePc() const; 2215 uword GetPatchCodePc() const;
2216 2216
(...skipping 2673 matching lines...) Expand 10 before | Expand all | Expand 10 after
4890 } 4890 }
4891 4891
4892 4892
4893 intptr_t Stackmap::SizeInBits() const { 4893 intptr_t Stackmap::SizeInBits() const {
4894 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4894 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4895 } 4895 }
4896 4896
4897 } // namespace dart 4897 } // namespace dart
4898 4898
4899 #endif // VM_OBJECT_H_ 4899 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698