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

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

Issue 12439005: Implement leaf runtime call stub on ARM and corresponding call redirection (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/constants_mips.h"
8 #include "vm/instructions.h" 9 #include "vm/instructions.h"
9 #include "vm/object.h" 10 #include "vm/object.h"
10 11
11 namespace dart { 12 namespace dart {
12 13
13 bool InstructionPattern::TestBytesWith(const int* data, int num_bytes) const { 14 CallPattern::CallPattern(uword pc, const Code& code)
15 : end_(reinterpret_cast<uword*>(pc)),
16 pool_index_(DecodePoolIndex()),
17 object_pool_(Array::Handle(code.ObjectPool())) { }
18
19
20 uword CallPattern::Back(int n) const {
21 ASSERT(n > 0);
22 return *(end_ - n);
23 }
24
25
26 int CallPattern::DecodePoolIndex() {
14 UNIMPLEMENTED(); 27 UNIMPLEMENTED();
15 return false; 28 return 0;
16 } 29 }
17 30
18 31
19 uword CallPattern::TargetAddress() const { 32 uword CallPattern::TargetAddress() const {
20 UNIMPLEMENTED(); 33 UNIMPLEMENTED();
21 return 0; 34 return 0;
22 } 35 }
23 36
24 37
38 void CallPattern::SetTargetAddress(uword target_address) const {
39 UNIMPLEMENTED();
40 }
41
42
43 JumpPattern::JumpPattern(uword pc) : pc_(pc) { }
44
45
46 bool JumpPattern::IsValid() const {
47 UNIMPLEMENTED();
48 return false;
49 }
50
51
25 uword JumpPattern::TargetAddress() const { 52 uword JumpPattern::TargetAddress() const {
26 UNIMPLEMENTED(); 53 UNIMPLEMENTED();
27 return 0; 54 return 0;
28 } 55 }
29 56
30 57
31 58 void JumpPattern::SetTargetAddress(uword target_address) const {
32 void CallPattern::SetTargetAddress(uword target) const {
33 UNIMPLEMENTED(); 59 UNIMPLEMENTED();
34 } 60 }
35 61
36
37 void JumpPattern::SetTargetAddress(uword target) const {
38 UNIMPLEMENTED();
39 }
40
41
42
43 const int* CallPattern::pattern() const {
44 UNIMPLEMENTED();
45 return NULL;
46 }
47
48
49 const int* JumpPattern::pattern() const {
50 UNIMPLEMENTED();
51 return NULL;
52 }
53
54 } // namespace dart 62 } // namespace dart
55 63
56 #endif // defined TARGET_ARCH_MIPS 64 #endif // defined TARGET_ARCH_MIPS
57 65
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698