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

Side by Side Diff: src/parsing/parser.cc

Issue 2222503002: Revert of Remove redundant ParseInfo::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/parsing/parser.h ('k') | no next file » | 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/parsing/parser.h" 5 #include "src/parsing/parser.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/ast/ast.h" 10 #include "src/ast/ast.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 script_scope_(nullptr), 51 script_scope_(nullptr),
52 unicode_cache_(nullptr), 52 unicode_cache_(nullptr),
53 stack_limit_(0), 53 stack_limit_(0),
54 hash_seed_(0), 54 hash_seed_(0),
55 compiler_hints_(0), 55 compiler_hints_(0),
56 start_position_(0), 56 start_position_(0),
57 end_position_(0), 57 end_position_(0),
58 isolate_(nullptr), 58 isolate_(nullptr),
59 cached_data_(nullptr), 59 cached_data_(nullptr),
60 ast_value_factory_(nullptr), 60 ast_value_factory_(nullptr),
61 literal_(nullptr) {} 61 literal_(nullptr),
62 scope_(nullptr) {}
62 63
63 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) 64 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function)
64 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) { 65 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) {
65 set_context(Handle<Context>(function->context())); 66 set_context(Handle<Context>(function->context()));
66 } 67 }
67 68
68 69
69 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) 70 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared)
70 : ParseInfo(zone) { 71 : ParseInfo(zone) {
71 isolate_ = shared->GetIsolate(); 72 isolate_ = shared->GetIsolate();
(...skipping 7087 matching lines...) Expand 10 before | Expand all | Expand 10 after
7159 node->Print(Isolate::Current()); 7160 node->Print(Isolate::Current());
7160 } 7161 }
7161 #endif // DEBUG 7162 #endif // DEBUG
7162 7163
7163 #undef CHECK_OK 7164 #undef CHECK_OK
7164 #undef CHECK_OK_VOID 7165 #undef CHECK_OK_VOID
7165 #undef CHECK_FAILED 7166 #undef CHECK_FAILED
7166 7167
7167 } // namespace internal 7168 } // namespace internal
7168 } // namespace v8 7169 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698