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

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

Issue 600243002: Patchable AllocateArray stub, like instance allocation stubs. (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_ia32.cc ('k') | runtime/vm/intermediate_language_x64.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) 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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 2, 2093 2,
2094 locs()); 2094 locs());
2095 __ Drop(2); 2095 __ Drop(2);
2096 __ Pop(kResultReg); 2096 __ Pop(kResultReg);
2097 __ Bind(&done); 2097 __ Bind(&done);
2098 return; 2098 return;
2099 } 2099 }
2100 } 2100 }
2101 2101
2102 __ Bind(&slow_path); 2102 __ Bind(&slow_path);
2103 StubCode* stub_code = compiler->isolate()->stub_code(); 2103 Isolate* isolate = compiler->isolate();
2104 const Code& stub = Code::Handle(
2105 isolate, isolate->stub_code()->GetAllocateArrayStub());
2106 const ExternalLabel label(stub.EntryPoint());
2104 compiler->GenerateCall(token_pos(), 2107 compiler->GenerateCall(token_pos(),
2105 &stub_code->AllocateArrayLabel(), 2108 &label,
2106 RawPcDescriptors::kOther, 2109 RawPcDescriptors::kOther,
2107 locs()); 2110 locs());
2108 __ Bind(&done); 2111 __ Bind(&done);
2109 ASSERT(locs()->out(0).reg() == kResultReg); 2112 ASSERT(locs()->out(0).reg() == kResultReg);
2110 } 2113 }
2111 2114
2112 2115
2113 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate, 2116 LocationSummary* LoadFieldInstr::MakeLocationSummary(Isolate* isolate,
2114 bool opt) const { 2117 bool opt) const {
2115 const intptr_t kNumInputs = 1; 2118 const intptr_t kNumInputs = 1;
(...skipping 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after
4926 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 4929 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
4927 #if defined(DEBUG) 4930 #if defined(DEBUG)
4928 __ LoadImmediate(S4, kInvalidObjectPointer); 4931 __ LoadImmediate(S4, kInvalidObjectPointer);
4929 __ LoadImmediate(S5, kInvalidObjectPointer); 4932 __ LoadImmediate(S5, kInvalidObjectPointer);
4930 #endif 4933 #endif
4931 } 4934 }
4932 4935
4933 } // namespace dart 4936 } // namespace dart
4934 4937
4935 #endif // defined TARGET_ARCH_MIPS 4938 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698