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

Side by Side Diff: src/compiler.cc

Issue 594183004: Extend JSBuiltinReducer to cover Math.fround as well. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Benedikt. Created 6 years, 3 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 | src/compiler/graph-unittest.h » ('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 // 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 virtual void Visit##type(type* node) OVERRIDE { \ 316 virtual void Visit##type(type* node) OVERRIDE { \
317 HOptimizedGraphBuilder::Visit##type(node); \ 317 HOptimizedGraphBuilder::Visit##type(node); \
318 } 318 }
319 MODULE_NODE_LIST(DEF_VISIT) 319 MODULE_NODE_LIST(DEF_VISIT)
320 DECLARATION_NODE_LIST(DEF_VISIT) 320 DECLARATION_NODE_LIST(DEF_VISIT)
321 #undef DEF_VISIT 321 #undef DEF_VISIT
322 }; 322 };
323 323
324 324
325 OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { 325 OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
326 DCHECK(isolate()->use_crankshaft());
327 DCHECK(info()->IsOptimizing()); 326 DCHECK(info()->IsOptimizing());
328 DCHECK(!info()->IsCompilingForDebugging()); 327 DCHECK(!info()->IsCompilingForDebugging());
329 328
330 // We should never arrive here if optimization has been disabled on the 329 // We should never arrive here if optimization has been disabled on the
331 // shared function info. 330 // shared function info.
332 DCHECK(!info()->shared_info()->optimization_disabled()); 331 DCHECK(!info()->shared_info()->optimization_disabled());
333 332
334 // Do not use crankshaft if we need to be able to set break points. 333 // Do not use crankshaft if we need to be able to set break points.
335 if (isolate()->DebuggerHasBreakPoints()) { 334 if (isolate()->DebuggerHasBreakPoints()) {
336 return RetryOptimization(kDebuggerHasBreakPoints); 335 return RetryOptimization(kDebuggerHasBreakPoints);
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 AllowHandleDereference allow_deref; 1423 AllowHandleDereference allow_deref;
1425 bool tracing_on = info()->IsStub() 1424 bool tracing_on = info()->IsStub()
1426 ? FLAG_trace_hydrogen_stubs 1425 ? FLAG_trace_hydrogen_stubs
1427 : (FLAG_trace_hydrogen && 1426 : (FLAG_trace_hydrogen &&
1428 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1427 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1429 return (tracing_on && 1428 return (tracing_on &&
1430 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1429 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1431 } 1430 }
1432 1431
1433 } } // namespace v8::internal 1432 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler/graph-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698