| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index 47eddb09495ebf3487ac025ebdca76ffc6ef4eaf..7112f36e68a1cb74695f924b1e7297155574dc3f 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -131,16 +131,14 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) {
|
| Handle<Script> script = info->script();
|
| if (!script->IsUndefined() && !script->source()->IsUndefined()) {
|
| PrintF("--- Raw source ---\n");
|
| - ConsStringIteratorOp op;
|
| - StringCharacterStream stream(String::cast(script->source()),
|
| - &op,
|
| - function->start_position());
|
| + StringInputBuffer stream(String::cast(script->source()));
|
| + stream.Seek(function->start_position());
|
| // fun->end_position() points to the last character in the stream. We
|
| // need to compensate by adding one to calculate the length.
|
| int source_len =
|
| function->end_position() - function->start_position() + 1;
|
| for (int i = 0; i < source_len; i++) {
|
| - if (stream.HasMore()) PrintF("%c", stream.GetNext());
|
| + if (stream.has_more()) PrintF("%c", stream.GetNext());
|
| }
|
| PrintF("\n\n");
|
| }
|
|
|