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

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

Issue 668193002: Remove isolate pointer from context objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.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) 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" // Needed here to get TARGET_ARCH_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 __ TryAllocateArray(kContextCid, instance_size, slow_path->entry_label(), 2385 __ TryAllocateArray(kContextCid, instance_size, slow_path->entry_label(),
2386 result, // instance 2386 result, // instance
2387 temp0, 2387 temp0,
2388 temp1, 2388 temp1,
2389 temp2); 2389 temp2);
2390 2390
2391 // Setup up number of context variables field. 2391 // Setup up number of context variables field.
2392 __ LoadImmediate(temp0, num_context_variables(), PP); 2392 __ LoadImmediate(temp0, num_context_variables(), PP);
2393 __ str(temp0, FieldAddress(result, Context::num_variables_offset())); 2393 __ str(temp0, FieldAddress(result, Context::num_variables_offset()));
2394 2394
2395 // Setup isolate field.
2396 __ ldr(temp0, FieldAddress(CTX, Context::isolate_offset()));
2397 __ str(temp0, FieldAddress(result, Context::isolate_offset()));
2398
2399 __ Bind(slow_path->exit_label()); 2395 __ Bind(slow_path->exit_label());
2400 } 2396 }
2401 2397
2402 2398
2403 LocationSummary* AllocateContextInstr::MakeLocationSummary(Isolate* isolate, 2399 LocationSummary* AllocateContextInstr::MakeLocationSummary(Isolate* isolate,
2404 bool opt) const { 2400 bool opt) const {
2405 const intptr_t kNumInputs = 0; 2401 const intptr_t kNumInputs = 0;
2406 const intptr_t kNumTemps = 1; 2402 const intptr_t kNumTemps = 1;
2407 LocationSummary* locs = new(isolate) LocationSummary( 2403 LocationSummary* locs = new(isolate) LocationSummary(
2408 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); 2404 isolate, kNumInputs, kNumTemps, LocationSummary::kCall);
(...skipping 3197 matching lines...) Expand 10 before | Expand all | Expand 10 after
5606 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5602 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5607 #if defined(DEBUG) 5603 #if defined(DEBUG)
5608 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); 5604 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP);
5609 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); 5605 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP);
5610 #endif 5606 #endif
5611 } 5607 }
5612 5608
5613 } // namespace dart 5609 } // namespace dart
5614 5610
5615 #endif // defined TARGET_ARCH_ARM64 5611 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698