OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 return NULL; | 656 return NULL; |
657 } | 657 } |
658 | 658 |
659 | 659 |
660 static void Indent(int n, const char* str) { | 660 static void Indent(int n, const char* str) { |
661 PrintF("%*s%s", n, "", str); | 661 PrintF("%*s%s", n, "", str); |
662 } | 662 } |
663 | 663 |
664 | 664 |
665 static void PrintName(Handle<String> name) { | 665 static void PrintName(Handle<String> name) { |
666 SmartPointer<char> s = name->ToCString(DISALLOW_NULLS); | 666 SmartArrayPointer<char> s = name->ToCString(DISALLOW_NULLS); |
667 PrintF("%s", *s); | 667 PrintF("%s", *s); |
668 } | 668 } |
669 | 669 |
670 | 670 |
671 static void PrintLocation(Variable* var) { | 671 static void PrintLocation(Variable* var) { |
672 switch (var->location()) { | 672 switch (var->location()) { |
673 case Variable::UNALLOCATED: | 673 case Variable::UNALLOCATED: |
674 break; | 674 break; |
675 case Variable::PARAMETER: | 675 case Variable::PARAMETER: |
676 PrintF("parameter[%d]", var->index()); | 676 PrintF("parameter[%d]", var->index()); |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && | 1202 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && |
1203 !must_have_local_context) { | 1203 !must_have_local_context) { |
1204 num_heap_slots_ = 0; | 1204 num_heap_slots_ = 0; |
1205 } | 1205 } |
1206 | 1206 |
1207 // Allocation done. | 1207 // Allocation done. |
1208 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); | 1208 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); |
1209 } | 1209 } |
1210 | 1210 |
1211 } } // namespace v8::internal | 1211 } } // namespace v8::internal |
OLD | NEW |