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

Unified Diff: src/compiler.cc

Issue 8590027: Fix the ScopeIterator reimplemantation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 | « no previous file | src/parser.h » ('j') | src/runtime.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 8b34f022fc53d4f3d4858dfbbeb94835f291c66c..e4d278d2e1b3c743a517d01a28fdc94c7b3f695d 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -488,14 +488,7 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source,
}
if (pre_data == NULL
&& source_length >= FLAG_min_preparse_length) {
- if (source->IsExternalTwoByteString()) {
- ExternalTwoByteStringUC16CharacterStream stream(
- Handle<ExternalTwoByteString>::cast(source), 0, source->length());
- pre_data = ParserApi::PartialPreParse(&stream, extension, flags);
- } else {
- GenericStringUC16CharacterStream stream(source, 0, source->length());
- pre_data = ParserApi::PartialPreParse(&stream, extension, flags);
- }
+ pre_data = ParserApi::PartialPreParse(source, extension, flags);
}
// Create a script object describing the script to be compiled.
« no previous file with comments | « no previous file | src/parser.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698