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

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
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 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 char* name, Assembler* assembler);
2207 static RawCode* FinalizeStubCode(const char* name, Assembler* assembler); 2207 static RawCode* FinalizeStubCode(const char* name, Assembler* assembler);
2208 static RawCode* FinalizeCodeForFunction(const Function& function,
2209 Assembler* assembler);
2208 2210
2209 int32_t GetPointerOffsetAt(int index) const { 2211 int32_t GetPointerOffsetAt(int index) const {
2210 return *PointerOffsetAddrAt(index); 2212 return *PointerOffsetAddrAt(index);
2211 } 2213 }
2212 intptr_t GetTokenIndexOfPC(uword pc) const; 2214 intptr_t GetTokenIndexOfPC(uword pc) const;
2213 2215
2214 // Find pc of patch code buffer. Return 0 if not found. 2216 // Find pc of patch code buffer. Return 0 if not found.
2215 uword GetPatchCodePc() const; 2217 uword GetPatchCodePc() const;
2216 2218
2217 uword GetDeoptPcAtNodeId(intptr_t node_id) const; 2219 uword GetDeoptPcAtNodeId(intptr_t node_id) const;
(...skipping 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
4890 } 4892 }
4891 4893
4892 4894
4893 intptr_t Stackmap::SizeInBits() const { 4895 intptr_t Stackmap::SizeInBits() const {
4894 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4896 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4895 } 4897 }
4896 4898
4897 } // namespace dart 4899 } // namespace dart
4898 4900
4899 #endif // VM_OBJECT_H_ 4901 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698