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

Side by Side Diff: src/objects.cc

Issue 1467473002: Install ConstructNonConstructable as construct stub for non-constructables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/mips64/builtins-mips64.cc ('k') | src/preparser.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 "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 12714 matching lines...) Expand 10 before | Expand all | Expand 10 after
12725 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); 12725 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL);
12726 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 12726 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
12727 shared_info->set_ast_node_count(lit->ast_node_count()); 12727 shared_info->set_ast_node_count(lit->ast_node_count());
12728 shared_info->set_is_function(lit->is_function()); 12728 shared_info->set_is_function(lit->is_function());
12729 if (lit->dont_optimize_reason() != kNoReason) { 12729 if (lit->dont_optimize_reason() != kNoReason) {
12730 shared_info->DisableOptimization(lit->dont_optimize_reason()); 12730 shared_info->DisableOptimization(lit->dont_optimize_reason());
12731 } 12731 }
12732 shared_info->set_dont_crankshaft(lit->flags() & 12732 shared_info->set_dont_crankshaft(lit->flags() &
12733 AstProperties::kDontCrankshaft); 12733 AstProperties::kDontCrankshaft);
12734 shared_info->set_kind(lit->kind()); 12734 shared_info->set_kind(lit->kind());
12735 if (!IsConstructable(lit->kind(), lit->language_mode())) {
12736 shared_info->set_construct_stub(
12737 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable());
12738 }
12735 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); 12739 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject());
12736 shared_info->set_asm_function(lit->scope()->asm_function()); 12740 shared_info->set_asm_function(lit->scope()->asm_function());
12737 } 12741 }
12738 12742
12739 12743
12740 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) { 12744 bool SharedFunctionInfo::VerifyBailoutId(BailoutId id) {
12741 DCHECK(!id.IsNone()); 12745 DCHECK(!id.IsNone());
12742 Code* unoptimized = code(); 12746 Code* unoptimized = code();
12743 DeoptimizationOutputData* data = 12747 DeoptimizationOutputData* data =
12744 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); 12748 DeoptimizationOutputData::cast(unoptimized->deoptimization_data());
(...skipping 5792 matching lines...) Expand 10 before | Expand all | Expand 10 after
18537 if (cell->value() != *new_value) { 18541 if (cell->value() != *new_value) {
18538 cell->set_value(*new_value); 18542 cell->set_value(*new_value);
18539 Isolate* isolate = cell->GetIsolate(); 18543 Isolate* isolate = cell->GetIsolate();
18540 cell->dependent_code()->DeoptimizeDependentCodeGroup( 18544 cell->dependent_code()->DeoptimizeDependentCodeGroup(
18541 isolate, DependentCode::kPropertyCellChangedGroup); 18545 isolate, DependentCode::kPropertyCellChangedGroup);
18542 } 18546 }
18543 } 18547 }
18544 18548
18545 } // namespace internal 18549 } // namespace internal
18546 } // namespace v8 18550 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698