| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index 7112f36e68a1cb74695f924b1e7297155574dc3f..b0cd8e3d0177ab4d931f1827551411f53ce976ad 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -131,14 +131,16 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) {
|
| Handle<Script> script = info->script();
|
| if (!script->IsUndefined() && !script->source()->IsUndefined()) {
|
| PrintF("--- Raw source ---\n");
|
| - StringInputBuffer stream(String::cast(script->source()));
|
| - stream.Seek(function->start_position());
|
| + ConsStringIteratorOp op;
|
| + StringCharacterStream stream(String::cast(script->source()),
|
| + function->start_position(),
|
| + &op);
|
| // 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.has_more()) PrintF("%c", stream.GetNext());
|
| + if (stream.HasMore()) PrintF("%c", stream.GetNext());
|
| }
|
| PrintF("\n\n");
|
| }
|
|
|