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

Side by Side Diff: src/hydrogen.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/gdb-jit.cc ('k') | src/hydrogen-instructions.cc » ('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 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 2196
2197 #define CHECK_ALIVE(call) \ 2197 #define CHECK_ALIVE(call) \
2198 do { \ 2198 do { \
2199 call; \ 2199 call; \
2200 if (HasStackOverflow() || current_block() == NULL) return; \ 2200 if (HasStackOverflow() || current_block() == NULL) return; \
2201 } while (false) 2201 } while (false)
2202 2202
2203 2203
2204 void HGraphBuilder::Bailout(const char* reason) { 2204 void HGraphBuilder::Bailout(const char* reason) {
2205 if (FLAG_trace_bailout) { 2205 if (FLAG_trace_bailout) {
2206 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); 2206 SmartArrayPointer<char> name(
2207 info()->shared_info()->DebugName()->ToCString());
2207 PrintF("Bailout in HGraphBuilder: @\"%s\": %s\n", *name, reason); 2208 PrintF("Bailout in HGraphBuilder: @\"%s\": %s\n", *name, reason);
2208 } 2209 }
2209 SetStackOverflow(); 2210 SetStackOverflow();
2210 } 2211 }
2211 2212
2212 2213
2213 void HGraphBuilder::VisitForEffect(Expression* expr) { 2214 void HGraphBuilder::VisitForEffect(Expression* expr) {
2214 EffectContext for_effect(this); 2215 EffectContext for_effect(this);
2215 Visit(expr); 2216 Visit(expr);
2216 } 2217 }
(...skipping 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after
4426 } else { 4427 } else {
4427 set_current_block(NULL); 4428 set_current_block(NULL);
4428 } 4429 }
4429 } 4430 }
4430 4431
4431 4432
4432 void HGraphBuilder::TraceInline(Handle<JSFunction> target, 4433 void HGraphBuilder::TraceInline(Handle<JSFunction> target,
4433 Handle<JSFunction> caller, 4434 Handle<JSFunction> caller,
4434 const char* reason) { 4435 const char* reason) {
4435 if (FLAG_trace_inlining) { 4436 if (FLAG_trace_inlining) {
4436 SmartPointer<char> target_name = target->shared()->DebugName()->ToCString(); 4437 SmartArrayPointer<char> target_name =
4437 SmartPointer<char> caller_name = caller->shared()->DebugName()->ToCString(); 4438 target->shared()->DebugName()->ToCString();
4439 SmartArrayPointer<char> caller_name =
4440 caller->shared()->DebugName()->ToCString();
4438 if (reason == NULL) { 4441 if (reason == NULL) {
4439 PrintF("Inlined %s called from %s.\n", *target_name, *caller_name); 4442 PrintF("Inlined %s called from %s.\n", *target_name, *caller_name);
4440 } else { 4443 } else {
4441 PrintF("Did not inline %s called from %s (%s).\n", 4444 PrintF("Did not inline %s called from %s (%s).\n",
4442 *target_name, *caller_name, reason); 4445 *target_name, *caller_name, reason);
4443 } 4446 }
4444 } 4447 }
4445 } 4448 }
4446 4449
4447 4450
(...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after
6810 } 6813 }
6811 } 6814 }
6812 6815
6813 #ifdef DEBUG 6816 #ifdef DEBUG
6814 if (graph_ != NULL) graph_->Verify(); 6817 if (graph_ != NULL) graph_->Verify();
6815 if (allocator_ != NULL) allocator_->Verify(); 6818 if (allocator_ != NULL) allocator_->Verify();
6816 #endif 6819 #endif
6817 } 6820 }
6818 6821
6819 } } // namespace v8::internal 6822 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698