| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |