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

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

Issue 608913002: Track references to allocation stubs via static_calls_table, instead of keeping two referencers ali… (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_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 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 1991
1992 __ Bind(&slow_path); 1992 __ Bind(&slow_path);
1993 Isolate* isolate = compiler->isolate(); 1993 Isolate* isolate = compiler->isolate();
1994 const Code& stub = Code::Handle( 1994 const Code& stub = Code::Handle(
1995 isolate, isolate->stub_code()->GetAllocateArrayStub()); 1995 isolate, isolate->stub_code()->GetAllocateArrayStub());
1996 const ExternalLabel label(stub.EntryPoint()); 1996 const ExternalLabel label(stub.EntryPoint());
1997 compiler->GenerateCall(token_pos(), 1997 compiler->GenerateCall(token_pos(),
1998 &label, 1998 &label,
1999 RawPcDescriptors::kOther, 1999 RawPcDescriptors::kOther,
2000 locs()); 2000 locs());
2001 compiler->AddStubCallTarget(stub);
2001 __ Bind(&done); 2002 __ Bind(&done);
2002 ASSERT(locs()->out(0).reg() == kResultReg); 2003 ASSERT(locs()->out(0).reg() == kResultReg);
2003 } 2004 }
2004 2005
2005 2006
2006 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, 2007 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate,
2007 bool opt) const { 2008 bool opt) const {
2008 const intptr_t kNumInputs = 1; 2009 const intptr_t kNumInputs = 1;
2009 const intptr_t kNumTemps = 2010 const intptr_t kNumTemps =
2010 (IsUnboxedLoad() && opt) ? 1 : 2011 (IsUnboxedLoad() && opt) ? 1 :
(...skipping 3894 matching lines...) Expand 10 before | Expand all | Expand 10 after
5905 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5906 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5906 Isolate* isolate = compiler->isolate(); 5907 Isolate* isolate = compiler->isolate();
5907 StubCode* stub_code = isolate->stub_code(); 5908 StubCode* stub_code = isolate->stub_code();
5908 const Code& stub = Code::Handle(isolate, 5909 const Code& stub = Code::Handle(isolate,
5909 stub_code->GetAllocationStubForClass(cls())); 5910 stub_code->GetAllocationStubForClass(cls()));
5910 const ExternalLabel label(stub.EntryPoint()); 5911 const ExternalLabel label(stub.EntryPoint());
5911 compiler->GenerateCall(token_pos(), 5912 compiler->GenerateCall(token_pos(),
5912 &label, 5913 &label,
5913 RawPcDescriptors::kOther, 5914 RawPcDescriptors::kOther,
5914 locs()); 5915 locs());
5916 compiler->AddStubCallTarget(stub);
5915 __ Drop(ArgumentCount()); // Discard arguments. 5917 __ Drop(ArgumentCount()); // Discard arguments.
5916 } 5918 }
5917 5919
5918 5920
5919 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5921 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5920 ASSERT(!compiler->is_optimizing()); 5922 ASSERT(!compiler->is_optimizing());
5921 StubCode* stub_code = compiler->isolate()->stub_code(); 5923 StubCode* stub_code = compiler->isolate()->stub_code();
5922 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); 5924 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint());
5923 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5925 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5924 #if defined(DEBUG) 5926 #if defined(DEBUG)
5925 __ movq(R10, Immediate(kInvalidObjectPointer)); 5927 __ movq(R10, Immediate(kInvalidObjectPointer));
5926 __ movq(RBX, Immediate(kInvalidObjectPointer)); 5928 __ movq(RBX, Immediate(kInvalidObjectPointer));
5927 #endif 5929 #endif
5928 } 5930 }
5929 5931
5930 } // namespace dart 5932 } // namespace dart
5931 5933
5932 #undef __ 5934 #undef __
5933 5935
5934 #endif // defined TARGET_ARCH_X64 5936 #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