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/prettyprinter.h" | 5 #include "src/prettyprinter.h" |
6 | 6 |
7 #include <stdarg.h> | 7 #include <stdarg.h> |
8 | 8 |
9 #include "src/ast-value-factory.h" | 9 #include "src/ast-value-factory.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 //----------------------------------------------------------------------------- | 427 //----------------------------------------------------------------------------- |
428 | 428 |
429 | 429 |
430 #ifdef DEBUG | 430 #ifdef DEBUG |
431 | 431 |
432 // A helper for ast nodes that use FeedbackVectorICSlots. | 432 // A helper for ast nodes that use FeedbackVectorICSlots. |
433 static int FormatICSlotNode(Vector<char>* buf, Expression* node, | 433 static int FormatICSlotNode(Vector<char>* buf, Expression* node, |
434 const char* node_name, FeedbackVectorICSlot slot) { | 434 const char* node_name, FeedbackVectorICSlot slot) { |
435 int pos = SNPrintF(*buf, "%s", node_name); | 435 int pos = SNPrintF(*buf, "%s", node_name); |
436 if (!slot.IsInvalid()) { | 436 if (!slot.IsInvalid()) { |
437 const char* str = Code::Kind2String(node->FeedbackICSlotKind(0)); | 437 const char* str = |
| 438 TypeFeedbackVector::Kind2String(node->FeedbackICSlotKind(0)); |
438 pos = SNPrintF(*buf + pos, " ICSlot(%d, %s)", slot.ToInt(), str); | 439 pos = SNPrintF(*buf + pos, " ICSlot(%d, %s)", slot.ToInt(), str); |
439 } | 440 } |
440 return pos; | 441 return pos; |
441 } | 442 } |
442 | 443 |
443 | 444 |
444 PrettyPrinter::PrettyPrinter(Isolate* isolate, Zone* zone) { | 445 PrettyPrinter::PrettyPrinter(Isolate* isolate, Zone* zone) { |
445 output_ = NULL; | 446 output_ = NULL; |
446 size_ = 0; | 447 size_ = 0; |
447 pos_ = 0; | 448 pos_ = 0; |
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 | 1609 |
1609 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { | 1610 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { |
1610 IndentedScope indent(this, "SUPER-CALL-REFERENCE"); | 1611 IndentedScope indent(this, "SUPER-CALL-REFERENCE"); |
1611 } | 1612 } |
1612 | 1613 |
1613 | 1614 |
1614 #endif // DEBUG | 1615 #endif // DEBUG |
1615 | 1616 |
1616 } // namespace internal | 1617 } // namespace internal |
1617 } // namespace v8 | 1618 } // namespace v8 |
OLD | NEW |