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

Side by Side Diff: src/compiler.h

Issue 240253003: Remove uses of MaybeObject in runtime.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: changed as suggested Created 6 years, 8 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/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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 static Handle<Code> GetUnoptimizedCode(Handle<SharedFunctionInfo> shared); 619 static Handle<Code> GetUnoptimizedCode(Handle<SharedFunctionInfo> shared);
620 static bool EnsureCompiled(Handle<JSFunction> function, 620 static bool EnsureCompiled(Handle<JSFunction> function,
621 ClearExceptionFlag flag); 621 ClearExceptionFlag flag);
622 static Handle<Code> GetCodeForDebugging(Handle<JSFunction> function); 622 static Handle<Code> GetCodeForDebugging(Handle<JSFunction> function);
623 623
624 #ifdef ENABLE_DEBUGGER_SUPPORT 624 #ifdef ENABLE_DEBUGGER_SUPPORT
625 static void CompileForLiveEdit(Handle<Script> script); 625 static void CompileForLiveEdit(Handle<Script> script);
626 #endif 626 #endif
627 627
628 // Compile a String source within a context for eval. 628 // Compile a String source within a context for eval.
629 static Handle<JSFunction> GetFunctionFromEval(Handle<String> source, 629 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval(
630 Handle<Context> context, 630 Handle<String> source,
631 StrictMode strict_mode, 631 Handle<Context> context,
632 ParseRestriction restriction, 632 StrictMode strict_mode,
633 int scope_position); 633 ParseRestriction restriction,
634 int scope_position);
634 635
635 // Compile a String source within a context. 636 // Compile a String source within a context.
636 static Handle<SharedFunctionInfo> CompileScript( 637 static Handle<SharedFunctionInfo> CompileScript(
637 Handle<String> source, 638 Handle<String> source,
638 Handle<Object> script_name, 639 Handle<Object> script_name,
639 int line_offset, 640 int line_offset,
640 int column_offset, 641 int column_offset,
641 bool is_shared_cross_origin, 642 bool is_shared_cross_origin,
642 Handle<Context> context, 643 Handle<Context> context,
643 v8::Extension* extension, 644 v8::Extension* extension,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 unsigned info_zone_start_allocation_size_; 691 unsigned info_zone_start_allocation_size_;
691 ElapsedTimer timer_; 692 ElapsedTimer timer_;
692 693
693 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 694 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
694 }; 695 };
695 696
696 697
697 } } // namespace v8::internal 698 } } // namespace v8::internal
698 699
699 #endif // V8_COMPILER_H_ 700 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698