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

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

Issue 13474009: Implements optional parameter handling in MIPS vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
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/code_patcher.h" 8 #include "vm/code_patcher.h"
9 9
10 #include "vm/instructions.h" 10 #include "vm/instructions.h"
(...skipping 29 matching lines...) Expand all
40 void CodePatcher::InsertCallAt(uword start, uword target) { 40 void CodePatcher::InsertCallAt(uword start, uword target) {
41 UNIMPLEMENTED(); 41 UNIMPLEMENTED();
42 } 42 }
43 43
44 44
45 uword CodePatcher::GetInstanceCallAt(uword return_address, 45 uword CodePatcher::GetInstanceCallAt(uword return_address,
46 const Code& code, 46 const Code& code,
47 ICData* ic_data, 47 ICData* ic_data,
48 Array* arguments_descriptor) { 48 Array* arguments_descriptor) {
49 ASSERT(code.ContainsInstructionAt(return_address)); 49 ASSERT(code.ContainsInstructionAt(return_address));
50 UNIMPLEMENTED(); 50 CallPattern call(return_address, code);
51 return 0; 51 if (ic_data != NULL) {
52 *ic_data = call.IcData();
53 }
54 if (arguments_descriptor != NULL) {
55 *arguments_descriptor = call.ArgumentsDescriptor();
56 }
57 return call.TargetAddress();
52 } 58 }
53 59
54 60
55 intptr_t CodePatcher::InstanceCallSizeInBytes() { 61 intptr_t CodePatcher::InstanceCallSizeInBytes() {
56 UNIMPLEMENTED(); 62 // The instance call instruction sequence has a variable size on ARM.
regis 2013/04/03 21:12:39 ARM -> MIPS
zra 2013/04/03 21:41:00 Done.
63 UNREACHABLE();
57 return 0; 64 return 0;
58 } 65 }
59 66
60 } // namespace dart 67 } // namespace dart
61 68
62 #endif // defined TARGET_ARCH_MIPS 69 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698