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/parser.h" |
6 | 6 |
7 #include "src/api.h" | 7 #include "src/api.h" |
8 #include "src/ast.h" | 8 #include "src/ast.h" |
9 #include "src/ast-literal-reindexer.h" | 9 #include "src/ast-literal-reindexer.h" |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 set_lazy(); | 66 set_lazy(); |
67 set_hash_seed(isolate_->heap()->HashSeed()); | 67 set_hash_seed(isolate_->heap()->HashSeed()); |
68 set_stack_limit(isolate_->stack_guard()->real_climit()); | 68 set_stack_limit(isolate_->stack_guard()->real_climit()); |
69 set_unicode_cache(isolate_->unicode_cache()); | 69 set_unicode_cache(isolate_->unicode_cache()); |
70 set_language_mode(shared->language_mode()); | 70 set_language_mode(shared->language_mode()); |
71 set_shared_info(shared); | 71 set_shared_info(shared); |
72 | 72 |
73 Handle<Script> script(Script::cast(shared->script())); | 73 Handle<Script> script(Script::cast(shared->script())); |
74 set_script(script); | 74 set_script(script); |
75 if (!script.is_null() && script->type()->value() == Script::TYPE_NATIVE) { | 75 if (!script.is_null() && script->type() == Script::TYPE_NATIVE) { |
76 set_native(); | 76 set_native(); |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 | 80 |
81 ParseInfo::ParseInfo(Zone* zone, Handle<Script> script) : ParseInfo(zone) { | 81 ParseInfo::ParseInfo(Zone* zone, Handle<Script> script) : ParseInfo(zone) { |
82 isolate_ = script->GetIsolate(); | 82 isolate_ = script->GetIsolate(); |
83 | 83 |
84 set_hash_seed(isolate_->heap()->HashSeed()); | 84 set_hash_seed(isolate_->heap()->HashSeed()); |
85 set_stack_limit(isolate_->stack_guard()->real_climit()); | 85 set_stack_limit(isolate_->stack_guard()->real_climit()); |
86 set_unicode_cache(isolate_->unicode_cache()); | 86 set_unicode_cache(isolate_->unicode_cache()); |
87 set_script(script); | 87 set_script(script); |
88 | 88 |
89 if (script->type()->value() == Script::TYPE_NATIVE) { | 89 if (script->type() == Script::TYPE_NATIVE) { |
90 set_native(); | 90 set_native(); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 RegExpBuilder::RegExpBuilder(Zone* zone) | 95 RegExpBuilder::RegExpBuilder(Zone* zone) |
96 : zone_(zone), | 96 : zone_(zone), |
97 pending_empty_(false), | 97 pending_empty_(false), |
98 characters_(NULL), | 98 characters_(NULL), |
99 terms_(), | 99 terms_(), |
(...skipping 6189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6289 | 6289 |
6290 Expression* Parser::SpreadCallNew(Expression* function, | 6290 Expression* Parser::SpreadCallNew(Expression* function, |
6291 ZoneList<v8::internal::Expression*>* args, | 6291 ZoneList<v8::internal::Expression*>* args, |
6292 int pos) { | 6292 int pos) { |
6293 args->InsertAt(0, function, zone()); | 6293 args->InsertAt(0, function, zone()); |
6294 | 6294 |
6295 return factory()->NewCallRuntime(Context::REFLECT_CONSTRUCT_INDEX, args, pos); | 6295 return factory()->NewCallRuntime(Context::REFLECT_CONSTRUCT_INDEX, args, pos); |
6296 } | 6296 } |
6297 } // namespace internal | 6297 } // namespace internal |
6298 } // namespace v8 | 6298 } // namespace v8 |
OLD | NEW |