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

Side by Side Diff: src/compiler.cc

Issue 110123002: Enable optimization of functions with generic switches. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Adding tests Created 7 years 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 | « src/ast.cc ('k') | src/hydrogen.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 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 STATEMENT_NODE_LIST(DEF_VISIT) 349 STATEMENT_NODE_LIST(DEF_VISIT)
350 #undef DEF_VISIT 350 #undef DEF_VISIT
351 351
352 #define DEF_VISIT(type) \ 352 #define DEF_VISIT(type) \
353 virtual void Visit##type(type* node) V8_OVERRIDE { \ 353 virtual void Visit##type(type* node) V8_OVERRIDE { \
354 HOptimizedGraphBuilder::Visit##type(node); \ 354 HOptimizedGraphBuilder::Visit##type(node); \
355 } 355 }
356 MODULE_NODE_LIST(DEF_VISIT) 356 MODULE_NODE_LIST(DEF_VISIT)
357 DECLARATION_NODE_LIST(DEF_VISIT) 357 DECLARATION_NODE_LIST(DEF_VISIT)
358 AUXILIARY_NODE_LIST(DEF_VISIT)
359 #undef DEF_VISIT 358 #undef DEF_VISIT
360 }; 359 };
361 360
362 361
363 RecompileJob::Status RecompileJob::CreateGraph() { 362 RecompileJob::Status RecompileJob::CreateGraph() {
364 ASSERT(isolate()->use_crankshaft()); 363 ASSERT(isolate()->use_crankshaft());
365 ASSERT(info()->IsOptimizing()); 364 ASSERT(info()->IsOptimizing());
366 ASSERT(!info()->IsCompilingForDebugging()); 365 ASSERT(!info()->IsCompilingForDebugging());
367 366
368 // We should never arrive here if there is no code object on the 367 // We should never arrive here if there is no code object on the
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 AllowHandleDereference allow_deref; 1359 AllowHandleDereference allow_deref;
1361 bool tracing_on = info()->IsStub() 1360 bool tracing_on = info()->IsStub()
1362 ? FLAG_trace_hydrogen_stubs 1361 ? FLAG_trace_hydrogen_stubs
1363 : (FLAG_trace_hydrogen && 1362 : (FLAG_trace_hydrogen &&
1364 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1363 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1365 return (tracing_on && 1364 return (tracing_on &&
1366 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1365 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1367 } 1366 }
1368 1367
1369 } } // namespace v8::internal 1368 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698