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

Side by Side Diff: src/objects.cc

Issue 1083193005: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix return from new func Created 5 years, 8 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/messages.js ('k') | src/parser.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 10723 matching lines...) Expand 10 before | Expand all | Expand 10 after
10734 PrintF("[disabled optimization for "); 10734 PrintF("[disabled optimization for ");
10735 ShortPrint(); 10735 ShortPrint();
10736 PrintF(", reason: %s]\n", GetBailoutReason(reason)); 10736 PrintF(", reason: %s]\n", GetBailoutReason(reason));
10737 } 10737 }
10738 } 10738 }
10739 10739
10740 10740
10741 void SharedFunctionInfo::InitFromFunctionLiteral( 10741 void SharedFunctionInfo::InitFromFunctionLiteral(
10742 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) { 10742 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) {
10743 shared_info->set_length(lit->scope()->default_function_length()); 10743 shared_info->set_length(lit->scope()->default_function_length());
10744 if (IsSubclassConstructor(lit->kind())) { 10744 shared_info->set_internal_formal_parameter_count(lit->parameter_count());
10745 shared_info->set_internal_formal_parameter_count(lit->parameter_count() +
10746 1);
10747 } else {
10748 shared_info->set_internal_formal_parameter_count(lit->parameter_count());
10749 }
10750 shared_info->set_function_token_position(lit->function_token_position()); 10745 shared_info->set_function_token_position(lit->function_token_position());
10751 shared_info->set_start_position(lit->start_position()); 10746 shared_info->set_start_position(lit->start_position());
10752 shared_info->set_end_position(lit->end_position()); 10747 shared_info->set_end_position(lit->end_position());
10753 shared_info->set_is_expression(lit->is_expression()); 10748 shared_info->set_is_expression(lit->is_expression());
10754 shared_info->set_is_anonymous(lit->is_anonymous()); 10749 shared_info->set_is_anonymous(lit->is_anonymous());
10755 shared_info->set_inferred_name(*lit->inferred_name()); 10750 shared_info->set_inferred_name(*lit->inferred_name());
10756 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); 10751 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation());
10757 shared_info->set_allows_lazy_compilation_without_context( 10752 shared_info->set_allows_lazy_compilation_without_context(
10758 lit->AllowsLazyCompilationWithoutContext()); 10753 lit->AllowsLazyCompilationWithoutContext());
10759 shared_info->set_language_mode(lit->language_mode()); 10754 shared_info->set_language_mode(lit->language_mode());
(...skipping 6359 matching lines...) Expand 10 before | Expand all | Expand 10 after
17119 // Deopt when transitioning from a constant type. 17114 // Deopt when transitioning from a constant type.
17120 if (!invalidate && (old_type != new_type)) { 17115 if (!invalidate && (old_type != new_type)) {
17121 auto isolate = dictionary->GetIsolate(); 17116 auto isolate = dictionary->GetIsolate();
17122 cell->dependent_code()->DeoptimizeDependentCodeGroup( 17117 cell->dependent_code()->DeoptimizeDependentCodeGroup(
17123 isolate, DependentCode::kPropertyCellChangedGroup); 17118 isolate, DependentCode::kPropertyCellChangedGroup);
17124 } 17119 }
17125 return value; 17120 return value;
17126 } 17121 }
17127 17122
17128 } } // namespace v8::internal 17123 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698