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

Side by Side Diff: src/factory.cc

Issue 428903002: Paint the tree green after r22666. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 if (literals != NULL) result->set_literals(literals); 1366 if (literals != NULL) result->set_literals(literals);
1367 Code* code = info->GetCodeFromOptimizedCodeMap(index); 1367 Code* code = info->GetCodeFromOptimizedCodeMap(index);
1368 ASSERT(!code->marked_for_deoptimization()); 1368 ASSERT(!code->marked_for_deoptimization());
1369 result->ReplaceCode(code); 1369 result->ReplaceCode(code);
1370 return result; 1370 return result;
1371 } 1371 }
1372 1372
1373 if (isolate()->use_crankshaft() && 1373 if (isolate()->use_crankshaft() &&
1374 FLAG_always_opt && 1374 FLAG_always_opt &&
1375 result->is_compiled() && 1375 result->is_compiled() &&
1376 !info->is_toplevel() &&
1376 // TODO(mstarzinger): Extend to optimization of builtin code. 1377 // TODO(mstarzinger): Extend to optimization of builtin code.
1377 !isolate()->bootstrapper()->IsActive() && 1378 !isolate()->bootstrapper()->IsActive() &&
1378 info->allows_lazy_compilation() && 1379 info->allows_lazy_compilation() &&
1379 !info->optimization_disabled() && 1380 !info->optimization_disabled() &&
1380 !isolate()->DebuggerHasBreakPoints()) { 1381 !isolate()->DebuggerHasBreakPoints()) {
1381 result->MarkForOptimization(); 1382 result->MarkForOptimization();
1382 } 1383 }
1383 return result; 1384 return result;
1384 } 1385 }
1385 1386
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 return Handle<Object>::null(); 2368 return Handle<Object>::null();
2368 } 2369 }
2369 2370
2370 2371
2371 Handle<Object> Factory::ToBoolean(bool value) { 2372 Handle<Object> Factory::ToBoolean(bool value) {
2372 return value ? true_value() : false_value(); 2373 return value ? true_value() : false_value();
2373 } 2374 }
2374 2375
2375 2376
2376 } } // namespace v8::internal 2377 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698