| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |