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

Side by Side Diff: src/scopes.cc

Issue 7860011: Rename SmartPointer to SmartArrayPointer. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: rebase it again to get more fixes Created 9 years, 3 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/runtime.cc ('k') | src/smart-array-pointer.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 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
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/smart-array-pointer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698