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

Side by Side Diff: src/parsing/parse-info.cc

Issue 2156303002: Implement new Function.prototype.toString and fix CreateDynamicFunction parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 3 years, 10 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/parse-info.h ('k') | src/parsing/parser.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/parse-info.h" 5 #include "src/parsing/parse-info.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast/ast-value-factory.h" 8 #include "src/ast/ast-value-factory.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/heap/heap-inl.h" 10 #include "src/heap/heap-inl.h"
(...skipping 13 matching lines...) Expand all
24 extension_(nullptr), 24 extension_(nullptr),
25 compile_options_(ScriptCompiler::kNoCompileOptions), 25 compile_options_(ScriptCompiler::kNoCompileOptions),
26 script_scope_(nullptr), 26 script_scope_(nullptr),
27 asm_function_scope_(nullptr), 27 asm_function_scope_(nullptr),
28 unicode_cache_(nullptr), 28 unicode_cache_(nullptr),
29 stack_limit_(0), 29 stack_limit_(0),
30 hash_seed_(0), 30 hash_seed_(0),
31 compiler_hints_(0), 31 compiler_hints_(0),
32 start_position_(0), 32 start_position_(0),
33 end_position_(0), 33 end_position_(0),
34 parameters_end_pos_(kNoSourcePosition),
34 function_literal_id_(FunctionLiteral::kIdTypeInvalid), 35 function_literal_id_(FunctionLiteral::kIdTypeInvalid),
35 max_function_literal_id_(FunctionLiteral::kIdTypeInvalid), 36 max_function_literal_id_(FunctionLiteral::kIdTypeInvalid),
36 isolate_(nullptr), 37 isolate_(nullptr),
37 cached_data_(nullptr), 38 cached_data_(nullptr),
38 ast_value_factory_(nullptr), 39 ast_value_factory_(nullptr),
39 function_name_(nullptr), 40 function_name_(nullptr),
40 literal_(nullptr), 41 literal_(nullptr),
41 deferred_handles_(nullptr) {} 42 deferred_handles_(nullptr) {}
42 43
43 ParseInfo::ParseInfo(Handle<SharedFunctionInfo> shared) 44 ParseInfo::ParseInfo(Handle<SharedFunctionInfo> shared)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 163 }
163 164
164 #ifdef DEBUG 165 #ifdef DEBUG
165 bool ParseInfo::script_is_native() const { 166 bool ParseInfo::script_is_native() const {
166 return script_->type() == Script::TYPE_NATIVE; 167 return script_->type() == Script::TYPE_NATIVE;
167 } 168 }
168 #endif // DEBUG 169 #endif // DEBUG
169 170
170 } // namespace internal 171 } // namespace internal
171 } // namespace v8 172 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/parse-info.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698