| 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 feedback_vector_->ICSlots() == function()->ic_slot_count()); | 301 feedback_vector_->ICSlots() == function()->ic_slot_count()); |
| 302 } | 302 } |
| 303 | 303 |
| 304 | 304 |
| 305 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder { | 305 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder { |
| 306 public: | 306 public: |
| 307 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info) | 307 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info) |
| 308 : HOptimizedGraphBuilder(info) { | 308 : HOptimizedGraphBuilder(info) { |
| 309 } | 309 } |
| 310 | 310 |
| 311 #define DEF_VISIT(type) \ | 311 #define DEF_VISIT(type) \ |
| 312 virtual void Visit##type(type* node) OVERRIDE { \ | 312 virtual void Visit##type(type* node) OVERRIDE { \ |
| 313 if (node->position() != RelocInfo::kNoPosition) { \ | 313 SetSourcePosition(node->position()); \ |
| 314 SetSourcePosition(node->position()); \ | 314 HOptimizedGraphBuilder::Visit##type(node); \ |
| 315 } \ | |
| 316 HOptimizedGraphBuilder::Visit##type(node); \ | |
| 317 } | 315 } |
| 318 EXPRESSION_NODE_LIST(DEF_VISIT) | 316 EXPRESSION_NODE_LIST(DEF_VISIT) |
| 319 #undef DEF_VISIT | 317 #undef DEF_VISIT |
| 320 | 318 |
| 321 #define DEF_VISIT(type) \ | 319 #define DEF_VISIT(type) \ |
| 322 virtual void Visit##type(type* node) OVERRIDE { \ | 320 virtual void Visit##type(type* node) OVERRIDE { \ |
| 323 if (node->position() != RelocInfo::kNoPosition) { \ | 321 SetSourcePosition(node->position()); \ |
| 324 SetSourcePosition(node->position()); \ | 322 HOptimizedGraphBuilder::Visit##type(node); \ |
| 325 } \ | |
| 326 HOptimizedGraphBuilder::Visit##type(node); \ | |
| 327 } | 323 } |
| 328 STATEMENT_NODE_LIST(DEF_VISIT) | 324 STATEMENT_NODE_LIST(DEF_VISIT) |
| 329 #undef DEF_VISIT | 325 #undef DEF_VISIT |
| 330 | 326 |
| 331 #define DEF_VISIT(type) \ | 327 #define DEF_VISIT(type) \ |
| 332 virtual void Visit##type(type* node) OVERRIDE { \ | 328 virtual void Visit##type(type* node) OVERRIDE { \ |
| 333 HOptimizedGraphBuilder::Visit##type(node); \ | 329 HOptimizedGraphBuilder::Visit##type(node); \ |
| 334 } | 330 } |
| 335 MODULE_NODE_LIST(DEF_VISIT) | 331 MODULE_NODE_LIST(DEF_VISIT) |
| 336 DECLARATION_NODE_LIST(DEF_VISIT) | 332 DECLARATION_NODE_LIST(DEF_VISIT) |
| (...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 AllowHandleDereference allow_deref; | 1469 AllowHandleDereference allow_deref; |
| 1474 bool tracing_on = info()->IsStub() | 1470 bool tracing_on = info()->IsStub() |
| 1475 ? FLAG_trace_hydrogen_stubs | 1471 ? FLAG_trace_hydrogen_stubs |
| 1476 : (FLAG_trace_hydrogen && | 1472 : (FLAG_trace_hydrogen && |
| 1477 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1473 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
| 1478 return (tracing_on && | 1474 return (tracing_on && |
| 1479 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1475 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
| 1480 } | 1476 } |
| 1481 | 1477 |
| 1482 } } // namespace v8::internal | 1478 } } // namespace v8::internal |
| OLD | NEW |