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

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

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | runtime/vm/il_printer.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')
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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 Error& error = Error::Handle(isolate); 233 Error& error = Error::Handle(isolate);
234 error = isolate->object_store()->sticky_error(); 234 error = isolate->object_store()->sticky_error();
235 isolate->object_store()->clear_sticky_error(); 235 isolate->object_store()->clear_sticky_error();
236 return error.raw(); 236 return error.raw();
237 } 237 }
238 UNREACHABLE(); 238 UNREACHABLE();
239 return Error::null(); 239 return Error::null();
240 } 240 }
241 241
242 242
243
244 // Return false if bailed out. 243 // Return false if bailed out.
245 static bool CompileParsedFunctionHelper(ParsedFunction* parsed_function, 244 static bool CompileParsedFunctionHelper(ParsedFunction* parsed_function,
246 bool optimized, 245 bool optimized,
247 intptr_t osr_id) { 246 intptr_t osr_id) {
248 const Function& function = parsed_function->function(); 247 const Function& function = parsed_function->function();
249 if (optimized && !function.IsOptimizable()) { 248 if (optimized && !function.IsOptimizable()) {
250 return false; 249 return false;
251 } 250 }
252 TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer); 251 TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer);
253 bool is_compiled = false; 252 bool is_compiled = false;
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 const Object& result = 978 const Object& result =
980 Object::Handle(isolate->object_store()->sticky_error()); 979 Object::Handle(isolate->object_store()->sticky_error());
981 isolate->object_store()->clear_sticky_error(); 980 isolate->object_store()->clear_sticky_error();
982 return result.raw(); 981 return result.raw();
983 } 982 }
984 UNREACHABLE(); 983 UNREACHABLE();
985 return Object::null(); 984 return Object::null();
986 } 985 }
987 986
988 } // namespace dart 987 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/il_printer.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698