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

Side by Side Diff: src/compiler.h

Issue 19504006: More aggressively inline optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | src/debug.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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // parameters which then can be executed. If the source code contains other 553 // parameters which then can be executed. If the source code contains other
554 // functions, they will be compiled and allocated as part of the compilation 554 // functions, they will be compiled and allocated as part of the compilation
555 // of the source code. 555 // of the source code.
556 556
557 // Please note this interface returns shared function infos. This means you 557 // Please note this interface returns shared function infos. This means you
558 // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a 558 // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a
559 // real function with a context. 559 // real function with a context.
560 560
561 class Compiler : public AllStatic { 561 class Compiler : public AllStatic {
562 public: 562 public:
563 static const int kMaxInliningLevels = 3;
564
565 // Call count before primitive functions trigger their own optimization. 563 // Call count before primitive functions trigger their own optimization.
566 static const int kCallsUntilPrimitiveOpt = 200; 564 static const int kCallsUntilPrimitiveOpt = 200;
567 565
568 // All routines return a SharedFunctionInfo. 566 // All routines return a SharedFunctionInfo.
569 // If an error occurs an exception is raised and the return handle 567 // If an error occurs an exception is raised and the return handle
570 // contains NULL. 568 // contains NULL.
571 569
572 // Compile a String source within a context. 570 // Compile a String source within a context.
573 static Handle<SharedFunctionInfo> Compile(Handle<String> source, 571 static Handle<SharedFunctionInfo> Compile(Handle<String> source,
574 Handle<Object> script_name, 572 Handle<Object> script_name,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 unsigned info_zone_start_allocation_size_; 635 unsigned info_zone_start_allocation_size_;
638 int64_t start_ticks_; 636 int64_t start_ticks_;
639 637
640 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 638 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
641 }; 639 };
642 640
643 641
644 } } // namespace v8::internal 642 } } // namespace v8::internal
645 643
646 #endif // V8_COMPILER_H_ 644 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698