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

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

Issue 1292723002: Enable allocation tracing for classes owned by vm isolate (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « 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 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 deopt_id(), 2112 deopt_id(),
2113 kAllocateArrayRuntimeEntry, 2113 kAllocateArrayRuntimeEntry,
2114 2, 2114 2,
2115 locs()); 2115 locs());
2116 __ Drop(2); 2116 __ Drop(2);
2117 __ Pop(kResultReg); 2117 __ Pop(kResultReg);
2118 __ Bind(&done); 2118 __ Bind(&done);
2119 return; 2119 return;
2120 } 2120 }
2121 } 2121 }
2122 const Code& stub = Code::Handle(compiler->isolate(),
2123 StubCode::AllocateArray_entry()->code());
2124 compiler->AddStubCallTarget(stub);
2122 compiler->GenerateCall(token_pos(), 2125 compiler->GenerateCall(token_pos(),
2123 *StubCode::AllocateArray_entry(), 2126 *StubCode::AllocateArray_entry(),
2124 RawPcDescriptors::kOther, 2127 RawPcDescriptors::kOther,
2125 locs()); 2128 locs());
2126 ASSERT(locs()->out(0).reg() == kResultReg); 2129 ASSERT(locs()->out(0).reg() == kResultReg);
2127 } 2130 }
2128 2131
2129 2132
2130 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, 2133 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone,
2131 bool opt) const { 2134 bool opt) const {
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { 2390 virtual void EmitNativeCode(FlowGraphCompiler* compiler) {
2388 __ Comment("AllocateContextSlowPath"); 2391 __ Comment("AllocateContextSlowPath");
2389 __ Bind(entry_label()); 2392 __ Bind(entry_label());
2390 2393
2391 LocationSummary* locs = instruction_->locs(); 2394 LocationSummary* locs = instruction_->locs();
2392 locs->live_registers()->Remove(locs->out(0)); 2395 locs->live_registers()->Remove(locs->out(0));
2393 2396
2394 compiler->SaveLiveRegisters(locs); 2397 compiler->SaveLiveRegisters(locs);
2395 2398
2396 __ LoadImmediate(R1, instruction_->num_context_variables()); 2399 __ LoadImmediate(R1, instruction_->num_context_variables());
2400 const Code& stub = Code::Handle(compiler->isolate(),
2401 StubCode::AllocateContext_entry()->code());
2402 compiler->AddStubCallTarget(stub);
2397 compiler->GenerateCall(instruction_->token_pos(), 2403 compiler->GenerateCall(instruction_->token_pos(),
2398 *StubCode::AllocateContext_entry(), 2404 *StubCode::AllocateContext_entry(),
2399 RawPcDescriptors::kOther, 2405 RawPcDescriptors::kOther,
2400 locs); 2406 locs);
2401 ASSERT(instruction_->locs()->out(0).reg() == R0); 2407 ASSERT(instruction_->locs()->out(0).reg() == R0);
2402 compiler->RestoreLiveRegisters(instruction_->locs()); 2408 compiler->RestoreLiveRegisters(instruction_->locs());
2403 __ b(exit_label()); 2409 __ b(exit_label());
2404 } 2410 }
2405 2411
2406 private: 2412 private:
(...skipping 3202 matching lines...) Expand 10 before | Expand all | Expand 10 after
5609 1, 5615 1,
5610 locs()); 5616 locs());
5611 __ Drop(1); 5617 __ Drop(1);
5612 __ Pop(result); 5618 __ Pop(result);
5613 } 5619 }
5614 5620
5615 5621
5616 } // namespace dart 5622 } // namespace dart
5617 5623
5618 #endif // defined TARGET_ARCH_ARM64 5624 #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