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

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

Issue 11970043: Improve function lookup speed by working with raw objects only. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « runtime/vm/raw_object.h ('k') | no next file » | 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) 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/stack_frame.h" 5 #include "vm/stack_frame.h"
6 6
7 #include "vm/assembler_macros.h" 7 #include "vm/assembler_macros.h"
8 #include "vm/deopt_instructions.h" 8 #include "vm/deopt_instructions.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 return func_.raw(); 308 return func_.raw();
309 } 309 }
310 // Iterate over the deopt instructions and determine the inlined 310 // Iterate over the deopt instructions and determine the inlined
311 // functions if any and iterate over them. 311 // functions if any and iterate over them.
312 ASSERT(deopt_info_.Length() != 0); 312 ASSERT(deopt_info_.Length() != 0);
313 while (index_ < deopt_info_.Length()) { 313 while (index_ < deopt_info_.Length()) {
314 intptr_t cur_index = index_; 314 intptr_t cur_index = index_;
315 index_ += 1; 315 index_ += 1;
316 intptr_t deopt_instr = deopt_info_.Instruction(cur_index); 316 intptr_t deopt_instr = deopt_info_.Instruction(cur_index);
317 ASSERT(deopt_instr != DeoptInstr::kRetBeforeAddress); 317 ASSERT(deopt_instr != DeoptInstr::kRetBeforeAddress);
318 if ((deopt_instr == DeoptInstr::kRetAfterAddress)) { 318 if (deopt_instr == DeoptInstr::kRetAfterAddress) {
319 intptr_t deopt_from_index = deopt_info_.FromIndex(cur_index); 319 intptr_t deopt_from_index = deopt_info_.FromIndex(cur_index);
320 *pc = DeoptInstr::GetRetAfterAddress(deopt_from_index, 320 *pc = DeoptInstr::GetRetAfterAddress(deopt_from_index,
321 object_table_, 321 object_table_,
322 &func_); 322 &func_);
323 return func_.raw(); 323 return func_.raw();
324 } 324 }
325 } 325 }
326 index_ = -1; 326 index_ = -1;
327 return Function::null(); 327 return Function::null();
328 } 328 }
329 329
330 } // namespace dart 330 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698