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

Side by Side Diff: runtime/vm/assembler_arm64.cc

Issue 668193002: Remove isolate pointer from context objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed initialization order bug Created 6 years, 1 month 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 | « no previous file | runtime/vm/assembler_x64.cc » ('j') | runtime/vm/dart.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const Smi& vacant = Smi::Handle(Smi::New(0xfa >> kSmiTagShift)); 54 const Smi& vacant = Smi::Handle(Smi::New(0xfa >> kSmiTagShift));
55 StubCode* stub_code = Isolate::Current()->stub_code(); 55 StubCode* stub_code = Isolate::Current()->stub_code();
56 56
57 if (stub_code->UpdateStoreBuffer_entry() != NULL) { 57 if (stub_code->UpdateStoreBuffer_entry() != NULL) {
58 FindExternalLabel(&stub_code->UpdateStoreBufferLabel(), kNotPatchable); 58 FindExternalLabel(&stub_code->UpdateStoreBufferLabel(), kNotPatchable);
59 } else { 59 } else {
60 object_pool_.Add(vacant, Heap::kOld); 60 object_pool_.Add(vacant, Heap::kOld);
61 patchable_pool_entries_.Add(kNotPatchable); 61 patchable_pool_entries_.Add(kNotPatchable);
62 } 62 }
63 63
64 if (StubCode::CallToRuntime_entry() != NULL) { 64 if (stub_code->CallToRuntime_entry() != NULL) {
65 FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable); 65 FindExternalLabel(&stub_code->CallToRuntimeLabel(), kNotPatchable);
66 } else { 66 } else {
67 object_pool_.Add(vacant, Heap::kOld); 67 object_pool_.Add(vacant, Heap::kOld);
68 patchable_pool_entries_.Add(kNotPatchable); 68 patchable_pool_entries_.Add(kNotPatchable);
69 } 69 }
70 70
71 // Create fixed object pool entries for debugger stubs. 71 // Create fixed object pool entries for debugger stubs.
72 if (StubCode::ICCallBreakpoint_entry() != NULL) { 72 if (stub_code->ICCallBreakpoint_entry() != NULL) {
73 intptr_t index = 73 intptr_t index =
74 FindExternalLabel(&StubCode::ICCallBreakpointLabel(), 74 FindExternalLabel(&stub_code->ICCallBreakpointLabel(),
75 kNotPatchable); 75 kNotPatchable);
76 ASSERT(index == kICCallBreakpointCPIndex); 76 ASSERT(index == kICCallBreakpointCPIndex);
77 } else { 77 } else {
78 object_pool_.Add(vacant, Heap::kOld); 78 object_pool_.Add(vacant, Heap::kOld);
79 patchable_pool_entries_.Add(kNotPatchable); 79 patchable_pool_entries_.Add(kNotPatchable);
80 } 80 }
81 if (StubCode::ClosureCallBreakpoint_entry() != NULL) { 81 if (stub_code->ClosureCallBreakpoint_entry() != NULL) {
82 intptr_t index = 82 intptr_t index =
83 FindExternalLabel(&StubCode::ClosureCallBreakpointLabel(), 83 FindExternalLabel(&stub_code->ClosureCallBreakpointLabel(),
84 kNotPatchable); 84 kNotPatchable);
85 ASSERT(index == kClosureCallBreakpointCPIndex); 85 ASSERT(index == kClosureCallBreakpointCPIndex);
86 } else { 86 } else {
87 object_pool_.Add(vacant, Heap::kOld); 87 object_pool_.Add(vacant, Heap::kOld);
88 patchable_pool_entries_.Add(kNotPatchable); 88 patchable_pool_entries_.Add(kNotPatchable);
89 } 89 }
90 if (StubCode::RuntimeCallBreakpoint_entry() != NULL) { 90 if (stub_code->RuntimeCallBreakpoint_entry() != NULL) {
91 intptr_t index = 91 intptr_t index =
92 FindExternalLabel(&StubCode::RuntimeCallBreakpointLabel(), 92 FindExternalLabel(&stub_code->RuntimeCallBreakpointLabel(),
93 kNotPatchable); 93 kNotPatchable);
94 ASSERT(index == kRuntimeCallBreakpointCPIndex); 94 ASSERT(index == kRuntimeCallBreakpointCPIndex);
95 } else { 95 } else {
96 object_pool_.Add(vacant, Heap::kOld); 96 object_pool_.Add(vacant, Heap::kOld);
97 patchable_pool_entries_.Add(kNotPatchable); 97 patchable_pool_entries_.Add(kNotPatchable);
98 } 98 }
99 } 99 }
100 } 100 }
101 101
102 102
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 add(base, array, Operand(index, LSL, shift)); 1512 add(base, array, Operand(index, LSL, shift));
1513 } 1513 }
1514 const OperandSize size = Address::OperandSizeFor(cid); 1514 const OperandSize size = Address::OperandSizeFor(cid);
1515 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); 1515 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size));
1516 return Address(base, offset, Address::Offset, size); 1516 return Address(base, offset, Address::Offset, size);
1517 } 1517 }
1518 1518
1519 } // namespace dart 1519 } // namespace dart
1520 1520
1521 #endif // defined TARGET_ARCH_ARM64 1521 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_x64.cc » ('j') | runtime/vm/dart.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698