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

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

Issue 17131002: Enables language tests for SIMMIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/assembler_mips.cc ('k') | runtime/vm/constants_mips.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_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::PatchInstanceCallAt(uword return_address, 40 void CodePatcher::PatchInstanceCallAt(uword return_address,
41 const Code& code, 41 const Code& code,
42 uword new_target) { 42 uword new_target) {
43 ASSERT(code.ContainsInstructionAt(return_address)); 43 ASSERT(code.ContainsInstructionAt(return_address));
44 CallPattern call(return_address, code); 44 CallPattern call(return_address, code);
45 call.SetTargetAddress(new_target); 45 call.SetTargetAddress(new_target);
46 } 46 }
47 47
48 48
49 void CodePatcher::InsertCallAt(uword start, uword target) { 49 void CodePatcher::InsertCallAt(uword start, uword target) {
50 UNIMPLEMENTED(); 50 // The inserted call should not overlap the lazy deopt jump code.
51 ASSERT(start + CallPattern::kFixedLengthInBytes <= target);
52 CallPattern::InsertAt(start, target);
51 } 53 }
52 54
53 55
54 uword CodePatcher::GetInstanceCallAt(uword return_address, 56 uword CodePatcher::GetInstanceCallAt(uword return_address,
55 const Code& code, 57 const Code& code,
56 ICData* ic_data, 58 ICData* ic_data,
57 Array* arguments_descriptor) { 59 Array* arguments_descriptor) {
58 ASSERT(code.ContainsInstructionAt(return_address)); 60 ASSERT(code.ContainsInstructionAt(return_address));
59 CallPattern call(return_address, code); 61 CallPattern call(return_address, code);
60 if (ic_data != NULL) { 62 if (ic_data != NULL) {
61 *ic_data = call.IcData(); 63 *ic_data = call.IcData();
62 } 64 }
63 if (arguments_descriptor != NULL) { 65 if (arguments_descriptor != NULL) {
64 *arguments_descriptor = call.ArgumentsDescriptor(); 66 *arguments_descriptor = call.ArgumentsDescriptor();
65 } 67 }
66 return call.TargetAddress(); 68 return call.TargetAddress();
67 } 69 }
68 70
69 71
70 intptr_t CodePatcher::InstanceCallSizeInBytes() { 72 intptr_t CodePatcher::InstanceCallSizeInBytes() {
71 // The instance call instruction sequence has a variable size on MIPS. 73 // The instance call instruction sequence has a variable size on MIPS.
72 UNREACHABLE(); 74 UNREACHABLE();
73 return 0; 75 return 0;
74 } 76 }
75 77
76 } // namespace dart 78 } // namespace dart
77 79
78 #endif // defined TARGET_ARCH_MIPS 80 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/constants_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698