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

Side by Side Diff: src/compiler.h

Issue 10878007: Index script compilation cache over context (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Respect language flags. Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compilation-cache.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 418
419 // All routines return a SharedFunctionInfo. 419 // All routines return a SharedFunctionInfo.
420 // If an error occurs an exception is raised and the return handle 420 // If an error occurs an exception is raised and the return handle
421 // contains NULL. 421 // contains NULL.
422 422
423 // Compile a String source within a context. 423 // Compile a String source within a context.
424 static Handle<SharedFunctionInfo> Compile(Handle<String> source, 424 static Handle<SharedFunctionInfo> Compile(Handle<String> source,
425 Handle<Object> script_name, 425 Handle<Object> script_name,
426 int line_offset, 426 int line_offset,
427 int column_offset, 427 int column_offset,
428 Handle<Context> context,
428 v8::Extension* extension, 429 v8::Extension* extension,
429 ScriptDataImpl* pre_data, 430 ScriptDataImpl* pre_data,
430 Handle<Object> script_data, 431 Handle<Object> script_data,
431 NativesFlag is_natives_code); 432 NativesFlag is_natives_code);
432 433
433 // Compile a String source within a context for Eval. 434 // Compile a String source within a context for Eval.
434 static Handle<SharedFunctionInfo> CompileEval(Handle<String> source, 435 static Handle<SharedFunctionInfo> CompileEval(Handle<String> source,
435 Handle<Context> context, 436 Handle<Context> context,
436 bool is_global, 437 bool is_global,
437 LanguageMode language_mode, 438 LanguageMode language_mode,
(...skipping 24 matching lines...) Expand all
462 463
463 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, 464 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
464 CompilationInfo* info, 465 CompilationInfo* info,
465 Handle<SharedFunctionInfo> shared); 466 Handle<SharedFunctionInfo> shared);
466 }; 467 };
467 468
468 469
469 } } // namespace v8::internal 470 } } // namespace v8::internal
470 471
471 #endif // V8_COMPILER_H_ 472 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698