| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |