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

Side by Side Diff: src/compiler/typer.cc

Issue 1114163005: [turbofan] Fix tail call optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
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/base/flags.h" 5 #include "src/base/flags.h"
6 #include "src/bootstrapper.h" 6 #include "src/bootstrapper.h"
7 #include "src/compiler/graph-reducer.h" 7 #include "src/compiler/graph-reducer.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 DECLARE_CASE(Branch) 245 DECLARE_CASE(Branch)
246 DECLARE_CASE(IfTrue) 246 DECLARE_CASE(IfTrue)
247 DECLARE_CASE(IfFalse) 247 DECLARE_CASE(IfFalse)
248 DECLARE_CASE(IfSuccess) 248 DECLARE_CASE(IfSuccess)
249 DECLARE_CASE(Switch) 249 DECLARE_CASE(Switch)
250 DECLARE_CASE(IfValue) 250 DECLARE_CASE(IfValue)
251 DECLARE_CASE(IfDefault) 251 DECLARE_CASE(IfDefault)
252 DECLARE_CASE(Merge) 252 DECLARE_CASE(Merge)
253 DECLARE_CASE(Deoptimize) 253 DECLARE_CASE(Deoptimize)
254 DECLARE_CASE(Return) 254 DECLARE_CASE(Return)
255 DECLARE_CASE(TailCall)
255 DECLARE_CASE(OsrNormalEntry) 256 DECLARE_CASE(OsrNormalEntry)
256 DECLARE_CASE(OsrLoopEntry) 257 DECLARE_CASE(OsrLoopEntry)
257 DECLARE_CASE(Throw) 258 DECLARE_CASE(Throw)
258 DECLARE_CASE(End) 259 DECLARE_CASE(End)
259 #undef DECLARE_CASE 260 #undef DECLARE_CASE
260 break; 261 break;
261 } 262 }
262 return NoChange(); 263 return NoChange();
263 } 264 }
264 265
(...skipping 23 matching lines...) Expand all
288 DECLARE_CASE(Branch) 289 DECLARE_CASE(Branch)
289 DECLARE_CASE(IfTrue) 290 DECLARE_CASE(IfTrue)
290 DECLARE_CASE(IfFalse) 291 DECLARE_CASE(IfFalse)
291 DECLARE_CASE(IfSuccess) 292 DECLARE_CASE(IfSuccess)
292 DECLARE_CASE(Switch) 293 DECLARE_CASE(Switch)
293 DECLARE_CASE(IfValue) 294 DECLARE_CASE(IfValue)
294 DECLARE_CASE(IfDefault) 295 DECLARE_CASE(IfDefault)
295 DECLARE_CASE(Merge) 296 DECLARE_CASE(Merge)
296 DECLARE_CASE(Deoptimize) 297 DECLARE_CASE(Deoptimize)
297 DECLARE_CASE(Return) 298 DECLARE_CASE(Return)
299 DECLARE_CASE(TailCall)
298 DECLARE_CASE(OsrNormalEntry) 300 DECLARE_CASE(OsrNormalEntry)
299 DECLARE_CASE(OsrLoopEntry) 301 DECLARE_CASE(OsrLoopEntry)
300 DECLARE_CASE(Throw) 302 DECLARE_CASE(Throw)
301 DECLARE_CASE(End) 303 DECLARE_CASE(End)
302 #undef DECLARE_CASE 304 #undef DECLARE_CASE
303 break; 305 break;
304 } 306 }
305 UNREACHABLE(); 307 UNREACHABLE();
306 return Bounds(); 308 return Bounds();
307 } 309 }
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2368 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2367 #undef TYPED_ARRAY_CASE 2369 #undef TYPED_ARRAY_CASE
2368 } 2370 }
2369 } 2371 }
2370 return Type::Constant(value, zone()); 2372 return Type::Constant(value, zone());
2371 } 2373 }
2372 2374
2373 } // namespace compiler 2375 } // namespace compiler
2374 } // namespace internal 2376 } // namespace internal
2375 } // namespace v8 2377 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698