| OLD | NEW | 
|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" | 
| 6 | 6 | 
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" | 
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" | 
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" | 
| 10 #include "src/frames-inl.h" | 10 #include "src/frames-inl.h" | 
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 249       function->PrintName(); | 249       function->PrintName(); | 
| 250       PrintF(" at AST id %d]\n", ast_id.ToInt()); | 250       PrintF(" at AST id %d]\n", ast_id.ToInt()); | 
| 251     } | 251     } | 
| 252     maybe_result = Compiler::GetConcurrentlyOptimizedCode(job); | 252     maybe_result = Compiler::GetConcurrentlyOptimizedCode(job); | 
| 253   } else if (IsSuitableForOnStackReplacement(isolate, function)) { | 253   } else if (IsSuitableForOnStackReplacement(isolate, function)) { | 
| 254     if (FLAG_trace_osr) { | 254     if (FLAG_trace_osr) { | 
| 255       PrintF("[OSR - Compiling: "); | 255       PrintF("[OSR - Compiling: "); | 
| 256       function->PrintName(); | 256       function->PrintName(); | 
| 257       PrintF(" at AST id %d]\n", ast_id.ToInt()); | 257       PrintF(" at AST id %d]\n", ast_id.ToInt()); | 
| 258     } | 258     } | 
| 259     maybe_result = Compiler::GetOptimizedCode( | 259     maybe_result = Compiler::GetOptimizedCodeForOSR( | 
| 260         function, mode, ast_id, | 260         function, mode, ast_id, | 
| 261         (mode == Compiler::NOT_CONCURRENT) ? frame : nullptr); | 261         (mode == Compiler::NOT_CONCURRENT) ? frame : nullptr); | 
| 262     Handle<Code> result; | 262     Handle<Code> result; | 
| 263     if (maybe_result.ToHandle(&result) && | 263     if (maybe_result.ToHandle(&result) && | 
| 264         result.is_identical_to(isolate->builtins()->InOptimizationQueue())) { | 264         result.is_identical_to(isolate->builtins()->InOptimizationQueue())) { | 
| 265       // Optimization is queued.  Return to check later. | 265       // Optimization is queued.  Return to check later. | 
| 266       return NULL; | 266       return NULL; | 
| 267     } | 267     } | 
| 268   } | 268   } | 
| 269 | 269 | 
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 402   DCHECK(is_valid_language_mode(args.smi_at(3))); | 402   DCHECK(is_valid_language_mode(args.smi_at(3))); | 
| 403   LanguageMode language_mode = static_cast<LanguageMode>(args.smi_at(3)); | 403   LanguageMode language_mode = static_cast<LanguageMode>(args.smi_at(3)); | 
| 404   DCHECK(args[4]->IsSmi()); | 404   DCHECK(args[4]->IsSmi()); | 
| 405   Handle<SharedFunctionInfo> outer_info(args.at<JSFunction>(2)->shared(), | 405   Handle<SharedFunctionInfo> outer_info(args.at<JSFunction>(2)->shared(), | 
| 406                                         isolate); | 406                                         isolate); | 
| 407   return CompileGlobalEval(isolate, args.at<String>(1), outer_info, | 407   return CompileGlobalEval(isolate, args.at<String>(1), outer_info, | 
| 408                            language_mode, args.smi_at(4)); | 408                            language_mode, args.smi_at(4)); | 
| 409 } | 409 } | 
| 410 }  // namespace internal | 410 }  // namespace internal | 
| 411 }  // namespace v8 | 411 }  // namespace v8 | 
| OLD | NEW | 
|---|