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

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

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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') | src/parsing/pattern-rewriter.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/parser.h" 5 #include "src/parsing/parser.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast-literal-reindexer.h" 9 #include "src/ast/ast-literal-reindexer.h"
10 #include "src/ast/scopeinfo.h"
10 #include "src/bailout-reason.h" 11 #include "src/bailout-reason.h"
11 #include "src/base/platform/platform.h" 12 #include "src/base/platform/platform.h"
12 #include "src/bootstrapper.h" 13 #include "src/bootstrapper.h"
13 #include "src/char-predicates-inl.h" 14 #include "src/char-predicates-inl.h"
14 #include "src/codegen.h" 15 #include "src/codegen.h"
15 #include "src/compiler.h" 16 #include "src/compiler.h"
16 #include "src/messages.h" 17 #include "src/messages.h"
17 #include "src/parameter-initializer-rewriter.h" 18 #include "src/parsing/parameter-initializer-rewriter.h"
18 #include "src/preparser.h" 19 #include "src/parsing/preparser.h"
19 #include "src/rewriter.h" 20 #include "src/parsing/rewriter.h"
21 #include "src/parsing/scanner-character-streams.h"
20 #include "src/runtime/runtime.h" 22 #include "src/runtime/runtime.h"
21 #include "src/scanner-character-streams.h"
22 #include "src/scopeinfo.h"
23 #include "src/string-stream.h" 23 #include "src/string-stream.h"
24 24
25 namespace v8 { 25 namespace v8 {
26 namespace internal { 26 namespace internal {
27 27
28 ScriptData::ScriptData(const byte* data, int length) 28 ScriptData::ScriptData(const byte* data, int length)
29 : owns_data_(false), rejected_(false), data_(data), length_(length) { 29 : owns_data_(false), rejected_(false), data_(data), length_(length) {
30 if (!IsAligned(reinterpret_cast<intptr_t>(data), kPointerAlignment)) { 30 if (!IsAligned(reinterpret_cast<intptr_t>(data), kPointerAlignment)) {
31 byte* copy = NewArray<byte>(length); 31 byte* copy = NewArray<byte>(length);
32 DCHECK(IsAligned(reinterpret_cast<intptr_t>(copy), kPointerAlignment)); 32 DCHECK(IsAligned(reinterpret_cast<intptr_t>(copy), kPointerAlignment));
(...skipping 6422 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 } 6455 }
6456 6456
6457 6457
6458 void Parser::RaiseLanguageMode(LanguageMode mode) { 6458 void Parser::RaiseLanguageMode(LanguageMode mode) {
6459 SetLanguageMode(scope_, 6459 SetLanguageMode(scope_,
6460 static_cast<LanguageMode>(scope_->language_mode() | mode)); 6460 static_cast<LanguageMode>(scope_->language_mode() | mode));
6461 } 6461 }
6462 6462
6463 } // namespace internal 6463 } // namespace internal
6464 } // namespace v8 6464 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/parser.h ('k') | src/parsing/pattern-rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698