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

Unified Diff: src/jsregexp.cc

Issue 101763003: Replace 'operator*' with explicit 'get' method on SmartPointer (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reupload to make rietveld happy Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/jsregexp.cc
diff --git a/src/jsregexp.cc b/src/jsregexp.cc
index 1f3f2a172ab5196c8a9dfe98216ec2350d41b50f..edd2eacd3dff7d7536ab8371dca18a0fe7b674f0 100644
--- a/src/jsregexp.cc
+++ b/src/jsregexp.cc
@@ -645,8 +645,8 @@ Handle<Object> RegExpImpl::IrregexpExec(Handle<JSRegExp> regexp,
#if defined(V8_INTERPRETED_REGEXP) && defined(DEBUG)
if (FLAG_trace_regexp_bytecodes) {
String* pattern = regexp->Pattern();
- PrintF("\n\nRegexp match: /%s/\n\n", *(pattern->ToCString()));
- PrintF("\n\nSubject string: '%s'\n\n", *(subject->ToCString()));
+ PrintF("\n\nRegexp match: /%s/\n\n", pattern->ToCString().get());
+ PrintF("\n\nSubject string: '%s'\n\n", subject->ToCString().get());
}
#endif
int required_registers = RegExpImpl::IrregexpPrepare(regexp, subject);
@@ -1151,7 +1151,7 @@ RegExpEngine::CompilationResult RegExpCompiler::Assemble(
#ifdef DEBUG
if (FLAG_print_code) {
CodeTracer::Scope trace_scope(heap->isolate()->GetCodeTracer());
- Handle<Code>::cast(code)->Disassemble(*pattern->ToCString(),
+ Handle<Code>::cast(code)->Disassemble(pattern->ToCString().get(),
trace_scope.file());
}
if (FLAG_trace_regexp_assembler) {
@@ -4374,7 +4374,7 @@ void DotPrinter::PrintNode(const char* label, RegExpNode* node) {
stream()->Add("\"];\n");
Visit(node);
stream()->Add("}\n");
- printf("%s", *(stream()->ToCString()));
+ printf("%s", stream()->ToCString().get());
}
@@ -4669,7 +4669,7 @@ void DispatchTable::Dump() {
StringStream stream(&alloc);
DispatchTableDumper dumper(&stream);
tree()->ForEach(&dumper);
- OS::PrintError("%s", *stream.ToCString());
+ OS::PrintError("%s", stream.ToCString().get());
}
« no previous file with comments | « src/isolate.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698