Commit 75b32ce7 authored by lrn@chromium.org's avatar lrn@chromium.org

Move the implementation of Scanner::LiteralScope to scanner.cc

It seems more appropriate as LiteralScope is declared in scanner.h

R=lrn@chromium.org
Signed-off-by: 's avatarThiago Farina <tfarina@chromium.org>

Review URL: http://codereview.chromium.org/7864024
Patch from Thiago Farina <tfarina@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9222 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f8e5c71e
......@@ -29,7 +29,6 @@
#include "scanner-character-streams.h"
#include "ast.h"
#include "handles.h"
#include "unicode-inl.h"
......@@ -305,24 +304,4 @@ ExternalTwoByteStringUC16CharacterStream
pos_ = start_position;
}
// ----------------------------------------------------------------------------
// Scanner::LiteralScope
Scanner::LiteralScope::LiteralScope(Scanner* self)
: scanner_(self), complete_(false) {
self->StartLiteral();
}
Scanner::LiteralScope::~LiteralScope() {
if (!complete_) scanner_->DropLiteral();
}
void Scanner::LiteralScope::Complete() {
scanner_->TerminateLiteral();
complete_ = true;
}
} } // namespace v8::internal
......@@ -35,6 +35,25 @@
namespace v8 {
namespace internal {
// ----------------------------------------------------------------------------
// Scanner::LiteralScope
Scanner::LiteralScope::LiteralScope(Scanner* self)
: scanner_(self), complete_(false) {
self->StartLiteral();
}
Scanner::LiteralScope::~LiteralScope() {
if (!complete_) scanner_->DropLiteral();
}
void Scanner::LiteralScope::Complete() {
scanner_->TerminateLiteral();
complete_ = true;
}
// ----------------------------------------------------------------------------
// Scanner
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment