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

Side by Side Diff: src/factory.cc

Issue 841213003: Allow --always-opt to go further into the pipeline (1). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Set missing bailout reason. Created 5 years, 11 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
« 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 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/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 } 1355 }
1356 1356
1357 return prototype; 1357 return prototype;
1358 } 1358 }
1359 1359
1360 1360
1361 static bool ShouldOptimizeNewClosure(Isolate* isolate, 1361 static bool ShouldOptimizeNewClosure(Isolate* isolate,
1362 Handle<SharedFunctionInfo> info) { 1362 Handle<SharedFunctionInfo> info) {
1363 return isolate->use_crankshaft() && !info->is_toplevel() && 1363 return isolate->use_crankshaft() && !info->is_toplevel() &&
1364 info->is_compiled() && info->allows_lazy_compilation() && 1364 info->is_compiled() && info->allows_lazy_compilation() &&
1365 !info->optimization_disabled() && !isolate->DebuggerHasBreakPoints(); 1365 !isolate->DebuggerHasBreakPoints();
1366 } 1366 }
1367 1367
1368 1368
1369 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( 1369 Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
1370 Handle<SharedFunctionInfo> info, 1370 Handle<SharedFunctionInfo> info,
1371 Handle<Context> context, 1371 Handle<Context> context,
1372 PretenureFlag pretenure) { 1372 PretenureFlag pretenure) {
1373 int map_index = Context::FunctionMapIndex(info->strict_mode(), info->kind()); 1373 int map_index = Context::FunctionMapIndex(info->strict_mode(), info->kind());
1374 Handle<Map> map(Map::cast(context->native_context()->get(map_index))); 1374 Handle<Map> map(Map::cast(context->native_context()->get(map_index)));
1375 Handle<JSFunction> result = NewFunction(map, info, context, pretenure); 1375 Handle<JSFunction> result = NewFunction(map, info, context, pretenure);
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 return Handle<Object>::null(); 2513 return Handle<Object>::null();
2514 } 2514 }
2515 2515
2516 2516
2517 Handle<Object> Factory::ToBoolean(bool value) { 2517 Handle<Object> Factory::ToBoolean(bool value) {
2518 return value ? true_value() : false_value(); 2518 return value ? true_value() : false_value();
2519 } 2519 }
2520 2520
2521 2521
2522 } } // namespace v8::internal 2522 } } // 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