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

Side by Side Diff: src/factory.cc

Issue 9718035: Fix FLAG_always_opt and tools/push-to-trunk.sh (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 | tools/common-includes.sh » ('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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // object, regexp and array literals in this function. 547 // object, regexp and array literals in this function.
548 literals->set(JSFunction::kLiteralGlobalContextIndex, 548 literals->set(JSFunction::kLiteralGlobalContextIndex,
549 context->global_context()); 549 context->global_context());
550 } 550 }
551 result->set_literals(*literals); 551 result->set_literals(*literals);
552 } 552 }
553 if (V8::UseCrankshaft() && 553 if (V8::UseCrankshaft() &&
554 FLAG_always_opt && 554 FLAG_always_opt &&
555 result->is_compiled() && 555 result->is_compiled() &&
556 !function_info->is_toplevel() && 556 !function_info->is_toplevel() &&
557 function_info->allows_lazy_compilation()) { 557 function_info->allows_lazy_compilation() &&
558 !function_info->optimization_disabled()) {
558 result->MarkForLazyRecompilation(); 559 result->MarkForLazyRecompilation();
559 } 560 }
560 return result; 561 return result;
561 } 562 }
562 563
563 564
564 Handle<Object> Factory::NewNumber(double value, 565 Handle<Object> Factory::NewNumber(double value,
565 PretenureFlag pretenure) { 566 PretenureFlag pretenure) {
566 CALL_HEAP_FUNCTION( 567 CALL_HEAP_FUNCTION(
567 isolate(), 568 isolate(),
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 1421
1421 1422
1422 Handle<Object> Factory::ToBoolean(bool value) { 1423 Handle<Object> Factory::ToBoolean(bool value) {
1423 return Handle<Object>(value 1424 return Handle<Object>(value
1424 ? isolate()->heap()->true_value() 1425 ? isolate()->heap()->true_value()
1425 : isolate()->heap()->false_value()); 1426 : isolate()->heap()->false_value());
1426 } 1427 }
1427 1428
1428 1429
1429 } } // namespace v8::internal 1430 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | tools/common-includes.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698