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

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

Issue 2238363002: Fix unsimulated ARM/ARM64/MIPS builds. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | 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 3962 matching lines...) Expand 10 before | Expand all | Expand 10 after
3973 return reinterpret_cast<uword>(instr->ptr()) + HeaderSize(); 3973 return reinterpret_cast<uword>(instr->ptr()) + HeaderSize();
3974 } 3974 }
3975 3975
3976 #if defined(TARGET_ARCH_IA32) 3976 #if defined(TARGET_ARCH_IA32)
3977 static const intptr_t kCheckedEntryOffset = 0; 3977 static const intptr_t kCheckedEntryOffset = 0;
3978 static const intptr_t kUncheckedEntryOffset = 0; 3978 static const intptr_t kUncheckedEntryOffset = 0;
3979 #elif defined(TARGET_ARCH_X64) 3979 #elif defined(TARGET_ARCH_X64)
3980 static const intptr_t kCheckedEntryOffset = 23; 3980 static const intptr_t kCheckedEntryOffset = 23;
3981 static const intptr_t kUncheckedEntryOffset = 44; 3981 static const intptr_t kUncheckedEntryOffset = 44;
3982 #elif defined(TARGET_ARCH_ARM) 3982 #elif defined(TARGET_ARCH_ARM)
3983 static const intptr_t kCheckedEntryOffset = 3 * Instr::kInstrSize; 3983 static const intptr_t kCheckedEntryOffset = 12;
3984 static const intptr_t kUncheckedEntryOffset = 9 * Instr::kInstrSize; 3984 static const intptr_t kUncheckedEntryOffset = 36;
3985 #elif defined(TARGET_ARCH_ARM64) 3985 #elif defined(TARGET_ARCH_ARM64)
3986 static const intptr_t kCheckedEntryOffset = 6 * Instr::kInstrSize; 3986 static const intptr_t kCheckedEntryOffset = 24;
3987 static const intptr_t kUncheckedEntryOffset = 12 * Instr::kInstrSize; 3987 static const intptr_t kUncheckedEntryOffset = 48;
3988 #elif defined(TARGET_ARCH_MIPS) 3988 #elif defined(TARGET_ARCH_MIPS)
3989 static const intptr_t kCheckedEntryOffset = 4 * Instr::kInstrSize; 3989 static const intptr_t kCheckedEntryOffset = 16;
3990 static const intptr_t kUncheckedEntryOffset = 14 * Instr::kInstrSize; 3990 static const intptr_t kUncheckedEntryOffset = 56;
3991 #elif defined(TARGET_ARCH_DBC) 3991 #elif defined(TARGET_ARCH_DBC)
3992 static const intptr_t kCheckedEntryOffset = 0; 3992 static const intptr_t kCheckedEntryOffset = 0;
3993 static const intptr_t kUncheckedEntryOffset = 0; 3993 static const intptr_t kUncheckedEntryOffset = 0;
3994 #else 3994 #else
3995 #error Missing entry offsets for current architecture 3995 #error Missing entry offsets for current architecture
3996 #endif 3996 #endif
3997 3997
3998 static uword UncheckedEntryPoint(RawInstructions* instr) { 3998 static uword UncheckedEntryPoint(RawInstructions* instr) {
3999 return PayloadStart(instr) + kUncheckedEntryOffset; 3999 return PayloadStart(instr) + kUncheckedEntryOffset;
4000 } 4000 }
(...skipping 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after
8778 8778
8779 inline void TypeArguments::SetHash(intptr_t value) const { 8779 inline void TypeArguments::SetHash(intptr_t value) const {
8780 // This is only safe because we create a new Smi, which does not cause 8780 // This is only safe because we create a new Smi, which does not cause
8781 // heap allocation. 8781 // heap allocation.
8782 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8782 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8783 } 8783 }
8784 8784
8785 } // namespace dart 8785 } // namespace dart
8786 8786
8787 #endif // VM_OBJECT_H_ 8787 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698