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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_mips.cc ('k') | runtime/vm/object.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2120 2, 2120 2,
2121 locs()); 2121 locs());
2122 __ Drop(2); 2122 __ Drop(2);
2123 __ popq(kResultReg); 2123 __ popq(kResultReg);
2124 __ Bind(&done); 2124 __ Bind(&done);
2125 return; 2125 return;
2126 } 2126 }
2127 } 2127 }
2128 2128
2129 __ Bind(&slow_path); 2129 __ Bind(&slow_path);
2130 const Code& stub = Code::Handle(compiler->isolate(),
2131 StubCode::AllocateArray_entry()->code());
2132 compiler->AddStubCallTarget(stub);
2130 compiler->GenerateCall(token_pos(), 2133 compiler->GenerateCall(token_pos(),
2131 *StubCode::AllocateArray_entry(), 2134 *StubCode::AllocateArray_entry(),
2132 RawPcDescriptors::kOther, 2135 RawPcDescriptors::kOther,
2133 locs()); 2136 locs());
2134 __ Bind(&done); 2137 __ Bind(&done);
2135 ASSERT(locs()->out(0).reg() == kResultReg); 2138 ASSERT(locs()->out(0).reg() == kResultReg);
2136 } 2139 }
2137 2140
2138 2141
2139 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, 2142 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone,
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { 2393 virtual void EmitNativeCode(FlowGraphCompiler* compiler) {
2391 __ Comment("AllocateContextSlowPath"); 2394 __ Comment("AllocateContextSlowPath");
2392 __ Bind(entry_label()); 2395 __ Bind(entry_label());
2393 2396
2394 LocationSummary* locs = instruction_->locs(); 2397 LocationSummary* locs = instruction_->locs();
2395 locs->live_registers()->Remove(locs->out(0)); 2398 locs->live_registers()->Remove(locs->out(0));
2396 2399
2397 compiler->SaveLiveRegisters(locs); 2400 compiler->SaveLiveRegisters(locs);
2398 2401
2399 __ LoadImmediate(R10, Immediate(instruction_->num_context_variables())); 2402 __ LoadImmediate(R10, Immediate(instruction_->num_context_variables()));
2403 const Code& stub = Code::Handle(compiler->isolate(),
2404 StubCode::AllocateContext_entry()->code());
2405 compiler->AddStubCallTarget(stub);
2400 compiler->GenerateCall(instruction_->token_pos(), 2406 compiler->GenerateCall(instruction_->token_pos(),
2401 *StubCode::AllocateContext_entry(), 2407 *StubCode::AllocateContext_entry(),
2402 RawPcDescriptors::kOther, 2408 RawPcDescriptors::kOther,
2403 locs); 2409 locs);
2404 ASSERT(instruction_->locs()->out(0).reg() == RAX); 2410 ASSERT(instruction_->locs()->out(0).reg() == RAX);
2405 compiler->RestoreLiveRegisters(instruction_->locs()); 2411 compiler->RestoreLiveRegisters(instruction_->locs());
2406 __ jmp(exit_label()); 2412 __ jmp(exit_label());
2407 } 2413 }
2408 2414
2409 private: 2415 private:
(...skipping 4020 matching lines...) Expand 10 before | Expand all | Expand 10 after
6430 __ Drop(1); 6436 __ Drop(1);
6431 __ popq(result); 6437 __ popq(result);
6432 } 6438 }
6433 6439
6434 6440
6435 } // namespace dart 6441 } // namespace dart
6436 6442
6437 #undef __ 6443 #undef __
6438 6444
6439 #endif // defined TARGET_ARCH_X64 6445 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698