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

Side by Side Diff: src/compiler.cc

Issue 2212383003: Revert of Separate Scope into DeclarationScope and Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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.h ('k') | src/compiler/ast-graph-builder.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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/asmjs/asm-js.h" 10 #include "src/asmjs/asm-js.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 48
49 #define PARSE_INFO_GETTER_WITH_DEFAULT(type, name, def) \ 49 #define PARSE_INFO_GETTER_WITH_DEFAULT(type, name, def) \
50 type CompilationInfo::name() const { \ 50 type CompilationInfo::name() const { \
51 return parse_info() ? parse_info()->name() : def; \ 51 return parse_info() ? parse_info()->name() : def; \
52 } 52 }
53 53
54 54
55 PARSE_INFO_GETTER(Handle<Script>, script) 55 PARSE_INFO_GETTER(Handle<Script>, script)
56 PARSE_INFO_GETTER(FunctionLiteral*, literal) 56 PARSE_INFO_GETTER(FunctionLiteral*, literal)
57 PARSE_INFO_GETTER_WITH_DEFAULT(DeclarationScope*, scope, nullptr) 57 PARSE_INFO_GETTER_WITH_DEFAULT(Scope*, scope, nullptr)
58 PARSE_INFO_GETTER_WITH_DEFAULT(Handle<Context>, context, 58 PARSE_INFO_GETTER_WITH_DEFAULT(Handle<Context>, context,
59 Handle<Context>::null()) 59 Handle<Context>::null())
60 PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info) 60 PARSE_INFO_GETTER(Handle<SharedFunctionInfo>, shared_info)
61 61
62 #undef PARSE_INFO_GETTER 62 #undef PARSE_INFO_GETTER
63 #undef PARSE_INFO_GETTER_WITH_DEFAULT 63 #undef PARSE_INFO_GETTER_WITH_DEFAULT
64 64
65 // A wrapper around a CompilationInfo that detaches the Handles from 65 // A wrapper around a CompilationInfo that detaches the Handles from
66 // the underlying DeferredHandleScope and stores them in info_ on 66 // the underlying DeferredHandleScope and stores them in info_ on
67 // destruction. 67 // destruction.
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 DCHECK(shared->is_compiled()); 1932 DCHECK(shared->is_compiled());
1933 function->set_literals(cached.literals); 1933 function->set_literals(cached.literals);
1934 } else if (shared->is_compiled()) { 1934 } else if (shared->is_compiled()) {
1935 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. 1935 // TODO(mvstanton): pass pretenure flag to EnsureLiterals.
1936 JSFunction::EnsureLiterals(function); 1936 JSFunction::EnsureLiterals(function);
1937 } 1937 }
1938 } 1938 }
1939 1939
1940 } // namespace internal 1940 } // namespace internal
1941 } // namespace v8 1941 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698