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

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

Issue 11642003: Create and cache method extraction stub in the ICData. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove hand written assembly stub Created 7 years, 11 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/disassembler.h" 9 #include "vm/disassembler.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
11 #include "vm/symbols.h"
Ivan Posva 2013/01/17 08:03:20 Why is this needed?
Vyacheslav Egorov (Google) 2013/01/17 12:46:38 Accidental edit. Fully reverted.
11 #include "vm/virtual_memory.h" 12 #include "vm/virtual_memory.h"
12 #include "vm/visitor.h" 13 #include "vm/visitor.h"
13 14
14 namespace dart { 15 namespace dart {
15 16
16 DEFINE_FLAG(bool, disassemble_stubs, false, "Disassemble generated stubs."); 17 DEFINE_FLAG(bool, disassemble_stubs, false, "Disassemble generated stubs.");
17 18
18 #define STUB_CODE_DECLARE(name) \ 19 #define STUB_CODE_DECLARE(name) \
19 StubEntry* StubCode::name##_entry_ = NULL; 20 StubEntry* StubCode::name##_entry_ = NULL;
20 VM_STUB_CODE_LIST(STUB_CODE_DECLARE); 21 VM_STUB_CODE_LIST(STUB_CODE_DECLARE);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 VM_STUB_CODE_LIST(STUB_CODE_TESTER); 164 VM_STUB_CODE_LIST(STUB_CODE_TESTER);
164 Isolate* isolate = Isolate::Current(); 165 Isolate* isolate = Isolate::Current();
165 if ((isolate != NULL) && (isolate->stub_code() != NULL)) { 166 if ((isolate != NULL) && (isolate->stub_code() != NULL)) {
166 STUB_CODE_LIST(STUB_CODE_TESTER); 167 STUB_CODE_LIST(STUB_CODE_TESTER);
167 } 168 }
168 #undef STUB_CODE_TESTER 169 #undef STUB_CODE_TESTER
169 return NULL; 170 return NULL;
170 } 171 }
171 172
172 } // namespace dart 173 } // namespace dart
OLDNEW
« runtime/vm/parser.cc ('K') | « runtime/vm/raw_object.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698