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

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: remove weird arrow-generator thing 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
« no previous file with comments | « src/code-stubs.h ('k') | src/contexts.h » ('j') | src/contexts.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
433 return false; 433 return FLAG_ignition_generators;
434 } 434 }
neis 2016/05/11 09:45:16 This looks wrong, it's not the same as if (info->
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.
443 return info->shared_info()->PassesFilter(FLAG_ignition_filter); 443 return info->shared_info()->PassesFilter(FLAG_ignition_filter);
444 } 444 }
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 MaybeHandle<Code> code; 1760 MaybeHandle<Code> code;
1761 if (cached.code != nullptr) code = handle(cached.code); 1761 if (cached.code != nullptr) code = handle(cached.code);
1762 Handle<Context> native_context(function->context()->native_context()); 1762 Handle<Context> native_context(function->context()->native_context());
1763 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, 1763 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
1764 literals, BailoutId::None()); 1764 literals, BailoutId::None());
1765 } 1765 }
1766 } 1766 }
1767 1767
1768 } // namespace internal 1768 } // namespace internal
1769 } // namespace v8 1769 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/contexts.h » ('j') | src/contexts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698