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

Unified Diff: src/api.cc

Issue 392263002: Remove obsolete options in ScriptCompiler::CompileOptions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed tests. Created 5 years, 6 months 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 | « include/v8.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 3b2c9909bb8e537c09fed4fdd8cb26881dea3b58..0dbebc14e564aa93c441a0eb7d38bacea217de02 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -1715,15 +1715,6 @@ MaybeLocal<UnboundScript> ScriptCompiler::CompileUnboundInternal(
PREPARE_FOR_EXECUTION_WITH_ISOLATE(
isolate, "v8::ScriptCompiler::CompileUnbound()", UnboundScript);
- // Support the old API for a transition period:
- // - kProduceToCache -> kProduceParserCache
- // - kNoCompileOptions + cached_data != NULL -> kConsumeParserCache
- if (options == kProduceDataToCache) {
- options = kProduceParserCache;
- } else if (options == kNoCompileOptions && source->cached_data) {
- options = kConsumeParserCache;
- }
-
// Don't try to produce any kind of cache when the debugger is loaded.
if (isolate->debug()->is_loaded() &&
(options == kProduceParserCache || options == kProduceCodeCache)) {
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698