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

Side by Side Diff: src/objects.cc

Issue 2210243002: Put Scopes into temporary Zone (second try) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding comment Created 4 years, 4 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/ast/scopes.cc ('k') | src/parsing/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 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 13400 matching lines...) Expand 10 before | Expand all | Expand 10 after
13411 estimate += 8; 13411 estimate += 8;
13412 } 13412 }
13413 13413
13414 shared->set_expected_nof_properties(estimate); 13414 shared->set_expected_nof_properties(estimate);
13415 } 13415 }
13416 13416
13417 } // namespace 13417 } // namespace
13418 13418
13419 void SharedFunctionInfo::InitFromFunctionLiteral( 13419 void SharedFunctionInfo::InitFromFunctionLiteral(
13420 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) { 13420 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) {
13421 // When adding fields here, make sure Scope::AnalyzePartially is updated
13422 // accordingly.
13421 shared_info->set_length(lit->scope()->default_function_length()); 13423 shared_info->set_length(lit->scope()->default_function_length());
13422 shared_info->set_internal_formal_parameter_count(lit->parameter_count()); 13424 shared_info->set_internal_formal_parameter_count(lit->parameter_count());
13423 shared_info->set_function_token_position(lit->function_token_position()); 13425 shared_info->set_function_token_position(lit->function_token_position());
13424 shared_info->set_start_position(lit->start_position()); 13426 shared_info->set_start_position(lit->start_position());
13425 shared_info->set_end_position(lit->end_position()); 13427 shared_info->set_end_position(lit->end_position());
13426 shared_info->set_is_declaration(lit->is_declaration()); 13428 shared_info->set_is_declaration(lit->is_declaration());
13427 shared_info->set_is_named_expression(lit->is_named_expression()); 13429 shared_info->set_is_named_expression(lit->is_named_expression());
13428 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression()); 13430 shared_info->set_is_anonymous_expression(lit->is_anonymous_expression());
13429 shared_info->set_inferred_name(*lit->inferred_name()); 13431 shared_info->set_inferred_name(*lit->inferred_name());
13430 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); 13432 shared_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation());
(...skipping 5753 matching lines...) Expand 10 before | Expand all | Expand 10 after
19184 for (PrototypeIterator iter(isolate, this, kStartAtReceiver, 19186 for (PrototypeIterator iter(isolate, this, kStartAtReceiver,
19185 PrototypeIterator::END_AT_NULL); 19187 PrototypeIterator::END_AT_NULL);
19186 !iter.IsAtEnd(); iter.AdvanceIgnoringProxies()) { 19188 !iter.IsAtEnd(); iter.AdvanceIgnoringProxies()) {
19187 if (iter.GetCurrent<Object>()->IsJSProxy()) return true; 19189 if (iter.GetCurrent<Object>()->IsJSProxy()) return true;
19188 } 19190 }
19189 return false; 19191 return false;
19190 } 19192 }
19191 19193
19192 } // namespace internal 19194 } // namespace internal
19193 } // namespace v8 19195 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698