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

Side by Side Diff: src/objects.cc

Issue 816913003: Implement ES6 rest parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo in ARM port Created 5 years, 10 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 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 10369 matching lines...) Expand 10 before | Expand all | Expand 10 after
10380 if (FLAG_trace_opt) { 10380 if (FLAG_trace_opt) {
10381 PrintF("[disabled optimization for "); 10381 PrintF("[disabled optimization for ");
10382 ShortPrint(); 10382 ShortPrint();
10383 PrintF(", reason: %s]\n", GetBailoutReason(reason)); 10383 PrintF(", reason: %s]\n", GetBailoutReason(reason));
10384 } 10384 }
10385 } 10385 }
10386 10386
10387 10387
10388 void SharedFunctionInfo::InitFromFunctionLiteral( 10388 void SharedFunctionInfo::InitFromFunctionLiteral(
10389 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) { 10389 Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) {
10390 shared_info->set_length(lit->parameter_count()); 10390 shared_info->set_length(lit->scope()->default_function_length());
10391 if (IsSubclassConstructor(lit->kind())) { 10391 if (IsSubclassConstructor(lit->kind())) {
10392 shared_info->set_internal_formal_parameter_count(lit->parameter_count() + 10392 shared_info->set_internal_formal_parameter_count(lit->parameter_count() +
10393 1); 10393 1);
10394 } else { 10394 } else {
10395 shared_info->set_internal_formal_parameter_count(lit->parameter_count()); 10395 shared_info->set_internal_formal_parameter_count(lit->parameter_count());
10396 } 10396 }
10397 shared_info->set_function_token_position(lit->function_token_position()); 10397 shared_info->set_function_token_position(lit->function_token_position());
10398 shared_info->set_start_position(lit->start_position()); 10398 shared_info->set_start_position(lit->start_position());
10399 shared_info->set_end_position(lit->end_position()); 10399 shared_info->set_end_position(lit->end_position());
10400 shared_info->set_is_expression(lit->is_expression()); 10400 shared_info->set_is_expression(lit->is_expression());
(...skipping 6613 matching lines...) Expand 10 before | Expand all | Expand 10 after
17014 CompilationInfo* info) { 17014 CompilationInfo* info) {
17015 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17015 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17016 handle(cell->dependent_code(), info->isolate()), 17016 handle(cell->dependent_code(), info->isolate()),
17017 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17017 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17018 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17018 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17019 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17019 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17020 cell, info->zone()); 17020 cell, info->zone());
17021 } 17021 }
17022 17022
17023 } } // namespace v8::internal 17023 } } // namespace v8::internal
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