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

Side by Side Diff: src/compiler.cc

Issue 1108563002: Detect simple tail calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed index type 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
« no previous file with comments | « no previous file | src/compiler/arm/code-generator-arm.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 // 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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #define PARSE_INFO_GETTER_WITH_DEFAULT(type, name, def) \ 55 #define PARSE_INFO_GETTER_WITH_DEFAULT(type, name, def) \
56 type CompilationInfo::name() const { \ 56 type CompilationInfo::name() const { \
57 return parse_info() ? parse_info()->name() : def; \ 57 return parse_info() ? parse_info()->name() : def; \
58 } 58 }
59 59
60 60
61 PARSE_INFO_GETTER(Handle<Script>, script) 61 PARSE_INFO_GETTER(Handle<Script>, script)
62 PARSE_INFO_GETTER(bool, is_eval) 62 PARSE_INFO_GETTER(bool, is_eval)
63 PARSE_INFO_GETTER(bool, is_native) 63 PARSE_INFO_GETTER(bool, is_native)
64 PARSE_INFO_GETTER(bool, is_module) 64 PARSE_INFO_GETTER(bool, is_module)
65 PARSE_INFO_GETTER(LanguageMode, language_mode) 65 PARSE_INFO_GETTER_WITH_DEFAULT(LanguageMode, language_mode, STRICT)
66 PARSE_INFO_GETTER_WITH_DEFAULT(Handle<JSFunction>, closure, 66 PARSE_INFO_GETTER_WITH_DEFAULT(Handle<JSFunction>, closure,
67 Handle<JSFunction>::null()) 67 Handle<JSFunction>::null())
68 PARSE_INFO_GETTER(FunctionLiteral*, function) 68 PARSE_INFO_GETTER(FunctionLiteral*, function)
69 PARSE_INFO_GETTER_WITH_DEFAULT(Scope*, scope, nullptr) 69 PARSE_INFO_GETTER_WITH_DEFAULT(Scope*, scope, nullptr)
70 PARSE_INFO_GETTER(Handle<Context>, context) 70 PARSE_INFO_GETTER(Handle<Context>, context)
71 PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info) 71 PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info)
72 72
73 #undef PARSE_INFO_GETTER 73 #undef PARSE_INFO_GETTER
74 #undef PARSE_INFO_GETTER_WITH_DEFAULT 74 #undef PARSE_INFO_GETTER_WITH_DEFAULT
75 75
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 } 1544 }
1545 1545
1546 1546
1547 #if DEBUG 1547 #if DEBUG
1548 void CompilationInfo::PrintAstForTesting() { 1548 void CompilationInfo::PrintAstForTesting() {
1549 PrintF("--- Source from AST ---\n%s\n", 1549 PrintF("--- Source from AST ---\n%s\n",
1550 PrettyPrinter(isolate(), zone()).PrintProgram(function())); 1550 PrettyPrinter(isolate(), zone()).PrintProgram(function()));
1551 } 1551 }
1552 #endif 1552 #endif
1553 } } // namespace v8::internal 1553 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698