| Index: src/preparser-api.cc
|
| diff --git a/src/preparser-api.cc b/src/preparser-api.cc
|
| index 61e9e7e03549a8da31132c67f6e88026ab5b33ea..9646eb6f495345b4094c0e23628e3254f2c2fc3d 100644
|
| --- a/src/preparser-api.cc
|
| +++ b/src/preparser-api.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -159,8 +159,8 @@ class InputStreamUTF16Buffer : public UC16CharacterStream {
|
|
|
| class StandAloneJavaScriptScanner : public JavaScriptScanner {
|
| public:
|
| - explicit StandAloneJavaScriptScanner(ScannerConstants* scanner_constants)
|
| - : JavaScriptScanner(scanner_constants) { }
|
| + explicit StandAloneJavaScriptScanner(UnicodeCache* unicode_cache)
|
| + : JavaScriptScanner(unicode_cache) { }
|
|
|
| void Initialize(UC16CharacterStream* source) {
|
| source_ = source;
|
| @@ -192,8 +192,8 @@ UnicodeInputStream::~UnicodeInputStream() { }
|
| PreParserData Preparse(UnicodeInputStream* input, size_t max_stack) {
|
| internal::InputStreamUTF16Buffer buffer(input);
|
| uintptr_t stack_limit = reinterpret_cast<uintptr_t>(&buffer) - max_stack;
|
| - internal::ScannerConstants scanner_constants;
|
| - internal::StandAloneJavaScriptScanner scanner(&scanner_constants);
|
| + internal::UnicodeCache unicode_cache;
|
| + internal::StandAloneJavaScriptScanner scanner(&unicode_cache);
|
| scanner.Initialize(&buffer);
|
| internal::CompleteParserRecorder recorder;
|
| preparser::PreParser::PreParseResult result =
|
|
|