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

Side by Side Diff: vm/stub_code.cc

Issue 8379013: Implement new inline cache. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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 | « vm/stub_code.h ('k') | vm/stub_code_arm.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/stub_code.h" 5 #include "vm/stub_code.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/disassembler.h" 9 #include "vm/disassembler.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #undef STUB_CODE_VISIT_OBJECT_POINTER 94 #undef STUB_CODE_VISIT_OBJECT_POINTER
95 } 95 }
96 96
97 97
98 bool StubCode::InInvocationStub(uword pc) { 98 bool StubCode::InInvocationStub(uword pc) {
99 return ((pc >= InvokeDartCodeEntryPoint()) && 99 return ((pc >= InvokeDartCodeEntryPoint()) &&
100 (pc < (InvokeDartCodeEntryPoint() + InvokeDartCodeSize()))); 100 (pc < (InvokeDartCodeEntryPoint() + InvokeDartCodeSize())));
101 } 101 }
102 102
103 103
104 bool StubCode::InCallInstanceFunctionStubCode(uword pc) {
105 if ((pc >= CallInstanceFunctionEntryPoint()) &&
106 (pc < (CallInstanceFunctionEntryPoint() + CallInstanceFunctionSize()))) {
107 return true;
108 }
109 return false;
110 }
111
112
113 bool StubCode::InStubCallToRuntimeStubCode(uword pc) { 104 bool StubCode::InStubCallToRuntimeStubCode(uword pc) {
114 if ((pc >= StubCallToRuntimeEntryPoint()) && 105 if ((pc >= StubCallToRuntimeEntryPoint()) &&
115 (pc < (StubCallToRuntimeEntryPoint() + StubCallToRuntimeSize()))) { 106 (pc < (StubCallToRuntimeEntryPoint() + StubCallToRuntimeSize()))) {
116 return true; 107 return true;
117 } 108 }
118 return false; 109 return false;
119 } 110 }
120 111
121 112
122 RawCode* StubCode::GetAllocationStubForClass(const Class& cls) { 113 RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 VM_STUB_CODE_LIST(STUB_CODE_TESTER); 172 VM_STUB_CODE_LIST(STUB_CODE_TESTER);
182 Isolate* isolate = Isolate::Current(); 173 Isolate* isolate = Isolate::Current();
183 if ((isolate != NULL) && (isolate->stub_code() != NULL)) { 174 if ((isolate != NULL) && (isolate->stub_code() != NULL)) {
184 STUB_CODE_LIST(STUB_CODE_TESTER); 175 STUB_CODE_LIST(STUB_CODE_TESTER);
185 } 176 }
186 #undef STUB_CODE_TESTER 177 #undef STUB_CODE_TESTER
187 return NULL; 178 return NULL;
188 } 179 }
189 180
190 } // namespace dart 181 } // namespace dart
OLDNEW
« no previous file with comments | « vm/stub_code.h ('k') | vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698