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

Side by Side Diff: src/compiler.cc

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: fix test nits Created 4 years, 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/ast/ast-numbering.h" 9 #include "src/ast/ast-numbering.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } 422 }
423 423
424 // It's very important that recompiles do not alter the structure of the type 424 // It's very important that recompiles do not alter the structure of the type
425 // feedback vector. Verify that the structure fits the function literal. 425 // feedback vector. Verify that the structure fits the function literal.
426 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( 426 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom(
427 info->literal()->feedback_vector_spec())); 427 info->literal()->feedback_vector_spec()));
428 } 428 }
429 429
430 bool UseIgnition(CompilationInfo* info) { 430 bool UseIgnition(CompilationInfo* info) {
431 if (info->is_debug()) return false; 431 if (info->is_debug()) return false;
432 if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { 432 if (info->shared_info()->is_resumable() && !FLAG_ignition_generators) {
433 return false; 433 return false;
434 } 434 }
435 435
436 // Checks whether top level functions should be passed by the filter. 436 // Checks whether top level functions should be passed by the filter.
437 if (info->shared_info()->is_toplevel()) { 437 if (info->shared_info()->is_toplevel()) {
438 Vector<const char> filter = CStrVector(FLAG_ignition_filter); 438 Vector<const char> filter = CStrVector(FLAG_ignition_filter);
439 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); 439 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*');
440 } 440 }
441 441
442 // Finally respect the filter. 442 // Finally respect the filter.
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 MaybeHandle<Code> code; 1745 MaybeHandle<Code> code;
1746 if (cached.code != nullptr) code = handle(cached.code); 1746 if (cached.code != nullptr) code = handle(cached.code);
1747 Handle<Context> native_context(function->context()->native_context()); 1747 Handle<Context> native_context(function->context()->native_context());
1748 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, 1748 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
1749 literals, BailoutId::None()); 1749 literals, BailoutId::None());
1750 } 1750 }
1751 } 1751 }
1752 1752
1753 } // namespace internal 1753 } // namespace internal
1754 } // namespace v8 1754 } // namespace v8
OLDNEW
« src/builtins.cc ('K') | « src/code-stubs.h ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698