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

Side by Side Diff: src/compiler.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/compiler.h ('k') | src/compiler/ast-graph-builder.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 302
303 void CompilationInfo::EnsureFeedbackVector() { 303 void CompilationInfo::EnsureFeedbackVector() {
304 if (feedback_vector_.is_null()) { 304 if (feedback_vector_.is_null()) {
305 feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector( 305 feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector(
306 function()->feedback_vector_spec()); 306 function()->feedback_vector_spec());
307 } 307 }
308 } 308 }
309 309
310 310
311 bool CompilationInfo::is_simple_parameter_list() {
312 return scope_->is_simple_parameter_list();
313 }
314
315
311 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder { 316 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder {
312 public: 317 public:
313 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info) 318 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info)
314 : HOptimizedGraphBuilder(info) { 319 : HOptimizedGraphBuilder(info) {
315 } 320 }
316 321
317 #define DEF_VISIT(type) \ 322 #define DEF_VISIT(type) \
318 void Visit##type(type* node) OVERRIDE { \ 323 void Visit##type(type* node) OVERRIDE { \
319 if (node->position() != RelocInfo::kNoPosition) { \ 324 if (node->position() != RelocInfo::kNoPosition) { \
320 SetSourcePosition(node->position()); \ 325 SetSourcePosition(node->position()); \
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 } 1521 }
1517 1522
1518 1523
1519 #if DEBUG 1524 #if DEBUG
1520 void CompilationInfo::PrintAstForTesting() { 1525 void CompilationInfo::PrintAstForTesting() {
1521 PrintF("--- Source from AST ---\n%s\n", 1526 PrintF("--- Source from AST ---\n%s\n",
1522 PrettyPrinter(isolate(), zone()).PrintProgram(function())); 1527 PrettyPrinter(isolate(), zone()).PrintProgram(function()));
1523 } 1528 }
1524 #endif 1529 #endif
1525 } } // namespace v8::internal 1530 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698