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

Side by Side Diff: src/runtime/runtime-compiler.cc

Issue 1667693002: [interpreter] do not serialize bytecode for snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: turn flag off Created 4 years, 10 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
« no previous file with comments | « src/profiler/heap-snapshot-generator.cc ('k') | src/snapshot/serialize.h » ('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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (code->kind() != Code::FUNCTION && 64 if (code->kind() != Code::FUNCTION &&
65 code->kind() != Code::OPTIMIZED_FUNCTION) { 65 code->kind() != Code::OPTIMIZED_FUNCTION) {
66 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 66 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
67 isolate, code, Compiler::GetUnoptimizedCode(function)); 67 isolate, code, Compiler::GetUnoptimizedCode(function));
68 } 68 }
69 function->ReplaceCode(*code); 69 function->ReplaceCode(*code);
70 } 70 }
71 71
72 DCHECK(function->code()->kind() == Code::FUNCTION || 72 DCHECK(function->code()->kind() == Code::FUNCTION ||
73 function->code()->kind() == Code::OPTIMIZED_FUNCTION || 73 function->code()->kind() == Code::OPTIMIZED_FUNCTION ||
74 (function->code()->is_interpreter_entry_trampoline() &&
75 function->shared()->HasBytecodeArray()) ||
74 function->IsInOptimizationQueue()); 76 function->IsInOptimizationQueue());
75 return function->code(); 77 return function->code();
76 } 78 }
77 79
78 } // namespace 80 } // namespace
79 81
80 82
81 RUNTIME_FUNCTION(Runtime_CompileOptimized_Concurrent) { 83 RUNTIME_FUNCTION(Runtime_CompileOptimized_Concurrent) {
82 HandleScope scope(isolate); 84 HandleScope scope(isolate);
83 DCHECK(args.length() == 1); 85 DCHECK(args.length() == 1);
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 DCHECK(is_valid_language_mode(args.smi_at(3))); 425 DCHECK(is_valid_language_mode(args.smi_at(3)));
424 LanguageMode language_mode = static_cast<LanguageMode>(args.smi_at(3)); 426 LanguageMode language_mode = static_cast<LanguageMode>(args.smi_at(3));
425 DCHECK(args[4]->IsSmi()); 427 DCHECK(args[4]->IsSmi());
426 Handle<SharedFunctionInfo> outer_info(args.at<JSFunction>(2)->shared(), 428 Handle<SharedFunctionInfo> outer_info(args.at<JSFunction>(2)->shared(),
427 isolate); 429 isolate);
428 return CompileGlobalEval(isolate, args.at<String>(1), outer_info, 430 return CompileGlobalEval(isolate, args.at<String>(1), outer_info,
429 language_mode, args.smi_at(4)); 431 language_mode, args.smi_at(4));
430 } 432 }
431 } // namespace internal 433 } // namespace internal
432 } // namespace v8 434 } // namespace v8
OLDNEW
« no previous file with comments | « src/profiler/heap-snapshot-generator.cc ('k') | src/snapshot/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698