Revision: 9222
Author:   [email protected]
Date:     Mon Sep 12 00:49:01 2011
Log:      Move the implementation of Scanner::LiteralScope to scanner.cc

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

[email protected]

Signed-off-by: Thiago Farina <[email protected]>

Review URL: http://codereview.chromium.org/7864024
Patch from Thiago Farina <[email protected]>.
http://code.google.com/p/v8/source/detail?r=9222

Modified:
 /branches/bleeding_edge/src/scanner-character-streams.cc
 /branches/bleeding_edge/src/scanner.cc

=======================================
--- /branches/bleeding_edge/src/scanner-character-streams.cc Thu Sep 8 06:06:44 2011 +++ /branches/bleeding_edge/src/scanner-character-streams.cc Mon Sep 12 00:49:01 2011
@@ -29,7 +29,6 @@

 #include "scanner-character-streams.h"

-#include "ast.h"
 #include "handles.h"
 #include "unicode-inl.h"

@@ -304,25 +303,5 @@
   buffer_end_ = raw_data_ + (end_position - start_position);
   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
=======================================
--- /branches/bleeding_edge/src/scanner.cc      Thu Sep  8 06:06:44 2011
+++ /branches/bleeding_edge/src/scanner.cc      Mon Sep 12 00:49:01 2011
@@ -34,6 +34,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

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to