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

Side by Side Diff: src/objects.cc

Issue 2629143002: [runtime] Remove SharedFunctionInfo::is_function which is the inverse of SFI::is_toplevel (Closed)
Patch Set: Also remove is_function from FunctionLiteral Created 3 years, 11 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/objects.h ('k') | src/objects-inl.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 13576 matching lines...) Expand 10 before | Expand all | Expand 10 after
13587 shared_info->set_start_position(lit->start_position()); 13587 shared_info->set_start_position(lit->start_position());
13588 shared_info->set_end_position(lit->end_position()); 13588 shared_info->set_end_position(lit->end_position());
13589 shared_info->set_is_declaration(lit->is_declaration()); 13589 shared_info->set_is_declaration(lit->is_declaration());
13590 shared_info->set_is_named_expression(lit->is_named_expression()); 13590 shared_info->set_is_named_expression(lit->is_named_expression());
13591 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); 13591 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression());
13592 shared_info->set_inferred_name(*lit->inferred_name()); 13592 shared_info->set_inferred_name(*lit->inferred_name());
13593 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); 13593 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation());
13594 shared_info->set_language_mode(lit->language_mode()); 13594 shared_info->set_language_mode(lit->language_mode());
13595 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL); 13595 shared_info->set_uses_arguments(lit->scope()->arguments() != NULL);
13596 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 13596 shared_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
13597 shared_info->set_is_function(lit->is_function());
13598 shared_info->set_kind(lit->kind()); 13597 shared_info->set_kind(lit->kind());
13599 if (!IsConstructable(lit->kind(), lit->language_mode())) { 13598 if (!IsConstructable(lit->kind(), lit->language_mode())) {
13600 shared_info->SetConstructStub( 13599 shared_info->SetConstructStub(
13601 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable()); 13600 *shared_info->GetIsolate()->builtins()->ConstructedNonConstructable());
13602 } 13601 }
13603 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject()); 13602 shared_info->set_needs_home_object(lit->scope()->NeedsHomeObject());
13604 shared_info->set_asm_function(lit->scope()->asm_function()); 13603 shared_info->set_asm_function(lit->scope()->asm_function());
13605 shared_info->set_function_literal_id(lit->function_literal_id()); 13604 shared_info->set_function_literal_id(lit->function_literal_id());
13606 SetExpectedNofPropertiesFromEstimate(shared_info, lit); 13605 SetExpectedNofPropertiesFromEstimate(shared_info, lit);
13607 } 13606 }
(...skipping 6345 matching lines...) Expand 10 before | Expand all | Expand 10 after
19953 // depend on this. 19952 // depend on this.
19954 return DICTIONARY_ELEMENTS; 19953 return DICTIONARY_ELEMENTS;
19955 } 19954 }
19956 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 19955 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
19957 return kind; 19956 return kind;
19958 } 19957 }
19959 } 19958 }
19960 19959
19961 } // namespace internal 19960 } // namespace internal
19962 } // namespace v8 19961 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698