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

Side by Side Diff: src/factory.cc

Issue 18500003: Fix debuggersupport=off build. (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 | « src/compiler.cc ('k') | src/objects.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "api.h" 30 #include "api.h"
31 #include "debug.h" 31 #include "debug.h"
32 #include "execution.h" 32 #include "execution.h"
33 #include "factory.h" 33 #include "factory.h"
34 #include "isolate-inl.h"
34 #include "macro-assembler.h" 35 #include "macro-assembler.h"
35 #include "objects.h" 36 #include "objects.h"
36 #include "objects-visiting.h" 37 #include "objects-visiting.h"
37 #include "platform.h" 38 #include "platform.h"
38 #include "scopeinfo.h" 39 #include "scopeinfo.h"
39 40
40 namespace v8 { 41 namespace v8 {
41 namespace internal { 42 namespace internal {
42 43
43 44
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // Caching of optimized code enabled and optimized code found. 654 // Caching of optimized code enabled and optimized code found.
654 function_info->InstallFromOptimizedCodeMap(*result, index); 655 function_info->InstallFromOptimizedCodeMap(*result, index);
655 return result; 656 return result;
656 } 657 }
657 658
658 if (V8::UseCrankshaft() && 659 if (V8::UseCrankshaft() &&
659 FLAG_always_opt && 660 FLAG_always_opt &&
660 result->is_compiled() && 661 result->is_compiled() &&
661 !function_info->is_toplevel() && 662 !function_info->is_toplevel() &&
662 function_info->allows_lazy_compilation() && 663 function_info->allows_lazy_compilation() &&
663 !function_info->optimization_disabled()) { 664 !function_info->optimization_disabled() &&
665 !isolate()->DebuggerHasBreakPoints()) {
664 result->MarkForLazyRecompilation(); 666 result->MarkForLazyRecompilation();
665 } 667 }
666 return result; 668 return result;
667 } 669 }
668 670
669 671
670 Handle<Object> Factory::NewNumber(double value, 672 Handle<Object> Factory::NewNumber(double value,
671 PretenureFlag pretenure) { 673 PretenureFlag pretenure) {
672 CALL_HEAP_FUNCTION( 674 CALL_HEAP_FUNCTION(
673 isolate(), 675 isolate(),
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 return Handle<Object>::null(); 1600 return Handle<Object>::null();
1599 } 1601 }
1600 1602
1601 1603
1602 Handle<Object> Factory::ToBoolean(bool value) { 1604 Handle<Object> Factory::ToBoolean(bool value) {
1603 return value ? true_value() : false_value(); 1605 return value ? true_value() : false_value();
1604 } 1606 }
1605 1607
1606 1608
1607 } } // namespace v8::internal 1609 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698